davidollerhead
Forum Replies Created
-
Forum: Plugins
In reply to: [Pricing Table] Can't delete FeatureJust to clarify….
In each instance of replacing..
str_replace(" ","",$str);
with
preg_replace("/[^A-Za-z0-9]/","",$str);You need to make sure the $str is the same as the one replacing, there’s no blanket find and replace you can do for the file as the $var the string replacement is working on varies. Make sure the preg replace applies to the same $var as the str_replace was.
Forum: Plugins
In reply to: [Pricing Table] Can't delete FeatureOK, pretty sure I’ve fixed this. Problem was with certain un-escaped chracters.
In file
metabox-feature-options.phpYou need to replace all instances of
str_replace(" ","",$str);
with
preg_replace("/[^A-Za-z0-9]/","",$str);This is a bit stricter and strips out other characters which could cause jQuery some trouble.
You of course have to ‘Update’ the table each time as this performs the save!
Forum: Plugins
In reply to: [Pricing Table] Can't delete FeatureI’ve noticed this too, I believe it’s to do with certain characters not being escaped in the ajax .post on deleting a feature.
An ampersand in the feature title (&) will cause this for example. In firebug this causes an error with…
Error: Syntax error, unrecognized expression: .FraudProtection&Security http://..../wp-admin/load-scripts.php?c=0&load%5B%5D=jquery,utils&ver=3.5.1 Line 2@estuffs – if you want the remove the circle in the grey theme, just edit the css creating that. It’s in the grey template file… pricing-table/tpls/price_table-gray.php – you can edit this within the wordpress gui.