Advertisement:

Author Topic: Integrating SMF registration info with rest of site  (Read 2054 times)

Offline 1ondon

  • Semi-Newbie
  • *
  • Posts: 46
Integrating SMF registration info with rest of site
« on: February 28, 2008, 09:09:35 AM »
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

Offline greyknight17

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,890
  • Gender: Male
    • Kevin's Resource Center
Re: Integrating SMF registration info with rest of site
« Reply #1 on: February 28, 2008, 12:40:55 PM »
Hi Lon, take a look at SSI. Search for ssi_login in the Basics area...

Offline 1ondon

  • Semi-Newbie
  • *
  • Posts: 46
Re: Integrating SMF registration info with rest of site
« Reply #2 on: February 29, 2008, 07:53:04 AM »
Thanks for your suggestion. It looks a little tricky but I'll report back on how I get on.

Lon

Offline Sarge

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,209
  • Gender: Male
    • Zëri YT!
Re: Integrating SMF registration info with rest of site
« Reply #3 on: March 01, 2008, 07:00:21 AM »
Let us know how it goes, when you can. :)
    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

Offline spottedhog

  • Sr. Member
  • ****
  • Posts: 782
  • Gender: Male
Re: Integrating SMF registration info with rest of site
« Reply #4 on: March 01, 2008, 08:04:37 AM »
Try something like this:

Code: [Select]
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.

Offline metallica48423

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,842
  • Gender: Male
  • Professional Multislacker!
    • Zentendo
Re: Integrating SMF registration info with rest of site
« Reply #5 on: March 03, 2008, 01:58:43 AM »
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

Quote
Microsoft 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