Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Profilessss (http://www.mysidiaadoptables.com/forum/showthread.php?t=4737)

parayna 12-19-2014 11:08 AM

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

Kyttias 12-19-2014 12:49 PM

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.

parayna 12-19-2014 05:49 PM

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!


All times are GMT -5. The time now is 11:51 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.