The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
This would be the correct link to put into a template:
HTML Code:
<li><a href="http://xxxxxxxxxx.com/showcat.php?cat=999&user={vb:raw bbuserinfo.userid}">My Stuff</a></li> |
#3
|
|||
|
|||
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'] |
#4
|
||||
|
||||
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.
|
#5
|
|||
|
|||
I added the ===== to show what I am struggling with.
PHP Code:
|
#6
|
||||
|
||||
HTML Code:
<li><a href="http://creek.com/classifieds/showcat.php?cat=500&ppuser='.$vbulletin->userinfo['userid'].'">My Ads</a></li> |
#7
|
|||
|
|||
Sorry...
Thought is was an easy correction and I worry about hacks :-) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|