Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Passing username or id from smf to another page

Aloittaja stuartf, helmikuu 23, 2006, 01:51:34 IP

« edellinen - seuraava »

stuartf

Hi
I'm trying to link SMF to a guestmap and want to pass the user id or username from SMF to the page without having to append it to the end of a URL.

I can extract the $context variable and post what I want but I'd rather a find a better method.

Can't find anything in SSI to do it - I've also tried using session variables but doesn't seem to work.

Any simple pointers please?

sm2k


Dannii

The $user_info and $context arrays that you get with SSI.php are the best way. What do you not like about them?
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

stuartf

#3
Thanks

I've managed to do it by including SSI.php now and reading the variable from there .

I really like SMF an am very appreciative of the work that goes into it what I'm not so keen on is loading 50K+ to reload one variable  ;D

If I've got this wrong I'm sure you'll tell me!

sm2k

If your web host uses a php script cache then the overhead should be minimal.

Advertisement: