Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 Nov 2009, 23:59
cory_booth cory_booth is offline
 
Join Date: Jul 2006
Plugin Links and varibles

I am learning the new link format by using plugins to add tabs to the navbar.
I go that working.

The next problem I have though is some of my 3.8 links used userid varibles as part of the url.

i.e.
<li><a href="http://xxxxxxxxxx.com/showcat.php?cat=999&user={vb:raw (or var) bbuserinfo.userid}">My Stuff</a></li>

I have tried everything from "' to '" to ". to '". to get this working and can't seem to figure it out.

Any help?
Reply With Quote
  #2  
Old 16 Nov 2009, 00:25
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
This would be the correct link to put into a template:

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

If it's in a plugin, you may need to just use $vbulletin->userinfo['userid'] as before. Hard to tell from what you've written.
__________________
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
  #3  
Old 16 Nov 2009, 00:34
cory_booth cory_booth is offline
 
Join Date: Jul 2006
Yes this is a plugin.

I get Parse error: syntax error, unexpected T_STRING in /home1/gggggggggggg/public_html/yyyyyy/includes/class_bootstrap.php(685) : eval()'d code on line 85

If I copy paste
$vbulletin->userinfo['userid']
Reply With Quote
  #4  
Old 16 Nov 2009, 00:36
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
That tells me absolutely nothing. What does the whole plugin look like? You could (and do) have a syntax error and I can't see it if you don't post the code.
__________________
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
  #5  
Old 16 Nov 2009, 00:39
cory_booth cory_booth is offline
 
Join Date: Jul 2006
I added the ===== to show what I am struggling with.



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

Reply With Quote
  #6  
Old 16 Nov 2009, 00:53
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne

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

(You really should have posted this in the article and I would have known right away exactly where you were talking about and what you wanted to modify.)
__________________
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
  #7  
Old 16 Nov 2009, 00:56
cory_booth cory_booth is offline
 
Join Date: Jul 2006
Sorry...

Thought is was an easy correction and I worry about hacks :-)
Reply With Quote
Reply



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

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 10:11.

Layout Options | Width: Wide Color: