How Do I find the user that is clicking a page/link ? [message #34323] |
Fri, 20 October 2006 14:16 |
DaveQB
Messages: 109 Registered: January 2006 Location: Sydney
Karma: 0
|
Senior Member |
|
|
Hard to explain in the topic.
Basically I need to know what user is accessing a page/hyperlink.
I am trying to integrate Gallery2 into FudForum, for authentication and thus having one user base to work from and maintain.
To do this you have to create an "Entry Point" to Gallery which is basically a php file that allows an already authenticated user to be acknowledged by Gallery as that user and auto logged in as such so the user doesn't have to login again.
But to do this I need to pass to Gallery [in the php code] what user is trying to access the Gallery.
I can't seem to see a way to do this in the API. Closes thing is the function to return who is online, but that's not specific enough for whats needed here.
Anyone got any ideas ?
[Updated on: Fri, 20 October 2006 23:54] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: How Do I find the user that is clicking a page/link ? [message #34375 is a reply to message #34369] |
Tue, 24 October 2006 14:38 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Well, you use FUDAPI to fetch the user credentials based on the user's sessions. In fact you can do so via a simple query select * from fud26_ses where ses_id=[session_id]; without even using fudapi. To fetch the user details simply add INNER JOIN users u ON u.id=fud26_ses.user_id
FUDforum Core Developer
|
|
|