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 12-19-2014, 11:08 AM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,540
parayna is on a distinguished road
Default Profilessss

Whenever someone makes a visitor message or a bio of themselves, whenever there is an apostrophe it puts a backslash. Does anyone know how to fix this? In any way? It is kind of becoming annoying now because I have been trying to input a stripslashes code but it appears to not like it. So I don't think it'll be possible to do it that way. Then again, what do I know? XD

Thanks for any help,

~Parayna
Reply With Quote
  #2  
Old 12-19-2014, 12:49 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,511
Kyttias is on a distinguished road
Default

I literally brought this up in this same sub-forum two days ago. I have it written down in my to-do list as 'win the war against apostrophes', lol.

This and many, many other tiny tweaks is why my site is still months from being ready to go public.

-

edit: You can try this, however? I think this fixed it for me: In classes/class_userprofile.php, replace
PHP Code:
 $membersince $mysidia->db->select("users", array("membersince"), "username = '{$mysidia->input->get("user")}'")->fetchColumn();      
      
$basicinfo "<br><strong>Member Since:</strong> {$membersince}<br>
                    Gender: 
{$this->gender}<br>
                    Favorite Color: 
{$this->color}<br>
                    Nickname: 
{$this->nickname}<br>
                    Bio: 
{$this->bio}"
with
PHP Code:
 $str_bio stripslashes($this->bio);
      
$basicinfo "<br><strong>Member Since:</strong> {$membersince}<br>
                    Gender: 
{$this->gender}<br>
                    Favorite Color: 
{$this->color}<br>
                    Nickname: 
{$this->nickname}<br>
                    Bio: 
{$str_bio}"
Did you try that? Because stripslashes was exactly what was needed, just, there.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 12-19-2014 at 05:04 PM.
Reply With Quote
  #3  
Old 12-19-2014, 05:49 PM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,540
parayna is on a distinguished road
Default

XD Funny, just before I looked at your reply here I had put that in when I saw you had figured it out on another post XD Thanks!
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


All times are GMT -5. The time now is 03:46 PM.

Currently Active Users: 9276 (0 members and 9276 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