The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User specific text colour
Hello,
Is there a way you can make it so a user group when posting is automatically given a text colour to the colour i chose? Ive been looking for sometime on how to do this but ive had no luck and cant find any mods/hacks on how to do this However i know it can be done becuase i use to use a layout that did just that, but i dont want to use the layout. Thanks |
#2
|
|||
|
|||
Quote:
|
#3
|
||||
|
||||
This is how I managed to make it work. I do it so that certain users get a certain color but it translates easily to the whole group getting the color you pick.
Go to your skins css and define something like .VIP_Group { color:#000000 } Then go to your postbit template and find Code:
<!-- message --> <div id="post_message_$post[postid]">$post[message]</div> <!-- / message --> and replace with Code:
<!-- message --> <if condition="(in_array($post['usergroupid'], array('group number goes here')))"> <span class="VIP_Group"><div id="post_message_$post[postid]">$post[message]</div></span> <else /> <div id="post_message_$post[postid]">$post[message]</div> </if> <!-- / message --> That should do what you are looking for. |
#4
|
|||
|
|||
Ive tried to do what you have suggested but it hasnt worked.
This bit here; PHP Code:
PHP Code:
Thanks, Renny |
#5
|
|||
|
|||
AdminCP > Usergroups > Usergroup Manager > Edit Usergroup > Username HTML markup
|
#6
|
|||
|
|||
Im sorry but what you have just posted isnt relivent. Its the Text of the posts the usergroup posts, not the username. Maybe you should read more carefully ?
|
#7
|
||||
|
||||
Quote:
EDITED TO ADD: also you put it in the postbit template you are using? I didn't specify but if you are using postbit_legacy then it needs to go in there. |
#8
|
|||
|
|||
Quote:
|
#9
|
||||
|
||||
Depends on which one you are using on your site, if you are using the legacy layout then you need to use postbit_legacy if you are using the layout like in the posts here you need to use postbit. Check vbulletin options, Style & Language Settings, Use Legacy (Vertical) Postbit Template if that is set to yes then edit the postbit_legacy template. If that is set to no then do the postbit template.
|
#10
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|