homepage Welcome to WebmasterWorld Guest from 54.234.74.85
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Wordpress Registration Events Plugin - Apostrophes!
Need to display apostrophes!
twilitegxa




msg:4297244
 11:55 pm on Apr 13, 2011 (gmt 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.

 

mbabuskov




msg:4297377
 5:13 am on Apr 14, 2011 (gmt 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]

twilitegxa




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

How do I turn magic quotes off?

mbabuskov




msg:4297591
 2:57 pm on Apr 14, 2011 (gmt 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]

twilitegxa




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

Okay, thank you very much!

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

mbabuskov




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

Via Wordpress administration interface.

twilitegxa




msg:4298050
 1:56 am on Apr 15, 2011 (gmt 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?

mbabuskov




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

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

twilitegxa




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

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

mbabuskov




msg:4298769
 5:06 am on Apr 16, 2011 (gmt 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

twilitegxa




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved