Remove notice when clicking register


Active member
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
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:

Rich (BB 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">

						<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>
That will be a hard-coded notice that only shows for guests not on the register page.