The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Code for post background not working
I wanted post backgrounds to change based on your rank so I found this.
I created a plug in with this tutorial: Code:
Hey There, This is a quick & dirty fix. Add this plugin to your postbit_display_start hook: PHP Code: if($this->post->usergroupid == 6) { $this->post['is_admin'] = true; } Find the div in your postbit template with the postrow class, and edit it. Before: HTML Code: <div class="postrow"> After: HTML Code: <div class="postrow" <vb:if condition="$post['is_admin']">style="background-color: #ddd"</vb:if>> Change the #ddd to whatever color you want. No guarantees, but that should work . -Nick, SEOvB Developer The post does not change color like it should, and instead leaves it like it were before. I've already double checked that my id is 6 and it is. Any other ideas? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|