View Single Post
  #1  
Old 10-21-2014, 09:59 AM
 
banberry banberry is offline
 

Member
  
Join Date: May 2009
Location: West Des Moines, IA
Posts: 13
 

Default Speed Bar Modification tabs

I cannot get this to work. I am trying to conditionally show a link in the speedbar tab. However, even if a user is registered but does not have a membership applied yet, the link will still appear. I want only registered users with a membership of "Wholesale" be able to see this link. All other times it is hidden. See code I used below. Any help appreciated.

PHP Code:
{if $speed_bar}
  <
div class="tabs{if $all_languages_cnt gt 1} with_languages{/if}">
    <
ul>
{if 
$user_membership eq "Wholesale" && $login ne ""}
<
li{interline name=tabs}><a href="http://www.domain.com/2014catalog/2014catalog.pdf">Download Catalog</a></li>
{/if}
      {foreach 
from=$speed_bar item=sb name=tabs}
        <
li{interline name=tabs}><a href="{$sb.link|amp}">{$sb.title}</a></li>
      {/foreach}
    </
ul>
  </
div>
{/if} 
__________________
v4.5.5 Gold Plus/Apache/Linux/VPS
php 5.3.3

v4.4.5 Gold/Apache/Linux/VPS
php 5.3.3
Reply With Quote