The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Force usergroups to post in a different font color by default
For one, I'm wondering if this is possible?
Two, where would I place code for something like this? Three, can someone help me make/find a code that would work for this. An example would be something like the staff on Blizzard forums; they post in blue for every post, indicating that they are the staff. I want to do something to that effect. |
#2
|
||||
|
||||
I think I already posted this in the other thread for changing the background color inline, but here is it for changing the color and with the conditions. You will need to find which td tag you are interested in changing and then just add the color part. If you have problems, post the code you tried and tell us the outcome.
HTML Code:
<if condition="is_member_of($post, X)"> <td class="alt2" id="td_post_$post[postid]" style="color: yellow;"> <else /> <if condition="is_member_of($post, Y)"> <td class="alt2" id="td_post_$post[postid]" style="color: red;"> <else /> <td class="alt2" id="td_post_$post[postid]" style="color: blue;"> </if> </if> |
#3
|
|||
|
|||
I'm confused.
I don't know what a td tag is. I know nearly nothing about this coding. I'm trying to learn, but I know what I want done. With this statement: Code:
<if condition="is_member_of($post, X)"> In the statement: Code:
<td class="alt2" id="td_post_$post[postid]" style="color: yellow;"> |
#4
|
||||
|
||||
X is the usergroupid - you would not leave it as X, but change it to the userid you want.
Lets say you want to change the font in the main post area. You would need to find that area. You will find it by looking for <!-- message --> in the postbit, or postbit_legacy depending on which you use, template. Let's assume you don't care about the post title and instead only the color of the post itself. In that case, we will just use the div tag right below the <!-- message --> (it's in red and it's for a 3.8 template - yours may be different): Code:
<!-- message --> <div id="post_message_$post[postid]"> $ad_location[ad_showthread_firstpost_start] $post[message] </div> <!-- / message --> HTML Code:
<if condition="is_member_of($post, 6)"> <div id="post_message_$post[postid]" style="color: yellow;"> <else /> <if condition="is_member_of($post, 5)"> <div id="post_message_$post[postid]" style="color: red;"> <else /> <div id="post_message_$post[postid]" style="color: blue;"> </if> </if> |
#5
|
|||
|
|||
Quote:
HTML Code:
<if condition="is_member_of($post, 6)"> <div id="post_message_$post[postid]" style="color: yellow;"> </if> |
#6
|
||||
|
||||
If you only want it for admins, then replace my second box of code with:
HTML Code:
<if condition="is_member_of($post, 6)"> <div id="post_message_$post[postid]" style="color: yellow;"> <else /> <div id="post_message_$post[postid]" style="color: blue;"> </if> HTML Code:
<if condition="is_member_of($post, 6)"> <div id="post_message_$post[postid]" style="color: yellow;"> <else /> <div id="post_message_$post[postid]"> </if> |
#7
|
|||
|
|||
HTML Code:
<if condition="is_member_of($post, 6)"> <div id="post_message_$post[postid]" style="color: yellow;"> <else /> <div id="post_message_$post[postid]"> </if> |
#8
|
||||
|
||||
It was yellow because it says "color: yellow" Post exactly what that part of your template looked like after you changed it if you want help fixing it. I can't tell what you did wrong if you don't show me exactly what you did.
|
#9
|
|||
|
|||
Here is my code:
HTML Code:
<!-- message --> <if condition="is_member_of($post, 6)"> <div id="post_message_$post[postid]" style="color: #60fffd;"> <else /> <div id="post_message_$post[postid]"> </if> <!-- / message --> |
#10
|
|||
|
|||
Quote:
HTML Code:
<!-- message --> <if condition="is_member_of($post, 6)"> <div id="post_message_$post[postid]" style="color: #60fffd;"> <else /> <div id="post_message_$post[postid]"> </if> $ad_location[ad_showthread_firstpost_start] $post[message] </div> <!-- / message --> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|