![]() |
Help changing post background of currently logged in user
In vB 4.2.0:
Can anyone tell me how I can change the background of any posts made by the currently logged in user? I think I need to do it in postbit.css, as I can get the desired outcome there... but the vb:if statement I'm using isn't working. I'm sure it's something trivial that I don't know about. I've been trying various conditionals in the: .postbitlegacy .postbody, .eventbit .eventdetails .eventbody |
And what is the if statement you have been trying to use?
|
Quote:
Code:
<vb:if condition="$threadinfo['postuserid'] == $bbuserinfo['userid']">stuff here</vb:if> Code:
<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid']">stuff here</vb:if> |
Those aren't variables available in the .css templates. You'll need to do something in the postbit template to give the <div> another class if the post userid is the same as the viewer userid ($post['userid'] == $bbuserinfo['userid']) and then you can add some CSS to the additional.css template to set that class background to a certain color.
|
Quote:
--------------- Added [DATE]1372223285[/DATE] at [TIME]1372223285[/TIME] --------------- Okay so I tried adding a div class to postbit_legacy Code:
<vb:if condition="$post['userid'] == $bbuserinfo['userid']"><div class="postme"></vb:if> Code:
<vb:if condition="!$post['userid'] == $bbuserinfo['userid']"> Result was double posts in every single thread! Pretty funny, but not what I was aiming for. |
To change the background, simply edit the postbit_background style variable.
|
Quote:
|
All times are GMT. The time now is 11:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|