vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - Colored Username On Logout (https://vborg.vbsupport.ru/showthread.php?t=199427)

SuperTaz 12-20-2008 10:00 PM

Colored Username On Logout
 
1 Attachment(s)
This is just a small mod to change the color of your username for the Logout area at the bottom of the forums.

I don't know if there already is a mod for this. If there is, then I did not see it.

This is my first mod. I thought it would be good to keep the color of your usernames the same as the "Currently Active Users" list.

Installation:

In the FORUMHOME template find:


Code:

                <if condition="!$show['guest']">
                <!-- member logout -->
                <td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
                <!-- end member logout -->
        </if>

Replace with:


Code:

                              <if condition="!$show['guest']">
                <!-- member logout -->
                <td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[musername]">$vbphrase[log_out_x]</phrase></a></td>
                <!-- end member logout -->
        </if>


Look to the right side of the screenshot attached.

Remember to Click Install

Brandon Sheley 12-21-2008 02:15 PM

not bad :)
thanks for sharing

SuperTaz 12-21-2008 02:16 PM

You're welcome. :)

RvG2 12-22-2008 01:26 AM

did it add 1 query in FH?

SuperTaz 12-22-2008 10:30 AM

Not from what I can see on my test site. All I did was change a letter. I will look into that for you though.

Quote:

Originally Posted by RvG2 (Post 1690764)
did it add 1 query in FH?

It does add one query.

SuperTaz 02-28-2009 01:18 AM

Updated.

as7apcool 02-28-2009 01:56 AM

Cooooooool .. but no important fo coloring the user name


All times are GMT. The time now is 10:24 PM.

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.00938 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete