UseBB Community

The official board for UseBB help and discussion

UseBB Community » Feature Requests » [COMPLETED] allow html in rank

[COMPLETED] allow html in rank

Page: 1

Author Post
Moderator
Registered: Oct 2005
Posts: 444
Location: canada
Can this be added? Seeing as only the admin can edit it anyway shouldn't be much of a risk?

I wanted to add an image as a rank but it won't accept my HTML, just outputs it as text.
« Last edit by Dietrich on Sat Dec 17, 2005 10:07 pm. »
Moderator
Registered: Oct 2005
Posts: 444
Location: canada
Never mind, i got it to work, though it'd still be good to have in the future :).

If you want to allow html

Open Topic.php and find:

$poster_rank = unhtml(stripslashes($postsdata['rank']));


and replace with:

$poster_rank = stripslashes($postsdata['rank']);


save and upload :)
Developer
Registered: Apr 2004
Posts: 2215
Location: Belgium
I will fix this soon. :)
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Moderator
Registered: Oct 2005
Posts: 444
Location: canada
Just to add, incase anyone else wants to allow html.

You'll also need to change something like the code i posted above in the following files:

members.php (twice) and profile.php

Those are the only other two spots i found.

Just look for something along the lines of


unhtml(stripslashes($userdata['rank']))

Page: 1

UseBB Community » Feature Requests » [COMPLETED] allow html in rank

UseBB Community is powered by UseBB 1 Forum Software