vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   User Legend: on ForumHome with mouseover (https://vborg.vbsupport.ru/showthread.php?t=140019)

Digitalus 02-20-2007 10:00 PM

User Legend: on ForumHome with mouseover
 
************************************************** *******
** 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 -->


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:

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


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:

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

HTML Code:

                        <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 [s]Strikes[/s] or Bold or Italics
usergroups they wouldn't show :(

Digitalus 02-25-2007 08:31 AM

Quote:

Originally Posted by Shazz (Post 1190146)
I guess if you have some [s]Strikes[/s] or Bold or Italics
usergroups they wouldn't show :(

Yes it shows, is allready added

HTML Code:

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


TheFrienzNet 02-26-2007 04:02 PM

Quote:

Originally Posted by Shazz (Post 1190146)
I guess if you have some [s]Strikes[/s] or Bold or Italics
usergroups they wouldn't show :(

HTML Code:

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


Chicago_VLNU_4s 03-16-2007 09:19 PM

nice.. installed


All times are GMT. The time now is 08:51 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.01183 seconds
  • Memory Usage 1,776KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete