SprockTech
Forum Replies Created
-
Forum: Plugins
In reply to: [Image Photo Gallery Final Tiles Grid] Warning: Bug in 3.3.57The missing file (fs-essential-functions-2.2.1.php) is now included in the plugin package, works now.
Thanks!
—
KlintForum: Plugins
In reply to: [Image Photo Gallery Final Tiles Grid] Warning: Bug in 3.3.57Same issue here:
PHP Fatal error: require_once(): Failed opening required '/nas/content/live/www/wp-content/plugins/final-tiles-grid-gallery-lite/freemius/includes/supplements/fs-essential-functions-2.2.1.php' (include_path='.:/usr/share/php') in /nas/content/live/www/wp-content/plugins/final-tiles-grid-gallery-lite/freemius/includes/fs-essential-functions.php on line 39
—
KlintForum: Plugins
In reply to: [BadgeOS] SQL Query Syntax ErrorAlso, in the
badgeos_get_comment_form
function, I replaced line 1031 with this:$sub_form .= '<p><textarea name="badgeos_comment" id="badgeos_comment' . absint( $post_id ) . '" class="badgeos_comment">'; $sub_form .= isset($comment_data->comment_content) ? $comment_data->comment_content : ''; $sub_form .='</textarea></p>';
Forum: Plugins
In reply to: [BadgeOS] SQL Query Syntax ErrorI’ve rewrote the
get_attachment_from_draft_submission
function as follows:function get_attachment_from_draft_submission($post_id, $user_ID){ global $wpdb; $table = $wpdb->posts; $attachment_data = array(); if (!empty($table) && !empty($post_id) && !empty($user_ID)){ $query = "SELECT ID FROM ".$table." WHERE post_status='draft' AND post_type='attachment' AND post_author = ".$user_ID." AND post_parent = ".$post_id." ORDER BY ID DESC LIMIT 1"; $attachment_post_id = $wpdb->get_var($query); if ( $attachment_post_id ){ $attachment_data = get_post($attachment_post_id); } } return $attachment_data; }
Forum: Plugins
In reply to: [Form Manager] Get number of forms filledEach form stores its data in a separate table. You can get the total submission count by counting the number of rows in that table using the
$wpdb
object. Here is an example:$submission_count = $wpdb->get_var( "SELECT COUNT(*) FROM wp1_fm_data_1" ); echo "<p>Submission count is {$submission_count}</p>";
You can then encapsulate that into a shortcode using the Shortcode Exec PHP plugin.
I know this post is a couple of weeks old, but I hope this helps. ??
Forum: Plugins
In reply to: [Form Manager] Date and ValidationThe timestamp that is recorded in the database is hardcoded using the format:
Y-m-d H:i:s
You can change the timestamp format that is displayed in the output page and email by changing the template. You’ll need FTP or SSH access to the site. Go to the plugin folder, then to the templates sub-folder, then make a copy of the default template. Now edit that copied template as you wish, you can customize the timestamp like so:
date("d M Y H:i:s", strtotime(fm_summary_the_timestamp()))
After you have made your custom copy (don’t forget to change the file name and the template name and description at the top of the file) go to the form, under the “Advanced” tab, and change the template of the “E-Mail Notifications” and/or the “Data Summary” and then save changes.
I hope this helps! ??
Forum: Plugins
In reply to: [Form Manager] User email address as senderYes, you can do this by creating nicknames and referencing these using the “item” keyword. Here are the steps I have used:
- Go to the form you created
- Click the “Form Extras” tab
- Assign nicknames (with no spaces) to the email address field and optionally the name field(s) (i.e. contact_name and contact_email)
- Save changes
- Go back to the “Edit” tab
- Under the “Email Notifications” section, change the “From” field to use the items you just created nicknames for in brackets like so:
[item nickname]
- If using the name and email in the from field, use the standard email convention of encapsulating the email address in angled brackets (https://tools.ietf.org/html/rfc2822#section-3.4)
- For example, mine looks like this:
[item contact_name] <[item contact_email]>
- Save the form and you’re done
I hope this helps. ??
You can download it from the developer’s website, look under the Add-ons heading here: https://www.campbellhoffman.com/form-manager/
Or download it directly here: https://www.campbellhoffman.com/files/fm-custom-submit.zip
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] SpamHave you added a reCAPTCHA element to your form? This should prevent spam.
https://www.campbellhoffman.com/form-manager-faq/#what-is-recaptcha
—
Klint