![]() |
Usergroup Legend for ForumHome page
This little plugin shows a legend of what the various styles mean for the names on the who's online section of your forumhome page.
A big thank you to Link14716 for getting rid of the query. Some people prefer different colors in the template changes. Their suggestions are posted below. I've posted what I am using on my board. More advanced users may prefer: https://vborg.vbsupport.ru/showpost....0&postcount=61 |
Ya know and I just made a simple template mod yesterday for this for 3.0.X :P https://vborg.vbsupport.ru/showthread.php?p=735383
Good job amy |
Quote:
This one appears to be a lot more automated. Nice one amy. :) |
Looks good
/me hits install |
Umm...
HTML Code:
<td class="alt1" colspan="2" class="smallfont"> |
Quote:
move smallfont to a span tag after the td |
Indeed. And changing the upper td attribute to thead makes it fit in nicely (IMO).
I have it running on my forumhome if anyone wants to take a peek. |
lol I just meant simple as in html wise, I am not smart enough yet to be fancy :P.
|
Heh, sorry dude. No offense meant. :)
|
Template stuff is always just a "starter" to get you going. ;) Tweak to your heart's desire.
Amy |
Nice idea amy :)
Edit: I was just thinking - Is there any way you can create a "spacer" element for the usergroup titles? :) What I mean is that "Administrator Super Moderator Moderator" etc looks a bit odd - I know how to add commas or dashes or other ascii characters to space the names out, but the problem is the last one listed will always have that character on the end of the name :ermm: I added a "legendorder" field and ordered the groups by it, and tried calling $usergroups['legendorder'] and making it so that if the number was greater than or equal to 9, there was no "spacer" but it didn't work :ermm: Satan |
OK. I just released 2.0. It has the span tag for the smallfont and it has the separator to separate the usergroups.
I'll grab a new screenshot and post it in a second. |
Thanks for this... Will be installing this in my test installation today. Definately makes it much easier than editing templates directly.
|
I did a few changes. First, in the template, I used
HTML Code:
<td class="thead" colspan="2"> HTML Code:
<td class="tcat" colspan="2"> PHP Code:
Good job, Amy. :) |
Quote:
Amy |
Quote:
Because I want it to display it by "legendorder" the field I created :p I'm stuck using the query because I can't figure out how I can make it order it how I want :p Satan |
Thinking out loud. I would add each group and tag and legend order field to an array. I would sort the array based on the legendorder and then I would explode the whole thing out to the legend string.
|
Great hack! Thanks
|
Quote:
PHP Code:
|
I'll give it a try ;)
It works well :) Satan |
Sovereign installs. amykhar, you are quite prolific with your hacking, good job, your hacks/plugins rock!
|
Thank you :)
Amy |
*Clicks Install*
Thank you amy. :D |
Has the download been updated with these changes or are those still coming?
|
Yes. The download is updated to use the cache Wayne.
|
I think it looks great. And it uploaded just fine. Thanks!
|
Quote:
Quote:
Quote:
|
Awsome job Amy :D I'll certaintly use this!
|
Just a small optimization:
Replace PHP Code:
PHP Code:
Other than that - nice job :) |
Dark, doesn't your version end up with a | before the first group? I did it the way I did to put the | between the group names.
Amy |
Quote:
|
Yes, it does sorry. But here is a fix:
PHP Code:
|
OK. I 'm going to stick with mine then, simply for clarity for newer coders. People who understand optimization will probably grab your code. But, people who want to tinker with my base hack will do better working with more readable code.
Amy |
Okay. Your code is as good as mine. :)
|
Quote:
Satan |
Quote:
|
We all need to calm down and respect Amy. This is her thread. ;)
|
Quote:
In respect for amy's thread and boobfoo's pointing out, I'll leave it at this: It's just a hack - Chill :p Satan |
boobfoo? I may switch sides. ;)
|
Quote:
|
All times are GMT. The time now is 06:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|