vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - UKBL ~ Quality Drop Down Menu System (https://vborg.vbsupport.ru/showthread.php?t=203521)

bada_bing 03-29-2013 01:11 PM

1 Attachment(s)
I would like to replace my current navbar menu with this mod and need some guidance on what code to replace and where to inject the code for this menu. I have attached an image showing you my current navbar menu that I would like to replace.

bada_bing 03-29-2013 03:02 PM

Quote:

Originally Posted by UKBusinessLive (Post 1752634)
Hi PeterXP.

Your menu's look brilliant, but i'm suprised to see that you have a menu link to ModCP and AdminCP on view to guests and non registered :eek: if you leave them on show people will try and guess.

https://vborg.vbsupport.ru/external/2013/03/12.png


This can't be secure so you'll need to add a conditional around that menu link like this


Code:

<if condition="is_member_of($bbuserinfo, x, x, )">
where x and x is your usergroup ID for Amin and Mods

Don't forget to add the end statement at the end

Code:

</if>

Look below at the example

Code:

<li><span class="qmdivider qmdividery" ></span></li>
        <li><a class="qmparent" href="javascript:void(0)">PRIVATE MESSAGES</a>

                <ul style="width:165px;">
<if condition="is_member_of($bbuserinfo, x, x, )">
                <li><a href="http://www.ukbusinesslive.co.uk/forum/Admincp.php" title="List Messages">AdminCP</a></li>
                <li><a href="http://www.ukbusinesslive.co.uk/forum/Modcp.php?do=newpm" title="Send New Message">ModCP</a></li>
</if>
                <li><a href="http://www.ukbusinesslive.co.uk/forum/private.php?do=trackpm" title="Track Messages">Track Messages</a></li>
                <li><a href="http://www.ukbusinesslive.co.uk/forum/private.php?do=editfolders" title="Edit Folders">Edit Folders</a></li>
                </ul></li>

Once again a smashing improvement, Well done

Thanks for the tips I have added your suggestions and works great, I however wanted to completely hide the Control Panel from showing up in the menu unless you are logged in with a specific user group, sorta what you explained for the link themselves but this time A step higher. Can you explain how to do this?

Also does anyone know how to add the Logout feature in the menu?

bada_bing 03-29-2013 07:06 PM

Quote:

Originally Posted by Sador (Post 1895893)
I have no idea whether this works or not, but the standard vbulletin logout code seems to be this:

Code:

                <if condition="$show['member']">
                        <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
                </if>

Maybe if you were to add this?

(Again, no idea if it works, save before trying, you might accidentally destroy your forum or even the whole world with this ;) )

This does not work, or if so I placed it incorrectly in my navbar template. When I add it and I try and login my site it right after the login process it goes to a white page with an error 500 when I remove this code services are restored.

Anyone know how to add the logout to the menu ?

bada_bing 03-29-2013 07:22 PM

Quote:

Originally Posted by crazymilk (Post 1895543)
This works a treat for loging out But what about once you?ve log out it chances to loging how what that be done?

And thanks ArnyVee for the log out code

Where and how do I add this to the menu code when I add this below and I acutally logout it screws us my tempate format and the normal vb "not a member yet" message no loger displays on the bottom of my navbar but rather vertically and messing up the template

HTML Code:

<if condition="$show['member']">
<li><span class="qmdivider qmdividery" ></span></li>
                <li><a class="qmparent" href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]">LOG OUT</a></if>


m7sen 09-05-2018 01:01 PM

I want to replace navbar to this
but is it responsive ?


All times are GMT. The time now is 09:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01391 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete