Quick Authentication

Posted by Brian Moon 
Re: Quick Authentication
December 04, 2006 11:33AM
I think this has been stated once, but i'm not quite sure.

Should quick_auth-5.1.php read the custome user fields? if so, they should be in the $USER array correct?

Shiek, I tried using your script for custome user fields but got an empty $USER array. I set my directory location and everything. any tips? All I can figure is that I set up the user field wrong.. but it is listed in the admin page and users are able to set the field.
Re: Quick Authentication
December 04, 2006 05:28PM
here is another fix for that issue.

Brian - Personal Blog
Attachments:
open | download - quick_auth-5.1.php (2.1 KB)
Re: Quick Authentication
December 04, 2006 07:37PM
Worked like a charm. thanks!
pat
Re: Quick Authentication
January 18, 2007 11:07AM
Hi Brian,

I get this Warning when using the 5.0 Version:

Warning: Invalid argument supplied for foreach() in foo/foo.php on line 34

for line 34 being:

foreach($USER["user_data"] as $key=>$data){

... anything to worry about ?

EDIT:

Nevermind, I overlooked this: [www.phorum.org]

Maybe the link for v 5.0 in the first post should be changed to point to that updated version ?


thanx
pat



Edited 1 time(s). Last edit at 01/18/2007 11:13AM by pat.
Re: Quick Authentication
February 13, 2007 05:51AM
I have the same problem as Mohammed
I'd like the user to be taken back to the page from where he comes from after login. I know this works within the forum like a charm by having the numbers of the forum and topics in the login link like: login?44,104 would take you to forum 44 and thread 104 or something like this.

Is there a way to do this with pages outside the forum? I tried simply adding the link after login.php - login.php?link.php but that doesn't work. any other way to get my use back to the page they come from??

Thanks a lot for the help and awesome little script btw, works perfect on my site except for that little problem I just posted.

Tino

Discover the Divine Truth | [www.discoverthedivinetruth.com]
Re: Quick Authentication
February 13, 2007 05:59AM
if anyones already done this, please post the modifications, otherwise, I'll work on it and post when I have something.

I'd like to see a "remember me" checkbox (default checked), so that, if unchecked, it doesn't remember people... this would be helpful for people using shared systems,etc...
Re: Quick Authentication
February 14, 2007 10:02AM
Brian, thank you so much for providing this code - it's made my life a lot easier. I'm just having (today) one tiny problem.

I've chucked a bit of code onto my non-Phorum pages that shows the username when the user is logged in - nice and simple to pull in $USER['username']. But it doesn't work on the Phorum pages... I have my Phorum wrapped in the same div as the rest of the site pages and your code is included and apparently working but $USER appears empty (no data on 'print'). The same cookie is set on both site and Phorum pages.

Any ideas why this is happening only on forum pages - I'm guessing that the variables are in conflict or something but Phorum seems to work OK?

Later Ok with some judicious poking I've determined that the script when run on the Phorum pages doesn't think the cookie is set, so doesn't run. This is very odd as manually deleting the cookie will cause an expected 'log out' and Firefox shows it as being set.

I think I'm more confused now than before.

Jon



Edited 1 time(s). Last edit at 02/14/2007 10:40AM by Cobnut.
Re: Quick Authentication
February 14, 2007 12:25PM
Quote
Cobnut
Later Ok with some judicious poking I've determined that the script when run on the Phorum pages doesn't think the cookie is set, so doesn't run. This is very odd as manually deleting the cookie will cause an expected 'log out' and Firefox shows it as being set.

Which version are you using? I think the 5.1 version handles this situation, but the 5.0 version does not.

Brian - Personal Blog
Re: Quick Authentication
February 15, 2007 03:33AM
5.1.19, I only downloaded it on Tuesday.

Cheers,

Jon
Re: Quick Authentication
March 01, 2007 05:16AM
Anyone got any ideas on this? At the moment I'm simply leaving this element of my pages out for the forum and while that's OK I'm bound to get comments on it (and it niggles me to leave things unsolved, pedantic so and so that I am).

Jon
Sorry, only registered users may post in this forum.

Click here to login