Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Legend: on ForumHome with mouseover Details »»
User Legend: on ForumHome with mouseover
Version: 1.00, by Digitalus Digitalus is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 02-20-2007 Last Update: 03-20-2007 Installs: 71
Template Edits
 
No support by the author.

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

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

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

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

In forumhome template, find:

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

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

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

Add below:

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

HTML Code:
<!-- 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 -->

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-17-2007, 05:47 AM
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Location: Southie
Posts: 876
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 03-18-2007, 09:56 AM
mgurain's Avatar
mgurain mgurain is offline
 
Join Date: Apr 2005
Location: KSA - Qatif - Al-Jarodiah
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why are the colors hard-coded ? The should be gathered from the database.
Reply With Quote
  #14  
Old 03-18-2007, 05:35 PM
dbirosel dbirosel is offline
 
Join Date: Feb 2007
Location: San Diego
Posts: 587
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PoetJA-1975 View Post
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?
Reply With Quote
  #15  
Old 03-23-2007, 01:50 AM
dbirosel dbirosel is offline
 
Join Date: Feb 2007
Location: San Diego
Posts: 587
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was updated yesterday. What changed?
Reply With Quote
  #16  
Old 03-24-2007, 08:29 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 03-24-2007, 11:28 PM
dbirosel dbirosel is offline
 
Join Date: Feb 2007
Location: San Diego
Posts: 587
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 04-06-2007, 10:21 PM
WebmasterSimds WebmasterSimds is offline
 
Join Date: Sep 2006
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mgurain View Post
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


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

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.
Reply With Quote
  #19  
Old 04-08-2007, 12:03 PM
TOGUIMASTER's Avatar
TOGUIMASTER TOGUIMASTER is offline
 
Join Date: Sep 2006
Location: Puerto Rico
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool ....Installed
Reply With Quote
  #20  
Old 04-09-2007, 09:54 AM
iorkara iorkara is offline
 
Join Date: Mar 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome Installed
Reply With Quote
  #21  
Old 06-24-2007, 06:06 AM
Ronak's Avatar
Ronak Ronak is offline
 
Join Date: Sep 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Liked the hack...5 starz
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:02 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
  • Page Generation 0.05050 seconds
  • Memory Usage 2,333KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete