Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: KeithGS on April 06, 2011, 10:51:26 PM

Title: Custom HTML makeup for usernames?
Post by: KeithGS on April 06, 2011, 10:51:26 PM
What I want is to set a custom image for a membergroup such as "<span style="background: url(/backround6.gif)"></span>"

So the image goes around the username if the user is in the membergroup, not just change the color of the user.

So how would I go about doing this,

this is a example;

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg827.imageshack.us%2Fimg827%2F4164%2Funledt.png&hash=afd6bfc8f4f5c6ddca079e33286b82d2d1740fa7)

Title: Re: Custom HTML makeup for usernames?
Post by: Illori on April 07, 2011, 05:36:14 AM
this is not possible in smf, and i think it could lead to security issues down the road if anyone other then admin can edit the html.
Title: Re: Custom HTML makeup for usernames?
Post by: KeithGS on April 07, 2011, 11:53:02 AM
It would only be admin..
Title: Re: Custom HTML makeup for usernames?
Post by: Arantor on April 07, 2011, 11:55:11 AM
Except that the manage membergroups area is not necessarily admin only.
Title: Re: Custom HTML makeup for usernames?
Post by: Matthew K. on April 07, 2011, 12:00:06 PM
Actually, it *is* possible. But it's a big security issue, and can cause other issues to, so it's not going to happen.
Title: Re: Custom HTML makeup for usernames?
Post by: KeithGS on April 07, 2011, 12:02:34 PM
vbulletin allows span options, and it hasn't been a security issue.
Title: Re: Custom HTML makeup for usernames?
Post by: Arantor on April 07, 2011, 12:03:19 PM
And vBulletin is written totally differently to SMF which makes the argument rather useless.
Title: Re: Custom HTML makeup for usernames?
Post by: KeithGS on April 07, 2011, 12:05:03 PM
So the only thing you can change in the username makeup is color then..? couldn't a mod be made, where you could edit the HTML makeup of a membergroup that is only available to admin..?
Title: Re: Custom HTML makeup for usernames?
Post by: Matthew K. on April 07, 2011, 12:06:09 PM
As I said earlier it is "possible", but it's not going to happen.
Title: Re: Custom HTML makeup for usernames?
Post by: Arantor on April 07, 2011, 12:06:46 PM
Quote from: KeithGS on April 07, 2011, 12:05:03 PM
So the only thing you can change in the username makeup is color then..? couldn't a mod be made, where you could edit the HTML makeup of a membergroup that is only available to admin..?

I would also note that both bold and italics are already used by SMF in the who's online area to signify things.