FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » forum_login.php
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon5.gif  forum_login.php [message #24760] Thu, 12 May 2005 23:44 Go to next message
ryana is currently offline  ryana   Sweden
Messages: 28
Registered: April 2005
Karma: 0
Junior Member
Hey,
We already have a site setup and we will be calling the forum in an iframe which is again in a frame. Cool

Our site is a membership site where users register for free and then use the site, basically, when a user registers we want them to be able to use the forum too with the same username/pass that they already have...so we are messing around with the script forum_login.php Very Happy

Can you tell me how exactly do I use it? (if you could point me to some online documentation too that would be great) Cool

Thanks in advance,
Ryan


So the signature text comes here right?
Re: forum_login.php [message #24785 is a reply to message #24760] Sat, 14 May 2005 14:24 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Mexico
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There is not much to it, the script implements just one function, it takes a single paramter, the user's forum id. When called with a valid ID, it will log the current user into the specified forum user.

FUDforum Core Developer
Re: forum_login.php [message #24787 is a reply to message #24785] Sat, 14 May 2005 14:30 Go to previous messageGo to next message
ryana is currently offline  ryana   Sweden
Messages: 28
Registered: April 2005
Karma: 0
Junior Member
Hey,
Thanks for replying.

Tell me if I am wrong but these are the steps I will have to take:

1: when a user joins our main site I must also enter the same username and some default values into the FF database

1a. can you send me the default values that I must enter for a normal user?

2: Only then I will be able to send the username to forum_login.php

Thanks,
Ryan


So the signature text comes here right?
Re: forum_login.php [message #24789 is a reply to message #24787] Sat, 14 May 2005 14:32 Go to previous message
Ilia is currently offline  Ilia   Mexico
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Look at existing code for creating users inside include/scripts_common.inc, the create_new_user() function.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Mailing List
Next Topic: How to receive every new post of my forum by email ? (i'm administrator)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 13:23:32 GMT 2024

Total time taken to generate the page: 0.02121 seconds