The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Restricting Notices to Home Page (Index)????
OK, here's what I want to do.
In working with Announcements and Notices, I find I like the latter feature. However, I only want it to appear on our index page, no other pages, so members don't have to constantly scroll away from it. However, I cannot find an option to allow for this. So is there a hack I can do to Notices to restrict it to an index display? I looked for this as a search, and perhaps I missed it, but I couldn't find anything of this sort. I'm sure someone could tell me how to do it with two lines of code. Anyone? Peace, Gene |
#2
|
|||
|
|||
<if condition="THIS_SCRIPT=='index'">
|
#3
|
|||
|
|||
And that goes -- where? Notices template?
|
#4
|
||||
|
||||
Find this in your navbar template
Code:
<if condition="$show['notices']"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead">$vbphrase[notices]</td> </tr> <tr> <td class="alt1">$notices</td> </tr> </table> <br /> </if> Code:
<if condition="THIS_SCRIPT=='index'"> <if condition="$show['notices']"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead">$vbphrase[notices]</td> </tr> <tr> <td class="alt1">$notices</td> </tr> </table> <br /> </if></if> |
#5
|
|||
|
|||
Never mind: I think I have it.
Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|