dotdynamic
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive flipbook wordpress plugin free download] Not able to Upload PDFiriminerd’s fix above worked for me. Thanks!
Forum: Plugins
In reply to: [Redirection] i want to remove this plugin completely from databaseIf you look at the bottom of the Redirection plugin’s option page there is an option to delete all redirects and settings and disable the plugin. AFter that you just need to delete the plugin from your inactive plugins page.
Do you mean the box the customer enters the review in to or the box that contains the review text in final form? Can you share a link to an example? SHould be able to resize with CSS or a quick plugin code tweak.
Yes
Hmmm, only other suggestion I have is to remove the if condition and see if that works
if (get_magic_quotes_gpc()) {}
not sure why it would but worth a shot. What version of PHP are you running?Hi Mike,
I’ve tried the above steps to create a phone validation field in the extra field section but no matter what Regex I enter the form returns the error message and does not submit the contact form.
I am running the site in question locally with MAMP and using PHP 5.3.6. ANy suggestions on how to troubleshoot this?
Cheers,
MatthewHmmm I’m running it locally not sure if that will make a difference. It definitely resolved it for me. Did you add it to wp-customer-reviews-admin.php and not wp-customer-reviews.php?
Ok my theory didn’t pan out but I think I’ve solved the issue. It does appear to be something to do with magic quotes. I’m no master coder so I don’t know the full consequences of this but you can add
if (get_magic_quotes_gpc()) { $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST); while (list($key, $val) = each($process)) { foreach ($val as $k => $v) { unset($process[$key][$k]); if (is_array($v)) { $process[$key][stripslashes($k)] = $v; $process[] = &$process[$key][stripslashes($k)]; } else { $process[$key][stripslashes($k)] = stripslashes($v); } } } unset($process); }
to wp-customer-reviews/wp-customer-reviews-admin.php just after the opening
<?php
and that seems to resolve the issue. (Code thanks to https://docs.php.net/manual/en/security.magicquotes.disabling.php)
Cheers,
MatthewHi,
Maybe you fixed this but it doesn’t appear to be cutting this off for me. Checked in Firefox and Chrome.
Cheers,
MatthewIf you don’t have a large number of reviews you can always edit the review in the admin section and replace the apostrophe and quotations with html equivalents https://www.w3schools.com/tags/ref_ascii.asp
I’m sure you are looking for a more permanent solution so what I can add apart from this is that the problem seems to arise if you edit the review in the admin section.
When I submit reviews with apostrophes and don’t make any edit before approving I don’t see the slashes but if you make an edit to a submitted review the slashes are added.Perhaps editing in the admin section adds a second slash to the entry in the database and the plugin only removes one when it outputs the data on the page? This could be fixed with a recursive stripslashes function perhaps?