PDA

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


SuperTaz
21 Dec 2008, 15:57
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
21 Dec 2008, 16:15
not bad :)
thanks for sharing

SuperTaz
21 Dec 2008, 16:16
You're welcome. :)

RvG2
22 Dec 2008, 03:26
did it add 1 query in FH?

SuperTaz
22 Dec 2008, 12:30
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
28 Feb 2009, 03:18
Updated.

as7apcool
28 Feb 2009, 03:56
Cooooooool .. but no important fo coloring the user name