Log in

View Full Version : Forum Home Enhancements - Colored Username On Logout


SuperTaz
12-20-2008, 10:00 PM
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:



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



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

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