![]() |
|
|
Mod Options |
Users Choose Color/Font Of Username In Posts Details »»
|
|||||||||||||||||||||||||||||||||||
|
Users Choose Color/Font Of Username In Posts
Developer Last Online: May 2013
This modification is in the archives.
//////////////////////// 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? Step 1 Go to User Profile Fields >> Add New User Profile Field Choose A "Single-Line Text Box" Title: "Color of Your Username" Description: 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). Display Size: 11 Max length of allowed user input: 7 HIT SAVE Step 2 Now go to edit your postbit template and search for this code:
Replace it with this
X will be the id for the field in which you created. To view the id of the field created go to the "Profile Field Manager" and find the field ID of the field you made. (This appears under the "Name" column). It should show as fieldx where x is the ID. HIT SAVE Want them to be able to choose the font as well? Step 1 Go to User Profile Fields >> Add New User Profile Field Choose A "Single-Line Text Box" Title: "Font of Your Username" Description: Type in the font in which you will like. For example for tahoma, type in "Tahoma", without the quotations. Display Size: 15 Max length of allowed user input: 20 HIT SAVE Step 2 Now go to edit your postbit template and search for this code:
Replace it with this
The X in font-family will be the id for the field in which you created. To view the id of the field created go to the "Profile Field Manager" and find the field ID of the field you made. (This appears under the "Name" column). It should show as fieldx where x is the ID. HIT SAVE AND WE'RE DONE! If you want them to be able to choose both color AND font, only do step 1 in each part, and then replace:
with
The X in font-family will be the id for the field in which you created. The X in font-color will be the id for the field in which you created before. To view the id of the field created go to the "Profile Field Manager" and find the field ID of the field you made. (This appears under the "Name" column). It should show as fieldx where x is the ID. Planned For Next Version (So Far) - 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! Download Now Only licensed members can download files, Click Here for more information. Supporters / CoAuthors Show Your Support
No members have liked this post.
|
|||||||||||||||||||||||||||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| Users Choose Username Font/Color Posts | Gio~Logist | vBulletin 3.5 Template Modifications | 61 | 15 Mar 2010 05:53 |
| Comments |
|
#2
|
|||
|
|||
|
Nice!! Installed..
No members have liked this post.
|
|
#3
|
||||
|
||||
|
Nice modification, thank you for sharing.
![]() No members have liked this post.
|
|
#4
|
||||
|
||||
|
Unless I'm missing something, the method I wrote for my forum the other day is slightly "safer"
.No members have liked this post.
|
|
#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 No members have liked this post.
|
|
#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 No members have liked this post.
|
|
#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? No members have liked this post.
|
|
#8
|
||||
|
||||
|
Originally Posted by Anon47
I am currently trying to work on getting profile fields to show in Who's Online. This isn't to easy but i am trying extremely hard because i need this for something im doing to my site.
Also, i will look into getting it to show in memberlist.
Originally Posted by Khashyar
This can be that:
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. No members have liked this post.
|
|
#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 No members have liked this post.
|
|
#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? No members have liked this post.
|
|
#11
|
||||
|
||||
|
I got it. I only needed to change one.
*Clicks install* No members have liked this post.
|
|
#12
|
|||
|
|||
|
I still can't get this to work!
No members have liked this post.
|
|
#13
|
|||
|
|||
|
Quick Question? I have installed this into my postbit and i need to know what the first X is supposed to be?
<else /> $post[musername] </if> It show's up in my profile:
No members have liked this post.
Last edited by hotwheels : 20 Dec 2005 at 09:06. |
|
#14
|
|||
|
|||
|
Does this work for any versions of vBulletin? Thanks.
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 00:16.






