PDA

View Full Version : how to disable comunity in vb4


raja811
13 May 2010, 16:30
hello

how to Disable for unregister user this part for vb4 please!!!
http://img25.imageshack.us/img25/2976/20100513164831.jpg

Note: it's not custom skin also default skin same probleme.
thanks

i am tryed this not work
<vb:if condition="is_member_of($vbulletin->userinfo, 1)"><li class="popupmenu">
<a href="javascript://" class="popupctrl" accesskey="6">{vb:rawphrase community}</a>
<ul class="popupbody popuphover">
{vb:raw template_hook.navbar_community_menu_start}
<vb:if condition="$show['quick_links_groups']">
<li><a href="group.php{vb:raw session.sessionurl_q}">{vb:rawphrase social_groups}</a></li>
</vb:if>
<vb:if condition="$show['quick_links_albums']">
<li><a href="album.php{vb:raw session.sessionurl_q}">{vb:rawphrase pictures_and_albums}</a></li>
</vb:if>
<vb:if condition="$bbuserinfo['userid']">
<li><a href="profile.php?{vb:raw session.sessionurl}do=buddylist"><vb:if condition="$show['friends_and_contacts']">{vb:rawphrase contacts_and_friends}<vb:else />{vb:rawphrase contacts}</vb:if></a></li>
</vb:if>
<vb:if condition="$show['memberslist']">
<li><a href="memberlist.php{vb:raw session.sessionurl_q}">{vb:rawphrase members_list}</a></li>
</vb:if>
{vb:raw template_hook.navbar_community_menu_end}
</ul>
</li>
{vb:raw template_hook.navbar_after_community}</vb:if>

Lynne
13 May 2010, 16:38
The code your wrote ONLY shows it to Unregistered Users. You need to put a ! in front of the condition to say NOT. Although, a better way would be to just use $show['member']
<vb:if condition="$show['member']">

raja811
13 May 2010, 16:55
thanks lynne.