Welcome to WebmasterWorld Guest from 54.162.94.181

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Wordpress Registration Events Plugin - Apostrophes!

Need to display apostrophes!

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

New User

5+ Year Member

joined:Apr 13, 2011
posts: 6
votes: 0


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.
5:13 am on Apr 14, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Feb 25, 2011
posts: 91
votes: 0


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]

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

New User

5+ Year Member

joined:Apr 13, 2011
posts: 6
votes: 0


How do I turn magic quotes off?
2:57 pm on Apr 14, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Feb 25, 2011
posts: 91
votes: 0


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]

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

New User

5+ Year Member

joined:Apr 13, 2011
posts: 6
votes: 0


Okay, thank you very much!

How will I fix the already existing entries to make the apostrophes show up?
5:36 pm on Apr 14, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Feb 25, 2011
posts: 91
votes: 0


Via Wordpress administration interface.
1:56 am on Apr 15, 2011 (gmt 0)

New User

5+ Year Member

joined:Apr 13, 2011
posts: 6
votes: 0


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?
5:35 am on Apr 15, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Feb 25, 2011
posts: 91
votes: 0


No, just open, remove and backslash if present and then save.
11:50 pm on Apr 15, 2011 (gmt 0)

New User

5+ Year Member

joined:Apr 13, 2011
posts: 6
votes: 0


I have tried that, but I haven't found any backslashes to remove.
5:06 am on Apr 16, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Feb 25, 2011
posts: 91
votes: 0


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
7:14 am on Apr 16, 2011 (gmt 0)

New User

5+ Year Member

joined:Apr 13, 2011
posts: 6
votes: 0


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