Log in

View Full Version : Profilessss


parayna
12-19-2014, 11:08 AM
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 (http://www.mysidiaadoptables.com/forum/showthread.php?t=4735). 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
$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

$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!