![]() |
Forum row to indicate new content
Right, we all know that most forums have a little icon down the left side that indicates whether there are any new posts or not. Which is great, but I want something different and i've had an idea which i don't know if it will be achievable.
Basically I have my forumrow to change colour when I move the mouse over it. But what I would like instead is for the forumrow to become a different (maybe darker) colour when there are new posts to be read. I've got an example in my screenshot. Is this at all possible? http://www.gamerperfection.com/images/forumrow.png |
No ideas anyone?
|
It is a heavily customized style so I'm not 100% sure that is "FORUMHOME" AKA forum.php but assuming it is you will want to edit the template
forumhome_forumbit_level2_post If you look at that template you see that the status icon image (the image that changes depending on new posts or not) is built using the following code: Code:
{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png This means we can check the value of the variable in a template conditional and alter the code based on what the value is. In a default template the code looks like this- it may be different on your custom style, but for me it is the 2nd line of the template Code:
<div class="forumrow table"> Code:
<div class="forumrow table" <vb:if condition="$forum['statusicon'] == 'new'">style="background-color:yellow;"</vb:if>> Tested this against a default style. |
WOW awesome, it works! I love it! And the yellow is pretty cool!
Thank you so much! |
All times are GMT. The time now is 10:32 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:
|