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)
-   -   Profile Bio Box (http://www.mysidiaadoptables.com/forum/showthread.php?t=4735)

Kyttias 12-17-2014 12:08 AM

Profile Bio Box
 
I'm not even sure where I wanted to post this thread, but, here goes -

I'm having my gf finally do some alpha testing on my site and she decided she'd use the bio box on the profile to list off things she wants me to change. Or she tried to, anyway.

We both agreed there are two big issues with this particular part of the site:
  • Linebreaks are impossible, even if you shift-enter down to a new line.
  • HTML is impossible, so you can't use it to make your linebreaks.
  • Triple backslashes are attacking the apostrophes, lol.

It's okay and understandable that HTML isn't allowed, for security reasons! As an alternative, I feel that BBCode should be introduced to this box in the future and for linebreaks to be respected.

But those triple backslashes, man. What is even going on?

Abronsyth 12-19-2014 04:42 PM

It could be that ' is used in coding, and it's conflicting with said code. Some coding/sites, I've noticed, are touchy about this, myisida being one of those.

This page is directed at Wordpress, but might help:
http://www.puravidamultimedia.com/ap...-magic-quotes/

Kyttias 12-19-2014 05:01 PM

Not really.

I think I found a fix, however. In classes/class_userprofile.php, replace
PHP Code:

      $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}"


Hall of Famer 12-22-2014 09:07 PM

Well the older script used to have BBCode, but since the introduction of CKEditor it has been phased out. If you like BBCode though, I may consider making it an option in Mys v1.4.0, just like Plain Text and CKEditor.

Kyttias 12-22-2014 10:55 PM

CKEditor would work, too, so long as it's not too overwhelming. No need for a surplus of buttons on a comment page like that (think like how the quick replies are done here).


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

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