Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-30-2011, 07:09 PM
shiann's Avatar
shiann shiann is offline
Horse Tamer :3
 
Join Date: Jun 2010
Posts: 70
Gender: Female
Credits: 5,531
shiann
Default Quatation Mark Glitch O_o

You\'ve

\"I\'m so sorry!\"

This is what shows up when I type " or '. How do I fix it...?

I lurked a lot, and couldn't find anything.. ;_;
__________________
Hai there. :3 All I got for now.
Reply With Quote
  #2  
Old 03-30-2011, 09:36 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,883
fadillzzz is an unknown quantity at this point
Default

Use stripslashes() & htmlspecialchars_decode()

PHP Code:
$string "You\'ve";
$string stripslashes($string); // You've 
PHP Code:
$string "\"I\'m so sorry!\"";
$string htmlspecialchars($string); // "I'm so sorry!" 
Reply With Quote
  #3  
Old 03-31-2011, 10:07 AM
shiann's Avatar
shiann shiann is offline
Horse Tamer :3
 
Join Date: Jun 2010
Posts: 70
Gender: Female
Credits: 5,531
shiann
Default

Oh, ok thank you!! :)
__________________
Hai there. :3 All I got for now.
Reply With Quote
  #4  
Old 03-31-2011, 12:41 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,312
Hall of Famer is on a distinguished road
Default

umm are you trying to do a quotation system for your adoptables site Shiann? This sounds interesting to me.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 03-31-2011, 03:58 PM
shiann's Avatar
shiann shiann is offline
Horse Tamer :3
 
Join Date: Jun 2010
Posts: 70
Gender: Female
Credits: 5,531
shiann
Default

No, I was planning on using the quotation marks for the character interactions with the member.. But I may look into a quotation system, if I figure out what it is. :)
__________________
Hai there. :3 All I got for now.
Reply With Quote
  #6  
Old 04-10-2011, 01:00 AM
Plague Plague is offline
Member
 
Join Date: Nov 2010
Posts: 50
Gender: Unknown/Other
Credits: 3,104
Plague is an unknown quantity at this point
Default

I've had issues with this as well.

@ fadillzzz: I'm a bit confused as to where the code is to be added to resolve the issue. Is this something put into the function page? Or is it to be specifically put on the pages where the issue is occurring?
Reply With Quote
  #7  
Old 04-10-2011, 01:08 AM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,367
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

You'll want to put it just before you use the string. Or you can put

PHP Code:
$article_content stripslashes($article_content); 
AFTER

PHP Code:
// clean all our data
$_POST array_map('secure',$_POST);
$_GET array_map('secure',$_GET); 
in the functions page and that should effectively strip slashes from ALL of your content. But then BBCode wouldn't work I don't think.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #8  
Old 04-10-2011, 01:17 PM
Plague Plague is offline
Member
 
Join Date: Nov 2010
Posts: 50
Gender: Unknown/Other
Credits: 3,104
Plague is an unknown quantity at this point
Default

That's so weird. I put it in the functions and for some reason it's still showing up everywhere.
Reply With Quote
  #9  
Old 04-11-2011, 04:04 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,883
fadillzzz is an unknown quantity at this point
Default

I suggest that you only use it on certain pages where the glitch is happening, and probably place it right before the echo showpage

PHP Code:
$article_content stripslashes($article_content);

echo 
showpage(...); 
Reply With Quote
  #10  
Old 04-11-2011, 11:53 AM
Plague Plague is offline
Member
 
Join Date: Nov 2010
Posts: 50
Gender: Unknown/Other
Credits: 3,104
Plague is an unknown quantity at this point
Default

@ fadillzzz: Excellent! Thank you very much. That finally took care of the problem. I really appreciate the help.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Promo.php glitch SilverDragonTears Questions and Supports 6 10-28-2011 10:13 AM
Solution to fix the glitch in Mys/RA v1.10 Hall of Famer Questions and Supports 4 01-16-2011 10:57 PM
Glitch in PHP Installation?! Jgl5858 Questions and Supports 13 11-26-2010 02:10 PM
Another Level Up Glitch exactly33 Questions and Supports 2 01-02-2009 11:50 PM
Level up glitch JayGatsby Questions and Supports 3 12-30-2008 09:44 AM


All times are GMT -5. The time now is 02:00 PM.

Currently Active Users: 9793 (0 members and 9793 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636