The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
lost... sorry double post!
Ok,
I have a page with user information, stocks.php?u=3 In the postbit it works fine if i use this Code: <br><div class="smallfont"><a class="smallfont" href="stockts.php?$session[sessionurl]u=$post[userid]">Portfolio</a></div> So the above works great in postbit But, when I put the same in MEMBERSINFO it doesnt work, all I get is this stocks.php?u= Without the USER ID How can I fix this? |
#2
|
||||
|
||||
$post[userid] is a variable that only exists when you're dealing with posts in threads. Hense the "post" part of the variable name. Try using the $userinfo[userid] for the memberinfo template instead.
Your code should be: Code:
<br><div class="smallfont"><a class="smallfont" href="stockts.php?$session[sessionurl]u=$userinfo[userid]">Portfolio</a></div> |
#3
|
|||
|
|||
that finally did the trick, thank you soo much!
|
#4
|
|||
|
|||
$userinfo will use the info for the user that is visting the page, not for the profile visited.
|
#5
|
||||
|
||||
I think you're thinking about $bbuserinfo, not $userinfo.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|