The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Users Choose Username Font/Color Posts Details »» | |||||||||||||||||||||||||
//////////////////////// Users Choose Color/Font Of Username In Posts \\\\\\\\\\\\\\\\\\\\\\\\
////////////////////////////////////////////////// by gio~logist \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ------------------- Allow users to change what color their username is in posts -------------------- ------------------------------------------ Via UserCP ------------------------------------------- //////////////////////////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\ 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]Current Add-Ons[/high] Exclude Certain Colors [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 |
#22
|
||||
|
||||
Actually it only overwrites it IF THE USER HAS A COLOR SELECTED.
I'm a bit busy right now however, expect the release of user font hack tonight or sooner! |
#23
|
||||
|
||||
Then a user could set their name the same as a Mod or Admin.
And would you please post this in a text file so others can download it and have it in case of a re-install? |
#24
|
||||
|
||||
I don't know if you wrote this for me:
https://vborg.vbsupport.ru/showthread.php?t=91845 but thanks! I will check it out later. As far as more ideas to throw in the hack- how about having a list of the fonts that they can choose in a drop-down menu? Quote:
|
#25
|
||||
|
||||
Quote:
I didn't see your request however, i'm glad i can help. I will update this thread with instructions on how to make it function in who's online as well. Also, i would do a drop down menu, however, not everyone likes the same fonts. As for colors..... if someone chooses a color the same as one in which admins have....... does it really matter? That's why they invented showgroups.php If it really does matter then i can try and make a drop down, however, it doesnt seem that big of a deal at the moment. |
#26
|
||||
|
||||
Quote:
|
#27
|
||||
|
||||
So then i suppose you expect me to try and guess what color each admin of a forum has set each usergroup to so that then i can determind what to put int he drop down?
|
#28
|
|||
|
|||
I dont know why they're griping, but this hack is awesome. Thanks tons man.
|
#29
|
|||
|
|||
The only thing I could think of is I wish the colors were expanded to the other areas of the forum, as in the What's Happening area, and in the last post column, things like that.
The color picker would be nice as well. |
#30
|
||||
|
||||
I already have the color picker ima use, i just need to write instructions and stuff.
I will explain how to get this working on other parts of the forum as well when i release the color picker. |
#31
|
|||
|
|||
You get that stuff put in and I think it could be HOTM
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|