Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #46  
Old 30 Apr 2012, 23:33
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
x,y, and z are the usergroupids, not usergroup names. Replace Administrator with the usergroupid of your Administrator usergroup.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #47  
Old 01 May 2012, 15:21
rodeojones's Avatar
rodeojones rodeojones is offline
 
Join Date: Feb 2012
Excellent! Thanks again Lynne, it worked perfectly.
Reply With Quote
  #48  
Old 02 Jun 2012, 18:48
xony xony is offline
 
Join Date: Mar 2005
update 4.2.0 and not found please ...
Reply With Quote
  #49  
Old 31 Oct 2012, 12:27
tambo's Avatar
tambo tambo is offline
 
Join Date: Aug 2008
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


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

Reply With Quote
  #50  
Old 31 Oct 2012, 16:38
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
The variable you would use would depend on the template you use it in. Most likely you would be wanting $bbuserinfo[username]
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #51  
Old 03 Nov 2012, 12:07
tambo's Avatar
tambo tambo is offline
 
Join Date: Aug 2008
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?
Reply With Quote
  #52  
Old 03 Nov 2012, 17:41
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Try something more like:

http://www.example.com/search.php?do=process&query={vb:raw bbuserinfo.username}
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #53  
Old 05 Nov 2012, 19:46
tambo's Avatar
tambo tambo is offline
 
Join Date: Aug 2008
Ah, Lynne.... you absolute star!

Thankyou.

<3
Reply With Quote
  #54  
Old 01 May 2013, 20:35
Blue-Inc's Avatar
Blue-Inc Blue-Inc is offline
 
Join Date: Mar 2006
Real name: Jonathan
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.
Reply With Quote
  #55  
Old 04 May 2013, 07:22
Jpolola Jpolola is offline
 
Join Date: Mar 2011
I can`f find second method (navbar template on VB 4.2.0 PL3

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

--------------- Added 04 May 2013 at 07:26 ---------------

Any Idea how to add this code

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

Reply With Quote
  #56  
Old 30 Apr 2014, 21:43
StonePilot StonePilot is offline
 
Join Date: Jan 2007
Real name: Steve
Seems people don't want to mess with updating this anymore.

Mega Menu? Nested dropdowns? Put a menu with links inside a menu?
Reply With Quote
  #57  
Old 30 Apr 2014, 22:08
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by StonePilot View Post
Seems people don't want to mess with updating this anymore.

Mega Menu? Nested dropdowns? Put a menu with links inside a menu?
This article covers one thing - adding a sub-menu downdown to the navbar. There is nothing in the description that says anything about covers those other items.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:47.

Layout Options | Width: Wide Color: