PDA

View Full Version : Restricting Notices to Home Page (Index)????


Gene Steinberg
07-14-2008, 10:47 PM
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

TheInsaneManiac
07-15-2008, 12:26 AM
<if condition="THIS_SCRIPT=='index'">

Gene Steinberg
07-15-2008, 12:37 AM
And that goes -- where? Notices template?

veenuisthebest
07-15-2008, 12:42 AM
Find this in your navbar template

<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>

And replace with this:-

<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>

Gene Steinberg
07-15-2008, 12:48 AM
Never mind: I think I have it.

Thanks.

:D