The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom VIP username color
Hi everyone,
So I've searched the forums for some sort of custom vip, but no joy. I managed to get hold of a custom VIP script however what gives anyone within the VIP group to change their user rank colour . How do I go about making this possible for usernames too? This is the script I used for my usergroup (placed in postbit_legacy): Code:
<if condition="is_member_of($post, 14)"> <div style="width: 125px; height: 24px; background: $post[field9]; margin-top: 1px"><img src="customvip.png" style="margin-top: -1px;" /></div> </if> Code:
<div id="postmenu_$post[postid]"> <if condition="$show['profile']"> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script> <else /> $post[musername] </if> |
#2
|
||||
|
||||
You would need to make changes in the memberaction_dropdown template, as that is where the posters username is pulled from.
|
#3
|
|||
|
|||
I tried looking for that template, or phrase, none found.. bare in mind this is vb3.
|
#4
|
|||
|
|||
in usergroup manager edit your vip group and in the Username HTML Markup
first box put Code:
<span style="color:yellow;font-weight:bold;text-shadow: 1px 1px 10px yellow;"> Code:
</span> not sure if this is the type of thing you are looking for |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
Quote:
Code:
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> |
#7
|
|||
|
|||
Update;
I've managed to get the username colour working on postbit, however, it isn't on the forum home.. Any idea? Postbit code: Code:
<if condition="$show['profile']"> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]" <if condition="is_member_of($post, 27)">style="color:$post[field9]"</if>>$post[musername]</a> <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script> <else /> $post[musername] </if> Code:
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]"> <tr> <td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td> <td class="alt1" width="100%"> <div class="smallfont"> <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div> <div>$activeusers</div> </div> </td></if> </tr> </tbody> <!-- end logged-in users --> |
#8
|
||||
|
||||
They are Usergroup colours that show in the forumhome, the usergroup colours are set in the usergroup manager for each usergroup.
|
#9
|
||||
|
||||
Yeah I don't think you can do that easily, as the $post variable is only available in the postbit template.
|
#10
|
|||
|
|||
Again, I want it so that it's customized to what the user has set it to through the profile field. Not to what I've set it to through the usergroup manager.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|