Integrating SMF registration info with rest of site

Started by 1ondon, February 28, 2008, 09:09:35 AM

Previous topic - Next topic

1ondon

Hi folks.

I have a website with SMF forum.
My website is a member site, users having to register for certain viewing (page access) priviledges. Is there a tutorial on how to integrate the registration and page access rights with the smf  (registration) database?
Basically, I want to avoid members having to register twice and/or having them register with different details.

Thanks for any help.

Lon

greyknight17

Hi Lon, take a look at SSI. Search for ssi_login in the Basics area...

1ondon

Thanks for your suggestion. It looks a little tricky but I'll report back on how I get on.

Lon

Sarge


    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

spottedhog

Try something like this:

require_once('pathto/SSI.php');
global $context;

if($context['user']['is_logged])
{

// page contents here

} else {
echo 'Only logged in registered members can see this page.';
}


Replace pathto with the actual path to your SSI.php file.

metallica48423

i've moved this to SMF coding discussion -- but please let us know how it goes.

This board should also contain some information on SSI and the like.

Best of luck :)
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Advertisement: