Announcement

Collapse
No announcement yet.

How can i remove or hide this

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • m4ster
    replied
    DOH!!!! error on my part, i thought you had to add the groups to exclude from view, its not but other way round. So i removed user group 9 from the above and its now working.

    Thank you for the replies and speedy fix to this.

    Thank you

    Leave a comment:


  • Trevor Hannant
    replied
    Are you checking when logged in as a user that isn't in one of those usergroups?

    Leave a comment:


  • m4ster
    replied
    Below is what i done as instructed (i hope) but still showing

    Code:
        <vb:if condition="$show['threadslist']">
    <vb:if condition="is_member_of($bbuserinfo, 1,2,3,4,9,6)">
        <div id="above_threadlist_controls" class="above_threadlist_controls toolsmenu">
            <div>
            <ul class="popupgroup forumdisplaypopups" id="forumdisplaypopups">
                <li class="popupmenu nohovermenu" id="forumtools">
                    <h6><a href="javascript://" class="popupctrl" rel="nofollow">{vb:rawphrase forum_tools}</a></h6>
                    <ul class="popupbody popuphover">
                            <li>
                                <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;f={vb:raw foruminfo.forumid}&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" rel="nofollow" onclick="return mark_forum_and_threads_read({vb:raw foruminfo.forumid});">
                                    {vb:rawphrase mark_this_forum_read}
                                </a>
                            </li>
                            <vb:if condition="$show['member'] AND $foruminfo['allowposting']">
                            <li>
                                <vb:if condition="$show['subscribed_to_forum']">
                                    <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase unsubscribe_from_this_forum}</a>
                                <vb:else />
                                    <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase subscribe_to_this_forum}&hellip;</a>
                                </vb:if>
                            </li>
                        </vb:if>
                        <li><a href="<vb:if condition="$foruminfo['parentid'] == -1">{vb:link forumhome}<vb:else />{vb:link forum, {vb:raw foruminfo}, null, 'parentid', 'parenttitle'}</vb:if>" rel="nofollow">{vb:rawphrase view_parent_forum}</a></li>
                    </ul>
                </li>
                            <vb:if condition="$show['adminoptions']">
                <li class="popupmenu nohovermenu" id="admintools">
                    <h6><a href="javascript://" class="popupctrl">{vb:rawphrase administrative}</a></h6>
                    <ul class="popupbody popuphover">
                        <vb:if condition="$show['post_queue']"><li><a href="moderator.php?{vb:raw session.sessionurl}do=modposts&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase view_posts_queue}</a></li></vb:if>
                        <vb:if condition="$show['attachment_queue']"><li><a href="moderator.php?{vb:raw session.sessionurl}do=modattach&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase view_attachment_queue}</a></li></vb:if>
                        <vb:if condition="$show['mass_move']"><li><a href="moderator.php?{vb:raw session.sessionurl}do=move&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase massmove_threads}&hellip;</a></li></vb:if>
                        <vb:if condition="$show['mass_prune']"><li><a href="moderator.php?{vb:raw session.sessionurl}do=prune&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase massprune_threads}&hellip;</a></li></vb:if>
                        <vb:if condition="$show['addmoderator']">
                        <li><a href="moderator.php?{vb:raw session.sessionurl}do=addmoderator&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase add_moderator}&hellip;</a></li>
                        </vb:if>
                        <vb:if condition="$show['post_new_announcement']">
                        <li><a href="moderator.php?{vb:raw session.sessionurl}do=postannouncement&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase post_new_announcement}&hellip;</a></li>
                        </vb:if>
                    </ul>
                </li>
                            </vb:if>
                <li class="popupmenu nohovermenu forumsearch menusearch" id="forumsearch">
                    <h6><a href="javascript://" class="popupctrl">{vb:rawphrase search_this_forum}</a></h6>
                    <form action="search.php?do=process" method="get">
                    <ul class="popupbody popuphover">
                        <li>
                            <input type="text" class="searchbox" name="q" value="{vb:rawphrase search_dots}" />
                            <input type="submit" class="button" value="{vb:rawphrase search}" />
                        </li>
                        <li class="formsubmit" id="popupsearch">
                            <div class="submitoptions">
                                <label><input type="radio" name="showposts" value="0" checked="checked" /> {vb:rawphrase show_threads}</label>
                                <label><input type="radio" name="showposts" value="1" /> {vb:rawphrase show_posts}</label>
                            </div>
                            <div class="advancedsearchlink"><a href="search.php?{vb:raw session.sessionurl}search_type=1&amp;contenttype=vBForum_Post&amp;forumchoice[]={vb:raw forumid}" rel="nofollow">{vb:rawphrase advanced_search}</a></div>
    
                        </li>
                    </ul>
                    <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
                    <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                    <input type="hidden" name="do" value="process" />
                    <input type="hidden" name="contenttype" value="vBForum_Post" />
                    <input type="hidden" name="forumchoice[]" value="{vb:raw forumid}" />
                    <input type="hidden" name="childforums" value="1" />
                    <input type="hidden" name="exactname" value="1" />
                    </form>
                </li>
                {vb:raw threadadmin_imod_menu_thread}
    
    
    
            </ul>
                <vb:if condition="$show['inlinemod']">
                <script type="text/javascript">
                <!--
                    vB_XHTML_Ready.subscribe(function() { register_inlinemod("thread_inlinemod_form", "li", "threadbit", "thread"); });
                //-->
                </script>
                </vb:if>
            </div>
        </div>
        </vb:if>
    
    </vb:if>
    <vb:if condition="$forumbits">

    Leave a comment:


  • Trevor Hannant
    replied
    No, end it before '<vb:if condition="$forumbits">':

    Code:
    <vb:if condition="is_member_of($bbuserinfo, 1,2,3)">
    <div id="above_threadlist_controls" class="above_threadlist_controls toolsmenu">
    
    Everything in here hidden from usergroups indicated above
    
    </vb:if>
    <vb:if condition="$forumbits">

    Leave a comment:


  • m4ster
    replied
    Thank you for the reply so if i am right it should look like this

    <vb:if condition="is_member_of($bbuserinfo, 1,2,3)">
    <div id="above_threadlist_controls" class="above_threadlist_controls toolsmenu">

    Everything in here hidden from usergroups indicated above

    <vb:if condition="$forumbits">
    </vb:if>

    Leave a comment:


  • AliMadkour
    replied
    Edit template FORUMDISPLAY

    add if statement before
    Code:
    <div id="above_threadlist_controls" class="above_threadlist_controls toolsmenu">
    and end it before
    Code:
    <vb:if condition="$forumbits">
    you can use any template conditionals like
    Code:
    <vb:if condition="is_member_of($bbuserinfo, 1,2,3)">Show this to user group 1, 2, and 3</vb:if>
    for more vBulletin mods at vBulletin.org forum

    Leave a comment:


  • m4ster
    started a topic [Forum] How can i remove or hide this

    How can i remove or hide this

    See attached image, i want to remove or hide these 2 options in red from that bar or what is the hide from a usergroup conditional and where do i place it to hide those.

    Keep it simple by no means a pro coder but great at following good instructions

    thank you in advance
    Attached Files

Related Topics

Collapse

Working...
X