Welcome, Guest. Please Login or Register.
August 30, 2025, 07:25:11 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Apostrophe problem (not same as March apostrophe fix) « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Apostrophe problem (not same as March apostrophe fix)  (Read 315 times)
pablo
Noobie
*
Posts: 32


Don't worry - it's just a mental crisis

WWW
Apostrophe problem (not same as March apostrophe fix)
« on: May 08, 2002, 10:26:17 AM »
Reply with quote

Hi,

On my board, apostrophes get turned into \' when they are put into
  • news
  • message body
  • message subjects
  • the "I'm a llama" text on the profile screen
  • Name, where it appears as "Hey Mr D'Arcy, you have 0 messages" on, say the Message Display screen (action=display)
  • ...and maybe I've missed a few more
but it appears just fine on
  • Name in the profile window,
  • Name in message sender (to the left of a message)
  • Name, where it appears as "Hey Mr D'Arcy, you have 0 messages" on, say the Profile screen
I have seen the previous threads on the apostrophe fix and this doesn't look like the same thing. Also the apostrophe fix zip file is older than the 1.3.1 files, so I don't want to overwrite.

I'm happy to make manual changes if you can give me a generic line of code to make the change and tell me where they need to go.

Thanks,
Paul.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Apostrophe problem (not same as March apostrophe fix)
« Reply #1 on: May 08, 2002, 11:33:03 AM »
Reply with quote

You'll need to add one function to those variables:

stripslashes($variable);

That will take the \ out everywhere.
Logged

pablo
Noobie
*
Posts: 32


Don't worry - it's just a mental crisis

WWW
Re:Apostrophe problem (not same as March apostrophe fix)
« Reply #2 on: May 08, 2002, 12:05:00 PM »
Reply with quote

Jeff, you are a star!
Where do I put the stripslashes function? And does it need to go several places in several files?
Paul.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Apostrophe problem (not same as March apostrophe fix)
« Reply #3 on: May 08, 2002, 12:41:10 PM »
Reply with quote

Well you'd need it in a few places like you mention.

So once before outputting the news items (Subs.php), once before outputting the profile text (Profile.php and Display.php), message subjects (Display.php and MessageIndex.php) etc...
Logged

pablo
Noobie
*
Posts: 32


Don't worry - it's just a mental crisis

WWW
Re:Apostrophe problem (not same as March apostrophe fix)
« Reply #4 on: May 08, 2002, 02:02:25 PM »
Reply with quote

Bizarre

Jeff,
Does this make sense?

I just did a global find and replace, changing all instances of mysql_ to @mysql_ (as per my other post). Since then, the apostrophe problem has disappeared. And I haven't put in a single stripslashes($vbl) yet!!!

Confused :-\ but obviously delighted.

Paul.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Apostrophe problem (not same as March apostrophe fix)
« Reply #5 on: May 08, 2002, 03:30:48 PM »
Reply with quote

I guess...could be a setting in php.ini like I said before, perhaps you could post a link to your phpinfo?
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Apostrophe problem (not same as March apostrophe fix) « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.046 seconds with 16 queries.