News:

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

Main Menu

SSI problem part 2 the sequel

Started by webm0nster, December 10, 2004, 12:30:26 PM

Previous topic - Next topic

webm0nster

Ok on the home page of the site I am developing I am trying to require both SSI.php and smf_api.php because I am using the very cool functions in SSI.php for content on this page but I need to use smf_authenticateUser() to make sure anybody who tries to access this page directly gets booted to the site login form. (Its a member only type site) I am sure this is doable somehow but if I call SSI.php first it loads and all its functions are available but smf_userInfo() no longer returns any data. If I load smf_api.php first all the data returned by smf_user_info() is available but the script fails upon calling any function from SSI.php. Any thoughts?

Thank you!

"Imagination is more important than knowledge."
 - Albert Einstien

Grudge

If you are including SSI.php you can just use $user_info['is_guest'] to see whether the user is a guest or not.
I'm only a half geek really...

webm0nster

Thank you! :)

You guys have been great! I am going to make the organization I building this site for purchase a charter membership. Thanks again!

"Imagination is more important than knowledge."
 - Albert Einstien

Advertisement: