MyBB Community Forums

Full Version: Can this be done in MyBB?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, I was just wondering if you can allow html to be used in user titles?
i tested it out on my forums but it didn't work. i just wondered if there was a
option somewhere to enable it? Smile
Maybe like the vBulletin option, where admins can set them?

Anyway all help is greatful Smile

;; Regards
;; Orphadox
Sure.. you need to modify as following

open ./inc/datahandlers/user.php

find

"usertitle" => $db->escape_string(htmlspecialchars_uni($user['usertitle'])),
replace with
"usertitle" => $db->escape_string($user['usertitle']),

find
$this->user_update_data['usertitle'] = $db->escape_string(htmlspecialchars_uni($user['usertitle']));

replace with
$this->user_update_data['usertitle'] = $db->escape_string($user['usertitle']);
Thanks Very Much <3 =]!
Just be warned that your users will be able to insert code such as Javascripts, or HTML that may break the layout of the page, etc.
Ooooh, can't wait to see the first user who tries out a table!
Yeah, I think that's really allowing security holes into your forum, but if you happen to trust all members, I guess that's fine.

A thing I do, since only I allow a few users different formatting in titles, is edit the database directly. There's issues with that however, which can cause the formatting to screw up - but it's a quick thing to do.
Smile