Username Colour on Member Profile

This makes the username show up as the default colour set for that usergroup..

This is more a tutorial than a hack, it will not be re-released, but will be supported if you have questions…

What does it do?

This makes the username show up as the default colour set for that usergroup..

Eg.

default.jpg

Note: All template edits are in the MEMBERINFO template

Installation

viewprofile.jpg

Find:

PHP Code:

< td class=« tcat »>$vbphrase/COLOR][COLOR=#0000bb]view_profile[/COLOR][COLOR=#007700< span class=« normal »>: $userinfo/COLOR][COLOR=#0000bb]username[/COLOR][COLOR=#007700span>td>

Replace with:

PHP Code:

< td class=« tcat »>$vbphrase/COLOR][COLOR=#0000bb]view_profile[/COLOR][COLOR=#007700< span class=« normal »>: $userinfo/COLOR][COLOR=#0000bb]musername[/COLOR][COLOR=#007700span>td>

##############

buddlist.jpg

Find:

PHP Code:

< a href=« profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$userinfo[userid] »>< phrase 1=« $userinfo[username] »>$vbphrase/COLOR][COLOR=#0000bb]add_x_to_buddy_list[/COLOR][COLOR=#007700phrase>a>

Replace with:

PHP Code:

< a href=« profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$userinfo[userid] »>< phrase 1=« $userinfo[musername] »>$vbphrase/COLOR][COLOR=#0000bb]add_x_to_buddy_list[/COLOR][COLOR=#007700phrase>a>

Find:

PHP Code:

< a href=« profile.php?$session[sessionurl]do=removelist&userlist=buddy&u=$userinfo[userid] »>< phrase 1=« $userinfo[username] »>$vbphrase/COLOR][COLOR=#0000bb]remove_x_from_your_buddylist[/COLOR][COLOR=#007700phrase>a>

Replace with:

PHP Code:

< a href=« profile.php?$session[sessionurl]do=removelist&userlist=buddy&u=$userinfo[userid] »>< phrase 1=« $userinfo[musername] »>$vbphrase/COLOR][COLOR=#0000bb]remove_x_from_your_buddylist[/COLOR][COLOR=#007700phrase>a>

Find:

PHP Code:

< a href=« profile.php?$session[sessionurl]do=addlist&userlist=ignore&u=$userinfo[userid] »>< phrase 1=« $userinfo[username] »>$vbphrase/COLOR][COLOR=#0000bb]add_x_to_ignore_list[/COLOR][COLOR=#007700phrase>a>

Replace with:

PHP Code:

< a href=« profile.php?$session[sessionurl]do=addlist&userlist=ignore&u=$userinfo[userid] »>< phrase 1=« $userinfo[musername] »>$vbphrase/COLOR][COLOR=#0000bb]add_x_to_ignore_list[/COLOR][COLOR=#007700phrase>a>

Find:

PHP Code:

< a href=« profile.php?$session[sessionurl]do=removelist&userlist=ignore&u=$userinfo[userid] »>< phrase 1=« $userinfo[username] »>$vbphrase/COLOR][COLOR=#0000bb]remove_x_from_your_ignorelist[/COLOR][COLOR=#007700phrase>a>

Replace with:

PHP Code:

< a href=« profile.php?$session[sessionurl]do=removelist&userlist=ignore&u=$userinfo[userid] »>< phrase 1=« $userinfo[musername] »>$vbphrase/COLOR][COLOR=#0000bb]remove_x_from_your_ignorelist[/COLOR][COLOR=#007700phrase>a>

###############

fineposts_threads.jpg

Find:
PHP Code:

< a href=« search.php?$session[sessionurl]do=finduser&u=$userinfo[userid] » rel=« nofollow »>< phrase 1=« $userinfo[username] »>$vbphrase/COLOR][COLOR=#0000bb]find_all_posts_by_x[/COLOR][COLOR=#007700phrase>a>

Replace with:

PHP Code:

< a href=« search.php?$session[sessionurl]do=finduser&u=$userinfo[userid] » rel=« nofollow »>< phrase 1=« $userinfo[musername] »>$vbphrase/COLOR][COLOR=#0000bb]find_all_posts_by_x[/COLOR][COLOR=#007700phrase>a>

Find:
PHP Code:

< a href=« search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&searchuser=$userinfo[urlusername] » rel=« nofollow »>< phrase 1=« $userinfo[username] »>$vbphrase/COLOR][COLOR=#0000bb]find_all_threads_started_by_x[/COLOR][COLOR=#007700phrase>a>

Replace with:
PHP Code:

< a href=« search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&searchuser=$userinfo[urlusername] » rel=« nofollow »>< phrase 1=« $userinfo[musername] »>$vbphrase/COLOR][COLOR=#0000bb]find_all_threads_started_by_x[/COLOR][COLOR=#007700phrase>a>

#####################

contact.jpg

Find:

PHP Code:

< a href=« sendmessage.php?$session[sessionurl]do=mailmember&u=$userinfo[userid] » rel=« nofollow »>< phrase 1=« $userinfo[username] »>$vbphrase/COLOR][COLOR=#0000bb]send_message_via_email_to_x[/COLOR][COLOR=#007700phrase>a>

Replace with:
PHP Code:

< a href=« sendmessage.php?$session[sessionurl]do=mailmember&u=$userinfo[userid] » rel=« nofollow »>< phrase 1=« $userinfo[musername] »>$vbphrase/COLOR][COLOR=#0000bb]send_message_via_email_to_x[/COLOR][COLOR=#007700phrase>a>

Find:

PHP Code:

< a href=« private.php?$session[sessionurl]do=newpm&u=$userinfo[userid] » rel=« nofollow »>< phrase 1=« $userinfo[username] »>$vbphrase/COLOR][COLOR=#0000bb]send_private_message_to_x[/COLOR][COLOR=#007700phrase>a>

Replace with:

PHP Code:

< a href=« private.php?$session[sessionurl]do=newpm&u=$userinfo[userid] » rel=« nofollow »>< phrase 1=« $userinfo[musername] »>$vbphrase/COLOR][COLOR=#0000bb]send_private_message_to_x[/COLOR][COLOR=#007700phrase>a>

#########################

groupmemberships.jpg

Find:

PHP Code:

< phrase 1=« $userinfo[username] »>$vbphrase/COLOR][COLOR=#0000bb]x_is_not_a_member_of_any_public_groups[/COLOR][COLOR=#007700phrase>

Replace with:

PHP Code:

< phrase 1=« $userinfo[musername] »>$vbphrase/COLOR][COLOR=#0000bb]x_is_not_a_member_of_any_public_groups[/COLOR][COLOR=#007700phrase>

Publications similaires