PDA

View Full Version : Usergroup based Notices - Forum/CMS


Eq4bits
03-23-2011, 05:45 AM
Is there a way to have Noctices show on the forum pages and NOT on CMS pages? My CMS is general information and available to anyone to see/read, but to participate in the forum registration, of course, is required. So in the forum I *do* need to have my notices show up when necessary. But, having them in the CMS looks very ummm tacky =S

Eq4bits
03-24-2011, 10:52 PM
Well I found the solution at vb.com but will post here in case anyone else ever searches here.
In navbar template:
FIND:
<vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'">
<form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices">
<input type="hidden" name="do" value="dismissnotice" />
<input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
<input type="hidden" name="url" value="{vb:raw return_link}" />
<ol>
{vb:raw notices}
</ol>

ADD BEFORE:<vb:if condition="THIS_SCRIPT != 'vbcms'">
ADD AFTER:
</vb:if>