doublespaces

Well-Known Member
Notice the Search Media link here:
usGZF5b.png


For guests, this shouldn't appear as guests can't search the site. It results in an error on search engine stats as well. Is there a built in way to disable the link from showing if the user is not logged in or disable the menu entirely?

Also this search url also throws an 403 error but I don't see where that is on my page:

<li class="navTab xbOffCanvasExtraLink">
<a href="search/" rel="Menu" class="navLink NoPopupGadget"><i class="fa fa-search"></i> Search</a>

NVM: It is the mobile view menu. So I guess the same question for this as well, is there a built in way to display it only to logged in users or by permission? Or will I need to manually add this.
 
If i understand you, it´s not a style property.

Take a look into the template "xengallery_tab_links" of your style.
Change the code from ->

Code:
<li><a href="{xen:link search, '', 'type=xengallery_media'}">{xen:phrase xengallery_search_media}</a></li>

into ->

Code:
<xen:if is="{xen:helper ismemberof, $visitor, X,X,X,X}">
<li><a href="{xen:link search, '', 'type=xengallery_media'}">{xen:phrase xengallery_search_media}</a></li>
</xen:if>

Use the "X" for the usergroups that have permissions to see the search button.
 
It would almost seem like it would be a "bug" for the gallery itself. They may say otherwise though but wrapping a conditional around it like above would work.

Code:
<xen:if is="{$visitor.user_id}">

Would be for only logged in members.
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back