The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Users Choose Color/Font Of Username In Posts Details »» | |||||||||||||||||||||||||||
Users Choose Color/Font Of Username In Posts
Developer Last Online: Oct 2022
//////////////////////// Users Choose Color/Font Of Username In Posts \\\\\\\\\\\\\\\\\\\\\\\\
////////////////////////////////////////////////// by gio~logist \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ------------------- Allow users to change what color their username is in posts -------------------- ------------------------------------------ Via UserCP ------------------------------------------- //////////////////////////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\ This hack was originally made for 3.5, however, Erwin gave me the OK to post it here as well, due to the fact that it also works on this version of vb :-D Want members to be able to choose the font color of their usernames in posts? [high]Step 1[/high] [high]Go to User Profile Fields >> Add New User Profile Field[/high] Choose A "Single-Line Text Box" [high]Title:[/high] "Color of Your Username" [high]Description:[/high] Type in the color in which you will like your username to be. Keep in mind that writing the colors in text does not always work, so try and format it like this: #ff0000 (that code is for red). [high]Display Size:[/high] 11 [high]Max length of allowed user input:[/high] 7 [high]HIT SAVE[/high] [high]Step 2[/high] Now go to edit your postbit template and search for this code: HTML Code:
$post[musername] HTML Code:
<if condition="$post['fieldx'] != '' "> <font style="color:$post[fieldx]">$post[musername]</font> <else /> $post[musername] </if> [high]HIT SAVE[/high] Want them to be able to choose the font as well? [high]Step 1[/high] [high]Go to User Profile Fields >> Add New User Profile Field[/high] Choose A "Single-Line Text Box" [high]Title:[/high] "Font of Your Username" [high]Description:[/high] Type in the font in which you will like. For example for tahoma, type in "Tahoma", without the quotations. [high]Display Size:[/high] 15 [high]Max length of allowed user input:[/high] 20 [high]HIT SAVE[/high] [high]Step 2[/high] Now go to edit your postbit template and search for this code: HTML Code:
$post[musername] HTML Code:
<if condition="$post['fieldx'] != '' "> <font style="font-family:$post[fieldx]">$post[musername]</font> <else /> $post[musername] </if> [high]HIT SAVE[/high] [high]AND WE'RE DONE![/high] If you want them to be able to choose both color AND font, only do step 1 in each part, and then replace: HTML Code:
$post[musername] HTML Code:
<if condition="$post['fieldx'] != '' "> <font style="font-family:$post[fieldx]; color:$post[fieldx];">$post[musername]</font> <else /> $post[musername] </if> [HIGH]Planned For Next Version (So Far)[/high] - Have a pop up that allows you to pick a color and then shows the code for that color. If you have any other ideas feel free to post them! Supporters / CoAuthors Show Your Support
|
Comments |
#2
|
|||
|
|||
Nice!! Installed..
|
#3
|
||||
|
||||
Nice modification, thank you for sharing.
|
#4
|
||||
|
||||
Unless I'm missing something, the method I wrote for my forum the other day is slightly "safer" .
|
#5
|
|||
|
|||
Thank you for sharingn your nice hack, gio~logist...
At the moment, the font color and type only display in the postbit on my forum when a board user is online. Guests do not see the username font changes. Are others also experiencing this? Thanks, Khashyar |
#6
|
|||
|
|||
I think what might be happening, is that because the color and font profile fields are "private" fields, they are only showing for registered users...
Khashyar |
#7
|
||||
|
||||
Hey thanks! This mod is great. I was getting sick of setting up a new usergroup everytime somebody wanted a new color.
How would I go about making the usernames show up in each member's individual color in the Members List and Who's Online list as well? |
#8
|
||||
|
||||
Quote:
Also, i will look into getting it to show in memberlist. Quote:
A) Maybe guests not being able to see a user's profile has affected this. B) Maybe the field is private Those are the only two reasons that come to my head. |
#9
|
|||
|
|||
Ok, Im Using Ushop So I Dont Want To Do This, But Is This Possible:
Using Vb 3.07 Same Idea Except Allow A User To Choose A Font And Font Color To Be Their Default Font Color / Font In The Usercp? Couldnt Find A Thread.. Thanks For The Help |
#10
|
|||
|
|||
I cant get this to work in version 3.0.9 can anyone help?
I am assuming that this is the right bit of code: <div id="postmenu_$post[postid]"> <if condition="$show['profile']"> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> $post[onlinestatus] <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script> <else /> <if condition="$post['fieldx'] != '' "> <font style="font-family:$post[field7]; color:$post[field6];">$post[musername]</font> <else /> $post[musername] </if> also the part I have highlighted in red ( ummm green )does that need to be changed aswell? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|