PDA

View Full Version : User Legend: on ForumHome with mouseover


Digitalus
21 Feb 2007, 06:58
*********************************************************
** 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:#999999;"></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:#FF9933;"></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:#339933;"></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:#0D3CEB;"></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:#DC143C;"></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
21 Feb 2007, 07:15
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
21 Feb 2007, 17:33
thank you v much.. was looking for this

iHostile
24 Feb 2007, 15:07
How would i change the group Colour for this mod?

Edit:

Ok think iv found it.

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

PoetJA-1975
25 Feb 2007, 03:57
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
25 Feb 2007, 04:51
I guess if you have some Strikes or Bold or Italics
usergroups they wouldn't show :(

Digitalus
25 Feb 2007, 09:31
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
26 Feb 2007, 17:02
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
16 Mar 2007, 22:19
nice.. installed

rjmjr69
17 Mar 2007, 06:47
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
18 Mar 2007, 10:56
Why are the colors hard-coded ? The should be gathered from the database.

dbirosel
18 Mar 2007, 18:35
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
23 Mar 2007, 02:50
It was updated yesterday. What changed?

bashy
24 Mar 2007, 21:29
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
25 Mar 2007, 00:28
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
06 Apr 2007, 23:21
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
08 Apr 2007, 13:03
Cool ....Installed

iorkara
09 Apr 2007, 10:54
awesome Installed

Ronak
24 Jun 2007, 07:06
Liked the hack...5 starz

SuperTaz
09 Jul 2007, 05:01
awesome, thanks

SuperTaz
19 Jul 2007, 00:41
Looks great. Thank you. Works well with my site.

SuperTaz
10 Sep 2007, 08:57
Still works with Version 3.6.8

DJRavine
11 Sep 2007, 19:41
very nice work.. installed.. ;)

Nickbe
13 Sep 2007, 05:54
is it just me that needs to ask what this does?

neoxi
17 Nov 2007, 14:25
thanks

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

bijju
30 Dec 2007, 05:03
thanks this really great

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

mahmuttunc
10 Mar 2008, 12:03
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
25 Oct 2008, 14:51
very nice installed

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

SuperTaz
15 Aug 2009, 02:02
How do you change the usergroup and color?

What do you mean?