Forum Moderators: coopster

Message Too Old, No Replies

Wordpress Registration Events Plugin - Apostrophes!

Need to display apostrophes!

         

twilitegxa

11:55 pm on Apr 13, 2011 (gmt 0)

10+ Year Member



Can anyone help me fix it so that my page displays the quotes properly? I am using Wordpress and a plugin called Events Registration, and if you look on this page:

[centralcoastrestaurant.com...]

Under "Upcoming Events", for example, "Mother's Day Brunch" is showing up as "Mother\'s Day Brunch". Can anyone help me fix this?

Anyone with Wordpress/Events Registration experience might be helpful, as I'm not sure which page I need to edit in the plugin folder.

mbabuskov

5:13 am on Apr 14, 2011 (gmt 0)

10+ Year Member



It looks like that plugin does not work properly when magic_quotes_gpc is on. Try setting magic_quotes_gpc off.

Please note that this will only fix the future postings; you need to fix all the content entered so far manually.

HTH

[edited by: coopster at 4:51 pm (utc) on Apr 14, 2011]
[edit reason] TOS#13 [webmasterworld.com] [/edit]

twilitegxa

6:59 am on Apr 14, 2011 (gmt 0)

10+ Year Member



How do I turn magic quotes off?

mbabuskov

2:57 pm on Apr 14, 2011 (gmt 0)

10+ Year Member



Either in php.ini or .htaccess. In .htaccess you can use this syntax:

php_value magic_quotes_gpc off

HTH

[edited by: coopster at 4:51 pm (utc) on Apr 14, 2011]

twilitegxa

5:29 pm on Apr 14, 2011 (gmt 0)

10+ Year Member



Okay, thank you very much!

How will I fix the already existing entries to make the apostrophes show up?

mbabuskov

5:36 pm on Apr 14, 2011 (gmt 0)

10+ Year Member



Via Wordpress administration interface.

twilitegxa

1:56 am on Apr 15, 2011 (gmt 0)

10+ Year Member



I have tried editing the existing entries with apostrophes in them, but how do I need to edit them? Do I need to escape the apostrophes with backslashes?

mbabuskov

5:35 am on Apr 15, 2011 (gmt 0)

10+ Year Member



No, just open, remove and backslash if present and then save.

twilitegxa

11:50 pm on Apr 15, 2011 (gmt 0)

10+ Year Member



I have tried that, but I haven't found any backslashes to remove.

mbabuskov

5:06 am on Apr 16, 2011 (gmt 0)

10+ Year Member



There were not because WP translated the string before displaying the form. It is supposed to work that way. However, when you save it will change the actual content in the database.

Alternatively, you could edit database table manually using some MySQL administration tool like phpMyAdmin

twilitegxa

7:14 am on Apr 16, 2011 (gmt 0)

10+ Year Member



Okay, thanks. I will try that and see if it works.