PDA

View Full Version : lost... sorry double post!


externalaw.com
03-26-2009, 11:32 AM
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?

TigerC10
03-26-2009, 12:18 PM
$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:

<br><div class="smallfont"><a class="smallfont" href="stockts.php?$session[sessionurl]u=$userinfo[userid]">Portfolio</a></div>


Also, use the bbcode tags when you share code with people in the future ;)

externalaw.com
03-26-2009, 02:02 PM
that finally did the trick, thank you soo much!

Marco van Herwaarden
03-26-2009, 02:30 PM
$userinfo will use the info for the user that is visting the page, not for the profile visited.

TigerC10
03-26-2009, 04:07 PM
$userinfo will use the info for the user that is visting the page, not for the profile visited.

I think you're thinking about $bbuserinfo, not $userinfo. ;)