Advertisement:

Author Topic: [TIP/TRICK] Membergroup Images Instead of Name  (Read 71125 times)

Offline N i g h t m a r e

  • Full Member
  • ***
  • Posts: 577
  • Gender: Male
  • Immortal
Re: [TIP/TRICK] Membergroup Images Instead of Name
« Reply #40 on: January 11, 2014, 04:19:56 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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: [TIP/TRICK] Membergroup Images Instead of Name
« Reply #41 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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline N i g h t m a r e

  • Full Member
  • ***
  • Posts: 577
  • Gender: Male
  • Immortal
Re: [TIP/TRICK] Membergroup Images Instead of Name
« Reply #42 on: January 11, 2014, 04:28:31 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?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: [TIP/TRICK] Membergroup Images Instead of Name
« Reply #43 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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,597
Re: [TIP/TRICK] Membergroup Images Instead of Name
« Reply #44 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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: [TIP/TRICK] Membergroup Images Instead of Name
« Reply #45 on: January 11, 2014, 07:30:03 PM »
Not quite the way I have in mind it hasn't ;)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline JBlaze

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,160
  • Gender: Male
    • @fragicide on Twitter
Re: [TIP/TRICK] Membergroup Images Instead of Name
« Reply #46 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.
Jason Clemons
Former Lead Customizer/Support Specialist
Twitter | Facebook | Instagram

Offline Oshiego

  • Semi-Newbie
  • *
  • Posts: 13
Re: [TIP/TRICK] Membergroup Images Instead of Name
« Reply #47 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.