Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: JBlaze on April 27, 2009, 12:51:11 PM

Title: [TIP/TRICK] Membergroup Images Instead of Name
Post by: JBlaze on April 27, 2009, 12:51:11 PM
WARNING: This method can seriously damage your forum! Do not use this unless you know what you're doing!

For those that are wondering how to make a membergroup name an image instead of just boring old text, here you go.

Go to Admin -> Membergroups -> {Group} Modify -> Group Name

Then, do the following
<img src="http://www.url-to-image.com/image.jpg" />

Add that as the Membergroup name INSTEAD of entering text.
Remember to replace the URL provided with the actual URL of the image you are using.

See attached screenshots for a demo :)

* This tip works for board names as well.
** I Highly recommend that you host the image on your site as it will speed up the loading time of the image and prevent lag on your site.

Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: shadow82x on April 27, 2009, 05:58:15 PM
Nice post and well said. :)
You can also use the same image code for several other spots in your forum, such as board names and descriptions.

Quote** I Highly recommend that you host the image on your site as it will speed up the loading time of the image and prevent lag on your site.
Very good point.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: SAFAD on April 27, 2009, 07:17:48 PM
Very Good Trick
Thanks Bro
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: JBlaze on April 28, 2009, 03:02:52 AM
Quote from: Shadow82x on April 27, 2009, 05:58:15 PM
Nice post and well said. :)
You can also use the same image code for several other spots in your forum, such as board names and descriptions.

Quote** I Highly recommend that you host the image on your site as it will speed up the loading time of the image and prevent lag on your site.
Very good point.

Thanks Shadow82x :)
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Informatics on May 06, 2009, 05:31:07 AM
thank you... i'll consider to use it on our forum.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: B.SkiLLs on May 07, 2009, 04:05:49 AM
cool. Didnt think of that before. Use to many other images in that area .. lol
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: ★MR.TALENT★ on May 20, 2011, 07:37:27 PM
Nice post and well said. :)

Quote from: Shadow82x on April 27, 2009, 05:58:15 PM
You can also use the same image code for several other spots in your forum, such as board names and descriptions.

Quote** I Highly recommend that you host the image on your site as it will speed up the loading time of the image and prevent lag on your site.
Very good point.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: KensonPlays on May 20, 2011, 08:08:39 PM
/me already knew this

Thanks though :)
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Iomega0318 on May 23, 2011, 05:17:21 AM
Quote from: B.SkiLLs on May 07, 2009, 04:05:49 AM
cool. Didnt think of that before. Use to many other images in that area .. lol
lol same here, thank you for this tip!
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Iomega0318 on May 23, 2011, 05:35:31 AM
Hmm found an error, on 2.0 RC5 if you make this edit it breaks the theme and outputs this:

<td><a href="http:///forums/index.php?action=admin;area=membergroups;sa=members;group=10"><img src="http:///forums/Themes/default/images/ranks/banned.pn&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td style=" text-align:="" center"="">0</a></td>


Also shows no image..
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Ken. on May 23, 2011, 05:36:27 AM
Great tip.  :)

We've been using images as board names for a long time now... they look nice, work great and we love it.  8)
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: ★MR.TALENT★ on June 11, 2011, 05:42:41 PM
but make sure u dont use a image to large it mess up the forum big time lol
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Mari-chi on June 12, 2011, 01:53:27 AM
ooo I've been wondering this. Thanks Jaaaay. <3
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: JBlaze on June 12, 2011, 02:23:52 AM
Quote from: Mari-chi on June 12, 2011, 01:53:27 AM
ooo I've been wondering this. Thanks Jaaaay. <3
No problem ;)
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: on June 14, 2011, 08:02:45 AM
great idea, i love you :D
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: WantSome on September 04, 2011, 03:59:56 PM
I've done this on my forum and I love the idea.

I've done this for Admin, Global Moderators, Moderators and Mentors on my site. 

The only issue is that when I go to change a member's primary member group, to make them a moderator, say, the drop down menu is blank (since there is not text and it won't show a picture) and you have to kind of guess where your moderator button might be.

The images do show beside the check buttons for the 'additional member group' area, though.  Go figure.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: ~Dragon~ on October 15, 2011, 04:47:23 PM
Thank easy basic
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: kizarze on October 24, 2011, 10:22:50 PM
Using this tip to -create new membergroups- has broken my forum. Any ideas?
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Clara Listensprechen on October 25, 2011, 08:54:08 PM
No. How is it broken?
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: pqlal789qreo on October 27, 2011, 11:51:27 PM
Nice post and well said. 
You can also use the same image code for several other spots in your forum, such as board names and descriptions.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.makemoneymakemoney.net%2Fhuang4.jpg&hash=a3be3cc7a9671e83e069b6c7954e074c3b01e946)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.makemoneymakemoney.net%2Fhuang2.jpg&hash=fb7628f8e09cab1f92f583309ef4bce1710532a0)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.makemoneymakemoney.net%2Fhuang3.jpg&hash=5bf41365a4194f59cc6d5b054d82fae63e822a01)
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: KensonPlays on October 28, 2011, 07:00:13 PM
Quote from: WantSome on September 04, 2011, 03:59:56 PM
I've done this on my forum and I love the idea.

I've done this for Admin, Global Moderators, Moderators and Mentors on my site. 

The only issue is that when I go to change a member's primary member group, to make them a moderator, say, the drop down menu is blank (since there is not text and it won't show a picture) and you have to kind of guess where your moderator button might be.

The images do show beside the check buttons for the 'additional member group' area, though.  Go figure.
You have it like this, right?

<img src="path/to/image.jpg" />

Right?

Try this:

<img src="path/to/image.jpg" alt="Membergroup Name"/>
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: WantSome on October 29, 2011, 11:51:49 AM
Thanks for the tip, Kcmartz but it doesn't seem to change the drop down menu at all and it remains blank.

When I say blank, I mean I can still choose something.  I just doesn't tell me what I'm choosing.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: kingkingston on November 19, 2011, 12:31:45 PM
well if you stuff it up, you can't re edit the link as i just found out, doesn't even show the edit  group link.

http://aussiesportsforum.com/index.php?action=admin;area=membergroups;sa=edit;group=18: Undefined index: group_inheritFile: /home/aussies2/public_html/Sources/ManageMembergroups.php

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi59.photobucket.com%2Falbums%2Fg320%2Fkingkingston%2Fasf.png&hash=f84d6996d51349c72c3308f4afb7b098edb12d60)
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: kingkingston on December 02, 2011, 01:19:43 AM
bump, can someone help me fix the above problem please :)
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: kingkingston on December 13, 2011, 06:26:28 AM
is there a fix for this anywhere ?
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: WantSome on December 22, 2011, 04:11:56 PM
You'll probably get more joy in the support forums, Kinkingston - I'd recommend starting a topic there instead.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: kingkingston on December 22, 2011, 10:11:43 PM
Quote from: WantSome on December 22, 2011, 04:11:56 PM
You'll probably get more joy in the support forums, Kinkingston - I'd recommend starting a topic there instead.
got the problem fixed :)
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Sir Charles on December 30, 2011, 07:01:06 PM
Good idea there, I have used the code to put images into descriptions before but never thought of this.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: ProHax on January 06, 2012, 01:22:30 AM
how would you change the display name into an image?
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Pred@t0R on February 09, 2012, 06:21:35 PM
Quote from: JBlaze on April 27, 2009, 12:51:11 PM
For those that are wondering how to make a membergroup name an image instead of just boring old text, here you go.

Go to Admin -> Membergroups -> {Group} Modify -> Group Name

Then, do the following
<img src="http://www.url-to-image.com/image.jpg" />

Add that as the Membergroup name INSTEAD of entering text.
Remember to replace the URL provided with the actual URL of the image you are using.

See attached screenshots for a demo :)

* This tip works for board names as well.
** I Highly recommend that you host the image on your site as it will speed up the loading time of the image and prevent lag on your site.

Do you know which results did i got becouse of this code ?

This solution destroyed my forum , and now i dont have any option te repair it ... The only solution is to delte my forum and install it again and  to upload my files and do edit settings ... Everything from start. Thank you very much.

This are the results of this solution :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi773.photobucket.com%2Falbums%2Fyy20%2Fspartanwarrior3%2Ff1.jpg&hash=db8f5eefaa5a9d00157899846b5ff8e5f1843059)

And when i press " Change / Edit " i got this results , so no way to repair it ...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi773.photobucket.com%2Falbums%2Fyy20%2Fspartanwarrior3%2Ff2.jpg&hash=d15d639fc5d5b9c7eb4285dc3d869cbb57f6d0b2)

And normally it should looks like that :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi773.photobucket.com%2Falbums%2Fyy20%2Fspartanwarrior3%2Ff3.jpg&hash=2488471f86ca26e28ae1d142421a2692e2efa9f8)

So now i need to reinstall my forum , right ?
Thank you ............
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Heardy on February 19, 2012, 02:58:03 PM
I found a way to fix that problem,


FIXED! :)
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: N i g h t m a r e on January 06, 2013, 04:04:06 AM
is there a way to use this code in the membergroup ID without it jacking up your Forum? if anyone can let me know please reply FAST!
Thanks
, Zeum
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: MaSSSS on January 27, 2013, 12:17:56 PM
Quote from: Pred@t0R on February 09, 2012, 06:21:35 PM

Do you know which results did i got becouse of this code ?

This solution destroyed my forum , and now i dont have any option te repair it ... The only solution is to delte my forum and install it again and  to upload my files and do edit settings ... Everything from start. Thank you very much.

-snip-

So now i need to reinstall my forum , right ?
Thank you ............

Same problem here. Now I have to use fix mentioned above so I can use my forum normally again. I admit I was a fool cause I wasnt thinking before I did this, so the joke is on me.

Dear visitors if you ever stump on this "Trick" please save yourself a headache and close this tab. Dont use it or you will be laughing to yourself as we did.

Quote from: Heardy on February 19, 2012, 02:58:03 PM
I found a way to fix that problem,


  • Log in to your database that your host controls
  • Go to smf_membergroups
  • Click on "Edit" where you can see the <img src~~
  • Change it back to the name it was before
  • Press "Go"

Thank you for the solution!

@SMF staff

Please remove this, its not safe and its not recommended to do, ever.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: thearmykid on April 03, 2013, 07:16:16 PM
holy **** didnt think this was possible been looking for this method for months and only just found it thanks for the share ! appreciate it !
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Arantor on April 03, 2013, 07:31:31 PM
PLEASE DON'T USE IT.

In case you didn't read the tips, this can seriously damage your forum requiring manual database changes to fix.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: thearmykid on April 03, 2013, 08:56:19 PM
you are rite with that one i had to go to database and fix the bugged groups but im ok with  that so it still ok with me :)
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: JBlaze on April 04, 2013, 10:20:14 AM
I totally I forgot I made this... 4 years ago.

Anyways, added a warning/disclaimer to the OP.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: winniethepooh on April 18, 2013, 07:25:51 AM
i just wanted to add a tip to anyone who uses this cool smf "hack", make sure your maximum avatar with is greater than or equal to the width of the images you use. ie my avatar maximum size is 148x148, so i would make my member group images 148x30. you get the idea.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: N i g h t m a r e on January 11, 2014, 03:47:35 PM
Worked like a charm :) thanks.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Arantor on January 11, 2014, 03:55:01 PM
Quote from: Sir Cumber-Patcher on April 03, 2013, 07:31:31 PM
PLEASE DON'T USE IT.

In case you didn't read the tips, this can seriously damage your forum requiring manual database changes to fix.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: N i g h t m a r e on January 11, 2014, 04:19:56 PM
Quote from: Sir Cumber-Patcher on January 11, 2014, 03:55:01 PM
Quote from: Sir Cumber-Patcher on April 03, 2013, 07:31:31 PM
PLEASE DON'T USE IT.

In case you didn't read the tips, this can seriously damage your forum requiring manual database changes to fix.


Well it worked perfectly for me, I wonder why? That's pretty odd if it didn't work for anyone else
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Arantor on January 11, 2014, 04:23:06 PM
That's why I said *CAN* as opposed to *WILL*. There are places it will guaranteed not work properly (e.g. go to someone's profile and try to change the primary group of a user), and under some circumstances it can prevent you actually changing group configuration on a more permanent basis.

I should add, while I don't expect to change the code in 2.1, 3.0 WILL BREAK THIS PERMANENTLY.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: N i g h t m a r e on January 11, 2014, 04:28:31 PM
Quote from: Sir Cumber-Patcher on January 11, 2014, 04:23:06 PM
That's why I said *CAN* as opposed to *WILL*. There are places it will guaranteed not work properly (e.g. go to someone's profile and try to change the primary group of a user), and under some circumstances it can prevent you actually changing group configuration on a more permanent basis.

I should add, while I don't expect to change the code in 2.1, 3.0 WILL BREAK THIS PERMANENTLY.


Would it work any better if there was a Mod for such a thing?
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Arantor on January 11, 2014, 04:32:21 PM
Technically it's actually a security risk to have this but the size of the field limits the 'worst case scenario' (it's hard to weaponise it to an actual security risk, but we still get reports every so often that it is a persistent-type XSS hole that should be fixed, but it's because of the number of people who use this 'tip' that I can't just change it)

All groups need to have a regular textual name for all the places that a regular textual group name is needed (any dropdown, amongst others), and really what you're saying is that you just need a mod to change the way the thread and maybe profile displays the group's name.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Illori on January 11, 2014, 07:14:27 PM
actually it has been changed in 2.1 already, and html in the username field does not get parsed out any longer.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Arantor on January 11, 2014, 07:30:03 PM
Not quite the way I have in mind it hasn't ;)
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: JBlaze on January 12, 2014, 04:47:07 AM
Feel free to delete this topic if it's causing trouble. At the time I wrote it, I was unaware of the possible outcomes of it.
Title: Re: [TIP/TRICK] Membergroup Images Instead of Name
Post by: Oshiego on January 29, 2015, 06:34:44 PM
Instead of actually replacing the Name as said with the image link.

You can change the staradmin.gif to another icon and put the number of stars to 1. That'll do the trick too. And it won't screw up the name.