|
Re: Using fudapi.inc.php and forum_login.php [message #30456 is a reply to message #30455] |
Sun, 26 February 2006 16:24 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Yes, you could do that, you'd have it authenticate the user and pass the forum user_id to the gallery which would then associate it with a person's gallery.
FUDforum Core Developer
|
|
|
Re: Using fudapi.inc.php and forum_login.php [message #30458 is a reply to message #30456] |
Sun, 26 February 2006 19:11 |
DaveQB
Messages: 109 Registered: January 2006 Location: Sydney
Karma: 0
|
Senior Member |
|
|
Ilia wrote on Mon, 27 February 2006 03:24 | .....and pass the forum user_id to the gallery which would then associate it with a person's gallery.
|
How would one do that ??
Create users in the Gallery's database with the same username as the Forum manually first ??
Actually, how it will be set up is more on group permissions. That is, once logged in, if part of a certain group they would have access to the gallery, otherwise there's nothing for them to be able to access in the gallery, ie there's no public access to the gallery and nothing for reg users, only users part of our "special" group.
[Updated on: Mon, 27 February 2006 11:12] Report message to a moderator
|
|
|
Re: Using fudapi.inc.php and forum_login.php [message #30466 is a reply to message #30458] |
Mon, 27 February 2006 14:17 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You need to modify the gallery to store the forum user id in its users table. That way it can associate forum accounts to its own account system. For group permissions you need to query the group_members table.
FUDforum Core Developer
|
|
|
Re: Using fudapi.inc.php and forum_login.php [message #30472 is a reply to message #30466] |
Mon, 27 February 2006 15:25 |
DaveQB
Messages: 109 Registered: January 2006 Location: Sydney
Karma: 0
|
Senior Member |
|
|
Ilia wrote on Tue, 28 February 2006 01:17 | You need to modify the gallery to store the forum user id in its users table. That way it can associate forum accounts to its own account system. For group permissions you need to query the group_members table.
|
Firstly, thanx alot for this outstanding support again. Best forum software outand best support.
So need to manually add all current users and then new users as they join the forum, to the Gallery DB ??
I am using Gallery 2
It has a layout like so in the User table
+-----------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+--------------+------+-----+---------+-------+
| gid | int(11) | | PRI | 0 | |
| guserName | varchar(32) | | UNI | | |
| gfullName | varchar(128) | YES | | NULL | |
| ghashedPassword | varchar(128) | YES | | NULL | |
| gemail | varchar(128) | YES | | NULL | |
| glanguage | varchar(128) | YES | | NULL | |
+-----------------+--------------+------+-----+---------+-------+
So i just make the id's and userName's line up and match like they do in the forums DB ??(an exact duplicate)
hmmmm this is getting a tad confusing ...
[Updated on: Mon, 27 February 2006 15:40] Report message to a moderator
|
|
|
Re: Using fudapi.inc.php and forum_login.php [message #30476 is a reply to message #30472] |
Mon, 27 February 2006 19:20 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I'd suggest adding another field to the table called forum_user_id and using that field to associate the two systems. Based on this id you can then retrieve the actual gallery user id.
FUDforum Core Developer
|
|
|
Re: Using fudapi.inc.php and forum_login.php [message #30494 is a reply to message #30455] |
Tue, 28 February 2006 11:21 |
DaveQB
Messages: 109 Registered: January 2006 Location: Sydney
Karma: 0
|
Senior Member |
|
|
Ok i feel more confused about this now then i did when i first posted, and i was confused then
So let me get the system straight.
1) if i use the Fud API to create a login for the gallery, any user that logs in using it will be authenticated for use on the FUDforums....... how do they become authenticated for the gallery ??
2) do i need to disect the login page Gallery2 uses so as to incoporate it into a FUDApi joint login screen for use on the gallery site ??
3) if a user logs into the FUDforum login screen, then they wont be authenticated to use the gallery, thus, do i need to overhaul the existing FUDforum login setup to include authenticating for the gallery ??
On a side note anf FYI, Gallery2 has a similiar set up as FUDforum with an intergration API of its own plus loads of documentation.
[Updated on: Tue, 28 February 2006 20:12] Report message to a moderator
|
|
|
Re: Using fudapi.inc.php and forum_login.php [message #30500 is a reply to message #30494] |
Tue, 28 February 2006 14:27 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Well, you need to deside what is the "PRIMARY" application. Then what you do is modify the primary application's login script to use API to log the user automatically into the secondary application. Ideally login/passwords are the same in both so you can use the same credentials to authenticate the user.
FUDforum Core Developer
|
|
|
|
|
|
|
|