• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Remove notice when clicking register

secnam

Active member
#1
hi
i am hoping someone can help. I have setup a notice to show for unregistered users. but the problem i have is when they click on /register.php the notice stays there. is there any way to show the notice to un registered users but as they click on the .register.php it removes the notice and just shows the register form?

thanks in advance
 

Jake Bunce

XenForo moderator
Staff member
#2
The page criteria for notices only does positive matching (e.g. the page is register, not is not).

You will need to edit the templates:

Admin CP -> Appearance -> Templates -> PAGE_CONTAINER

Add the red code:

Code:
			<xen:if is="{$sidebar}">
				<div class="mainContainer">
					<div class="mainContent"></xen:if>
						
						<xen:include template="ad_above_top_breadcrumb" />

						<xen:if is="!{$visitor.user_id} AND {$contentTemplate} != 'register_form'">
							<p class="importantMessage">
								GUEST MESSAGE HERE
							</p>
						</xen:if>

						<xen:hook name="page_container_breadcrumb_top">
						<div class="breadBoxTop">
							<xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
							<xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
						</div>
						</xen:hook>
That will be a hard-coded notice that only shows for guests not on the register page.