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
Hi Lon, take a look at SSI (http://www.simplemachines.org/community/index.php?topic=14906.0). Search for ssi_login in the Basics area...
Thanks for your suggestion. It looks a little tricky but I'll report back on how I get on.
Lon
Let us know how it goes, when you can. :)
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.
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 :)