Thanks for posting up how to do this.
|
Quote:
How about just adding a single Navbar link to my Home/Forum/Blog Navbar (no submenus)? What would be the correct coding for that? Thanks! |
Quote:
That is what I used in order to get the link on my homepage. I would also like to ask for insight as to how to set the link so that only users with permissions can see the link. |
Put a condition around it.
HTML Code:
if (is_member_of($vbulletin->userinfo, x, y, z) { |
Quote:
Code:
if (is_member_of($vbulletin->userinfo, Administrators)) { Thanks again for your help :) |
x,y, and z are the usergroupids, not usergroup names. Replace Administrator with the usergroupid of your Administrator usergroup.
|
Excellent! Thanks again Lynne, it worked perfectly.
|
update 4.2.0 and not found please ...
|
I'm wondering if anyone can advise on this?
VBulletin has special PHP variables that you can use in notices, such as {userid} and {username}, which will generate an output specific to the user. I would like to use these variables in a search string (I know this works in notices) but, obviously, it doesn't work in these dropdowns because the search string is in javascript and won't be parsed (see example code below). Is it somehow possible to get the special variable parsed server-side, then handed over to the javascript? I've seen people talk about it, but nobody's provided a solution. Thanks, tambo PHP Code:
|
The variable you would use would depend on the template you use it in. Most likely you would be wanting $bbuserinfo[username]
|
haha... I'm afraid you might need to guide me a little more than that.
Is it possible to modify the code above so that I can understand where that variable would go and how it would be passed over to the javascript / hyperlink? |
Try something more like:
http://www.example.com/search.php?do=process&query={vb:raw bbuserinfo.username} |
Ah, Lynne.... you absolute star!
Thankyou. <3 |
Where can I find the CSS for the drop down menu?
I'd like to customise the CSS to my own liking for my forum and add it to additional.css! Thanks. |
I can`f find second method (navbar template on VB 4.2.0 PL3
HTML Code:
<div id="navbar" class="navbar"> Any Idea how to add this code PHP Code:
|
Seems people don't want to mess with updating this anymore.
Mega Menu? Nested dropdowns? Put a menu with links inside a menu? |
Quote:
|
All times are GMT. The time now is 04:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|