Protect a non Fud page [message #39392] |
Fri, 19 October 2007 19:38 |
dfgngirl
Messages: 87 Registered: December 2005
Karma: 0
|
Member |
|
|
Hi,
I'd like to use a chat room solution like this one, but I'd like to restrict it to only registered Fud members. Is there a quick a dirty way to embed a line of code that will check to see if the user is a registered member of the forum, and if they aren't have them log in and after logging in, go back to that page?
Thanks!
|
|
|
Re: Protect a non Fud page [message #39397 is a reply to message #39392] |
Sun, 21 October 2007 15:49 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
For a really dirty hack simply check for presence of FUDforum cookie and check it against the fud26_ses table in DB to see if the user_id of a matching record (if there is one) is less then 1 billion.
FUDforum Core Developer
|
|
|
|
Re: Protect a non Fud page [message #39469 is a reply to message #39392] |
Thu, 25 October 2007 17:21 |
dfgngirl
Messages: 87 Registered: December 2005
Karma: 0
|
Member |
|
|
Hey I just thought, is there a way to embed a non fud php script inside a fud forum thread? That would be the easiest way to achieve what I'm looking for.
|
|
|