PDA

View Full Version : pass on user info variable


externalaw.com
03-25-2009, 06:35 AM
Ok,

I have a stock system that I want to use on my forum,
and each user has its own portfolio,

I want to make it possible to see the other members their stocks by making the link to it, but I am not sure how to pass on this info

for example to get to my stock would automatically

www.url.com/stocks.php?ID=1

Now how do I make the link to get that users ID?

RLShare
03-25-2009, 06:38 AM
Where are you trying to show this information?

Dismounted
03-25-2009, 06:50 AM
In templates, use $bbuserinfo[userid].

externalaw.com
03-25-2009, 08:32 AM
great! that worked!

externalaw.com
03-26-2009, 08:58 AM
Ok,

I have a page with user information, stocks.php?u=3

In the postbit it works fine if i use this

<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?

--------------- Added 1238068942 at 1238068942 ---------------

please...
Anyone?

Lynne
03-26-2009, 02:21 PM
In MEMBERINFO, use $userinfo instead of $post