News:

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

Main Menu

How can I use the forum's login system in my site?

Started by marconi, March 30, 2006, 08:03:48 AM

Previous topic - Next topic

marconi

Hello

I guess the easiest way of doing this would be querying the same table (smf_members) and creating the same session variebles (to know who has already logged in) and cookies.

Is this correct or there are other ways? If it is correct, which variables should I create?

(I'm not using any CMS)

Thanks!

Cucumber

You can just include the SSI.php file in the beginning of your index file and then use
<?php
ssi_login
();
ssi_logout();
?>

at the spot you'd like the login/logout form to go. It will produce a form automatically for you.

keith021773

does your page have to be a .php page or can it be a .html page?

H

-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

rihkama

Since my question is closely related to this one I figured I'd ask here instead of making seperate topic:

Using SSI.php (or other feature of SMF), is it possible to retrieve the group of the user and use that to check if user has permission to access page or not? Basically creating a Members Only area to the site using SMF's authentication system.

I tried to use search but unfortunately I couldn't find anything relevant.

H

This is possible, and quite easy, with SSI.

This has been posted lots before, look in the coding forum ;)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

kevin_smithers

Quote from: huwnet on March 31, 2006, 08:36:03 AM
This has been posted lots before, look in the coding forum ;)

I took your advice and looked their and I couldn;t see anything  :'( I have been reading and searching for hours any chance you could point us a little closer?

The search facility in the site is down probably due to teh server load with the amount of hits you are getting.  Its been quite good looking for this information due to the amount of other info I have found on the way just a shame I havn't found what I am looking for yet :-)

Cheers

Kev

Advertisement: