The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Subforum Icons
Hello,
I'd like to remove all subforum status icons and replace it with • <a href="{vb:link forum, {vb:raw row}}">{vb:raw row.title}</a> if there are not new posts and with <b>→ <a href="{vb:link forum, {vb:raw row}}">{vb:raw row.title}</a></b> if there are new posts. Any hints regarding how can I do this? Thank you. |
#2
|
||||
|
||||
So, not even a single idea?
|
#3
|
||||
|
||||
Well, I can tell you that you'll need to modify the forumhome_subforums template and that the variable you will want to look at is $row['statusicon'] to determine if it is going to be bold or not. So, play around with that and post your exact template change if you need more help.
|
#4
|
||||
|
||||
This is my forumhome_subforums template:
<style> .subforums ol.subforumlist { float: left; width: 100%; margin: 0; padding: 0; } .subforumlist li.subforum { float: left; width: 33%; margin: 0; padding: 0; clear:none;} </style> <div class="subforums"> <br /> <h4 class="subforumlistlabel">{vb:rawphrase subforums}:</h4> <ol class="subforumlist commalist"> <vb:each from="subforums" value="row"> <li class="subforum"> <vb:if condition="$row['canpost']"> <vb:if condition!="CONDITION-TO-CHECK-NEW-POSTS?"> • <a href="{vb:link forum, {vb:raw row}}">{vb:raw row.title}</a></vb:if> <vb:else /> <b>→ <a href="{vb:link forum, {vb:raw row}}">{vb:raw row.title}</a></b> </vb:if> </li> </vb:each> </ol> </div> I need the condition... |
#5
|
||||
|
||||
Any hints regarding how can I check if a subforum has new posts?
|
#6
|
||||
|
||||
I already told you to look at the value of $row['statusicon'] for the forum. Print it out in the template and you will see what I mean.
{vb:raw row.statusicon} |
#7
|
||||
|
||||
Where should I look for it and how should I use it?
I don't want to use the default forum status icons for subforums, I'd like to display a dot and a bold name of the subforum if it has new posts.. Sorry for being a pain lol.. |
#8
|
||||
|
||||
Like...
<vb:if condition!="$row['statusicon'] == 'something_here'"> but, in order to find the 'something_here', you need to print it out and see what the value is first. So, add this line to your template and see what value gets spit out for when there are new posts and when there are not so that you know how to finish that condition. {vb:raw row.statusicon} |
#9
|
||||
|
||||
Where's the thanks button Lynne?
Thank you |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|