PDA

View Full Version : User Legend: on ForumHome with mouseover


Digitalus
02-20-2007, 10:00 PM
************************************************** *******
** UserLegend on ForumHome with mouseover
** Version: 1.00
** Modification by Digitalus
**
** Works on any vBulletin versions
**
************************************************** *******

************************************************** *******
TEMPLATES EDITS
************************************************** *******

--------------------------------------------

In forumhome template, find:

----------------------------------------

<!-- what's going on box -->

------------------------------------------------------

Add below:

-----------------------------------------------------

<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>


--------------------------------------------

In forumhome template, find:

----------------------------------------

<!-- end logged-in users -->

------------------------------------------------------

Add below:

-----------------------------------------------------

<!-- User Legend By Digitalus-->
<tbody> <tr> <td class="thead" colspan="2"> <a style="float: right;" href="#top" onclick="return toggle_collapse('forumhome_legend')"><img src=$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_legend].gif alt="" name="collapseimg_forumhome_legend" width="16" height="16" border="0" id="collapseimg_forumhome_legend"></a> <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">User Legend </a></td>
</tr> </tbody> <tbody id="collapseobj_forumhome_legend" style=""> <tr> <td class="alt2"><a href="showgroups.php$session[sessionurl_q]" rel="nofollow"><img title="Legend" src="$stylevar[imgdir_misc]/whos_online.gif" alt="Legend" border="0"></a></td> <td class="alt1" width="100%"> <div style="float:left;"><strong>Legend</strong>:</div>
<div style="float:left;">&nbsp;</div>
<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Banned Member" ital="y" line="y" clr="#000000" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
<div class="tborder" style="height:8px;width:8px;background:#000000;"></div>
</div>
<div style="float:left;">&nbsp;</div>
<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Member" bold="y" clr="#999999" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
<div class="tborder" style="cursor:help;height:8px;width:8px;background:#99999 9;"></div>
</div>
<div style="float:left;">&nbsp;</div>
<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Vip Member" bold="y" clr="#FF9933" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
<div class="tborder" style="cursor:help;height:8px;width:8px;background:#FF993 3;"></div>
</div>
<div style="float:left;">&nbsp;</div>
<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Moderators" bold="y" clr="#339933" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
<div class="tborder" style="cursor:help;height:8px;width:8px;background:#33993 3;"></div>
</div>
<div style="float:left;">&nbsp;</div>
<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Super Moderators" bold="y" clr="#0D3CEB" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
<div class="tborder" style="cursor:help;height:8px;width:8px;background:#0D3CE B;"></div>
</div>
<div style="float:left;">&nbsp;</div>
<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Administrators" clr="#DC143C" bold="y" ital="y" undr="y" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
<div class="tborder" style="cursor:help;height:8px;width:8px;background:#DC143 C;"></div>
</div>
<div style="float:left;width:10px;height:1px;">&nbsp;</div>
<div style="float:left;" id="memberlegend"></div> </td> </tr> </tbody>
<!-- End User Legend by Digitalus -->

Digitalus
02-21-2007, 06:15 AM
or search for the line
************************************************** *******
** UserLegend on ForumHome with mouseover
** Version: 1.00
** Modification by Digitalus alias SatFreak
**
** Works on any vBulletin versions
**
************************************************** *******

************************************************** *******
TEMPLATES EDITS
************************************************** *******

--------------------------------------------

In forumhome template, find:

----------------------------------------

<!-- what's going on box -->

------------------------------------------------------

Add below:

-----------------------------------------------------


<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>--------------------------------------------

In forumhome template, find:

----------------------------------------

<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase>
</div>

en put the code after..

look better also ;)

Nzarect
02-21-2007, 04:33 PM
thank you v much.. was looking for this

iHostile
02-24-2007, 02:07 PM
How would i change the group Colour for this mod?

Edit:

Ok think iv found it.

TheFrienzNet
02-25-2007, 01:23 AM
Woah, I love this legend. It is defineatly better than my current one.

PoetJA-1975
02-25-2007, 02:57 AM
Great! Looks like a copy of Zero Tolerance personal website modification: http://forums.gzevolution.net/index.php

Anyway - did it the hard way - Could especially used this mod couple weeks ago.

Nice share though!

Jacquii.

Shazz
02-25-2007, 03:51 AM
I guess if you have some Strikes or Bold or Italics
usergroups they wouldn't show :(

Digitalus
02-25-2007, 08:31 AM
I guess if you have some Strikes or Bold or Italics
usergroups they wouldn't show :(

Yes it shows, is allready added

if (tobj.getAttribute('bold'))
{
prefix += '<b>'
suffix += '</b>'
}

TheFrienzNet
02-26-2007, 04:02 PM
I guess if you have some Strikes or Bold or Italics
usergroups they wouldn't show :(

ital="y" (Italic)
line="y" (Strike)
bold="y" (Bold)

Chicago_VLNU_4s
03-16-2007, 09:19 PM
nice.. installed

rjmjr69
03-17-2007, 05:47 AM
I gave it a quick shot and I found it to be very plane and simple. The user colors were not correct for what I have set. And its very small for such a large amount of space it uses. Perhaps adding this to be below the current users online or even Users who have Visited in the last 24 hours. Something like the example below. But have it always below the last line if listed members.
Other than that I guess it would suit a small simple site.

johny,dan,joe,cliff
USERLEGEND

mgurain
03-18-2007, 09:56 AM
Why are the colors hard-coded ? The should be gathered from the database.

dbirosel
03-18-2007, 05:35 PM
Great! Looks like a copy of Zero Tolerance personal website modification: http://forums.gzevolution.net/index.php

Anyway - did it the hard way - Could especially used this mod couple weeks ago.

Nice share though!

Jacquii.
How do we position our legends to become like his?

dbirosel
03-23-2007, 01:50 AM
It was updated yesterday. What changed?

bashy
03-24-2007, 08:29 PM
Hi

I would like to add some text to the right of the coloured legend, not sure if i need <td> or <tr> or <bobs ya uncle> nor where to put it lol

Any help would be greatfully received :)

dbirosel
03-24-2007, 11:28 PM
How come on IE the boxes are bigger than how it looks in firefox and opera? Ff and opera is normal but IE totally messes up the template.

WebmasterSimds
04-06-2007, 10:21 PM
Why are the colors hard-coded ? The should be gathered from the database.

Thats Easy to answer, because if it were taken from the DB, then there is a querry from the Db, which slows things down more. the more you take from the DB the more it slows


How come on IE the boxes are bigger than how it looks in firefox and opera? Ff and opera is normal but IE totally messes up the template.

Thats just the way Microstuff did their browser.

For those asking why the colors dont look right. if I may, if your running your display on your computer at only 264 colors, then your limited to that.

As for other reason, here is the code

<div style="float:left;">&nbsp;</div>
<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Site Helpers" bold="y" clr="#666633" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
<div class="tborder" style="height:8px;width:8px;background:#666633;"></div>
</div>

Now if you will notice there are 2 (TWO) places you ned to change the color, the one next to the actual title of the person, then the Last Line needs to be the same. if not then it will not show up properly.

TOGUIMASTER
04-08-2007, 12:03 PM
Cool ....Installed

iorkara
04-09-2007, 09:54 AM
awesome Installed

Ronak
06-24-2007, 06:06 AM
Liked the hack...5 starz

SuperTaz
07-09-2007, 04:01 AM
awesome, thanks

SuperTaz
07-18-2007, 11:41 PM
Looks great. Thank you. Works well with my site.

SuperTaz
09-10-2007, 07:57 AM
Still works with Version 3.6.8

DJRavine
09-11-2007, 06:41 PM
very nice work.. installed.. ;)

Nickbe
09-13-2007, 04:54 AM
is it just me that needs to ask what this does?

neoxi
11-17-2007, 01:25 PM
thanks

Jason Black
11-18-2007, 09:40 AM
ok...so how do i make it show on the usernames?....it's just there saying userlegend

bijju
12-30-2007, 04:03 AM
thanks this really great

TheInsaneManiac
02-03-2008, 07:22 AM
Would be nice if you could edit them in the database instead of the code. Still *Clicks install*

mahmuttunc
03-10-2008, 11:03 AM
This is great and it works with 3.6.8 but i want to put this above who is currently online.Can some one help me with this please.

MyChemicalSelf
10-25-2008, 01:51 PM
very nice installed

cs347
07-23-2009, 06:10 AM
How do you change the usergroup and color?

SuperTaz
08-15-2009, 01:02 AM
How do you change the usergroup and color?

What do you mean?