The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
in vb4 it's {vb:raw post.message}. Also if's in vb 4 are different... it's <vb:if condition ="..."> and </vb:if>
|
#12
|
|||
|
|||
Quote:
I have this but doesnt seem to work Code:
<!-- message -->
<div>
<vb:if condition ="$post[usergroupid]==10">
<div style="color: #0000FF">
</vb:if>
{vb:raw post.message}
<vb:if condition ="$post[usergroupid]==10">
</div>
</vb:if>
</div>
<!-- / message -->
|
#13
|
||||
|
||||
It's working for me... get rid of all that extra / useless code, simply replace:
Code:
{vb:raw post.message} Code:
<vb:if condition ="$post[usergroupid]==10">
<span style="color: #0000FF">
</vb:if>
{vb:raw post.message}
<vb:if condition ="$post[usergroupid]==10">
</span>
</vb:if>
|
#14
|
|||
|
|||
Quote:
|
#15
|
||||
|
||||
Are you using vBulletin 4.x? If so what version exactly?
|
#16
|
|||
|
|||
Can I somehow add this thing to postbit_display_complete hook with forum ID? It's just a bit annoying to add code to every template..
Anyway can I somehow short whole code? Code:
<vb:if condition ="$post[usergroupid]==6"> <span style="color: #0000FF"> </vb:if> <vb:if condition ="$post[usergroupid]==2"> <span style="color: #CC0000"> </vb:if> {vb:raw post.message} <vb:if condition ="$post[usergroupid]==2"> </span> </vb:if> <vb:if condition ="$post[usergroupid]==6"> </span> </vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|