vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=203521

bada_bing 29 Mar 2013 13:11

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 29 Mar 2013 15:02

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://www.vbulletin.org/forum/external/2013/03/12.png


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



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

where x and x is your usergroup ID for Amin and Mods

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Look below at the example


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 29 Mar 2013 19:06

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 29 Mar 2013 19:22

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


m7sen 05 Sep 2018 15:01

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


All times are GMT. The time now is 02:31.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.