how to hide "Breadcrumbs" for visitors?

erich37

Well-known member
Hello,

I am running a Private Forum Community and I would like to hide the "Breadcrumbs" (at the Forum-Homepage) for visitors. Only logged-in members should see the "Breadcrums-Navigation".

Is this possible somehow ?


Appreciate your help!
Many thanks!
 
I've not tested this and can only guess this is correct (please report back if it is)

PHP:
<xen:navigation>
    <xen:breadcrumb source="$nodeBreadCrumbs" />
</xen:navigation>

Located inside forum_view

Wrap it around like so
PHP:
<xen:if is="{$visitor.user_id}">
<xen:navigation>
    <xen:breadcrumb source="$nodeBreadCrumbs" />
</xen:navigation>
</xen:if>

edit: fixed code
 
Hi Adam,

I tried this, but unfortunately it does not hide the "Breadcrumbs" at all.......

Is there any other idea of how to do this, please?

Many thanks!
 
Admin CP -> Appearance -> Templates -> PAGE_CONTAINER

Add the red code:

Rich (BB code):
						<xen:hook name="page_container_breadcrumb_top">
						<xen:if is="{$visitor.user_id} OR {$contentTemplate} != 'forum_list'">
						<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:if>
						</xen:hook>

You can add the same condition around the bottom breadbox if you want to hide those breadcrumbs as well:

Code:
			<xen:hook name="page_container_breadcrumb_bottom">			
			<div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
			</xen:hook>
 
You can add the same condition around the bottom breadbox if you want to hide those breadcrumbs as well:

Code:
<xen:hook name="page_container_breadcrumb_bottom">
<div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
</xen:hook>

Hello, I have a question to this! How can I breadcrumb_bottom disappear on every page?
 
this is the correct way of hiding all breadcrumbs from guests (this also hides the breadcrumbs at the Register-page):

Admin CP -> Appearance -> Templates -> PAGE_CONTAINER


Code:
                        <xen:hook name="page_container_breadcrumb_top">
<xen:if is="{$visitor.user_id}">
                        <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:if>
 
Top Bottom