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

Discussion in 'Troubleshooting and Problems' started by secnam, Dec 11, 2011.

  1. secnam

    secnam 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
    erich37 likes this.
  2. Jake Bunce

    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:

    			<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.
    erich37 likes this.
  3. secnam

    secnam Active Member

    excellent, thank you
  4. jauburn

    jauburn Well-Known Member

    Would love to see the notices criteria expand to include "is not" pages.
    SuchMuch and thedude like this.
  5. SuchMuch

    SuchMuch Active Member

    Really needed this

Share This Page