The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Usergroup Legend on Mouseover Details »» | |||||||||||||||||||||||||||||||
/*================================================= =========*\
|| ################################################## ## || || # Usergroup Legend For vBulletin Forums 4.1.x || # Version 1.01 || # Author: Warden || # This mod may only be used from vbulletin.org || # DO NOT display this mod on any other modification site without my || # permission! || # You can alter this code and re-display it here on vbulletin.org || ################################################## ## || \*================================================ ==========*/ Description: This makes a usergroup legend that you can see what group belongs to whom by hovering over the color. This mod is ported from this one here: https://vborg.vbsupport.ru/showthread.php?t=140019 All credits go to Digitalus since he came up with this design. Note: This mod does work with vBulletin 4.1.8. It is easy to add more colors for usergroups. I will post that below. Installation time: About 2 minutes (2 Phrases, 1 Manual Template Change) Note: If you are using this mod, https://vborg.vbsupport.ru/showthread.php?t=254239, it will conflict with my mod. Make sure if you use my mod, to delete the other one. Also note: Make sure your style is updated to the newest version or there may be issues. Also Note: This mod may contain a few glitches and/or bugs until I get them worked out. If someone wants to make this into an XML product, knock yourself out. Installation: Step 1: Go to admincp > Languages & Phrases > Phrase Manager > Add New Phrase: Code:
Phrase Type: Global Product: vBulletin Varname: legend_title Text: Usergroup Legend Step 2: Go to Admincp > Languages & Phrases > Phrase Manager > Ass New Phrase: Code:
Phrase Type: Global Product: vBulletin Varname: legend_alt_title Text: User Group Legend Step 3: Go to your AdminCP > Styles & Templates > Style Manager Step 4: Choose your style Step 5: Click on "Forum Home Templates", then click on "Forum Home" Step 6: Look for: Code:
<!-- what's going on box --> Code:
<script type="text/javascript"> <!-- setup_memberlegend = function(tobj) { prefix = '' suffix = '' if (tobj.getAttribute('ital')) { prefix += '<em>' suffix += '</em>' } if (tobj.getAttribute('undr')) { prefix += '<u>' suffix += '</u>' } if (tobj.getAttribute('bold')) { prefix += '<b>' suffix += '</b>' } if (tobj.getAttribute('line')) { prefix += '<s>' suffix += '</s>' } if (tobj.getAttribute('clr')) { prefix += '<span style="color:' + tobj.getAttribute('clr') + ';">' suffix += '</span>' } fetch_object('memberlegend').innerHTML = prefix + tobj.getAttribute('group') + suffix } --> </script> Code:
<!-- end logged-in users --> Code:
<!-- Usergroup Legend --> <div id="wgo_legend" class="wgo_subblock section collapse"><h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:phrase legend_alt_title}"/>{vb:phrase legend_title}</h3> <a class="collapse" id="collapse_legend_list" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="Collapse/Expand" /></a> </div> <div> <div style="float:left; width:18px; height:2px"></div> <div style="float:left;"> </div> <div class="alt2" style="float:left;height:15px;width:15px;padding:0px;" group="Administrator" clr="#FF0000" bold="y" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''"> <div style="height:15px;width:15px;background:#FF0000;"></div> </div> <div style="float:left;"> </div> <div class="alt2" style="float:left;height:15px;width:15px;padding:0px;" group="Super Moderator" bold="y" clr="#00FF00" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''"> <div style="height:15px;width:15px;background:#00FF00;"></div> </div> <div style="float:left;"> </div> <div class="alt2" style="float:left;height:15px;width:15px;padding:0px;" group="Moderator" bold="y" clr="#008000" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''"> <div style="height:15px;width:15px;background:#008000;"></div> </div> <div style="float:left;"> </div> <div class="alt2" style="float:left;height:15px;width:15px;padding:0px;" group="Supporter" bold="y" clr="#FFFF00" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''"> <div style="height:15px;width:15px;background:#FFFF00;"></div> </div> <div style="float:left;"> </div> <div class="alt2" style="float:left;height:15px;width:15px;padding:0px;" group="Member" clr="#00FFFF" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''"> <div style="height:15px;width:15px;background:#00FFFF;"></div> </div> <div style="float:left;"> </div> <div class="alt2" style="float:left;height:15px;width:15px;padding:0px;" group="Validating" clr="#A0522D" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''"> <div style="height:15px;width:15px;background:#A0522D;"></div> </div> <div style="float:left"> </div> <div class="alt2" style="float:left;height:15px;width:15px;padding:0px;" group="Banned" ital="y" line="y" clr="#FF00FF" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object ('memberlegend').innerHTML = ''"> <div style="height:15px;width:15px;background:#FF00FF;"></div> </div> <div style="float:left;width:10px;height:1px;"> </div> <div style="float:left;" id="memberlegend"></div> </div> <br><br> <!-- End Usergroup Legend --> You can adjust the usergroup names and colors to your liking. If you want to add another usergroup, find the spot you want in the code above, and add this code: Code:
<div style="float:left;"> </div> <div class="alt2" style="float:left;height:12px;width:12px;padding:0px;" group="Member" bold="y" clr="#000000" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''"> <div style="height:12px;width:12px;background:#000000;"></div> </div> The red highlighted area is the html color code you can change. Live Demo Here Scroll down to the bottom. Remember: If you want support, CLICK INSTALL Any problems, let me know. Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
Благодарность от: | ||
JamalFree |
Comments |
#12
|
||||
|
||||
This does not change the colors of your users. This only shows the colors that you want for each usergroup.
In order to change your usergroup colors, you have to do this: Go to your Admincp > Click on Usergroups dropdown menu > Usergroup Manager > Click on "GO" next to the usergroup you want to change > Look for Username HTML Markup and add this: For the first box add, you can change the color: Code:
<span style="font-weight: bold; color: red;"> Code:
</span> Then, on my mod, you change the color to the one you chose for each usergroup as shown above. |
#13
|
|||
|
|||
oh perfect, thanks a ton for that!
|
#14
|
|||
|
|||
when convenient for me not someone has an idea?
|
#15
|
||||
|
||||
What version of vBulletin are you using?
|
#16
|
|||
|
|||
I have 4.1.2
|
#17
|
||||
|
||||
Can you pm me the URL of your site so I can take a look at it? The only thing I can think of is that the style that you have it on is not a 4.1.2 style.
|
#18
|
|||
|
|||
here is my forumhome
PHP Code:
|
#19
|
||||
|
||||
If you can, check to see if this mod works on the default vB template for me. I have checked my styles and it works on all of them. All of my styles are all updated to 4.1.2 though.
If it works on the default template, but not on the style you showed above, then it is a style issue. Make sure they are all 4.1.2 compatible styles. |
#20
|
||||
|
||||
Confirmed that this mod still works on 4.1.3 and 4.1.4 Beta 1. If anyone is having any issues, try on a test site with no mods installed using the default style.
I have taken this mod off beta stage for now. If any issues arise, let me know and I will see what I can do. |
#21
|
|||
|
|||
very nice, thank you
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|