|
Re: Integrating with other php app [message #22512 is a reply to message #22506] |
Sat, 05 February 2005 17:03 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Check the user_login() function that will allow you to login a user into the forum. As far as sharing auth data, you can use FUDAPI to create/update users in the forum based on your existing user database.
FUDforum Core Developer
|
|
|
|
|
|
|
|
|
|
|
Re: Integrating with other php app [message #38718 is a reply to message #22506] |
Thu, 23 August 2007 14:07 |
tmuka
Messages: 9 Registered: July 2007 Location: Michigan
Karma: 0
|
Junior Member |
|
|
Okay, i'm slowly chipping away at this... I'm running into an issue with functions being declared multiple times since i'm drawing part of the FUDforum headers and footers with the wordpress funtions. I require_once('wp_config.php') the wordpress file in my GLOBALS.php so i can use the wordpress functions.
I have the plugin working to the point that i can login on the wordpress login page using my FUDforum credentials, and it logs me into the forum and wordpress.
I think the issue i'm running into now, is that i'm trying to include two scrips, both the
forum/scripts/forum_login.php
forum/scripts/fudapi.inc.php
Which must be internally including something twice. This happens when i view the forum pages that also include the wordpress wp-config.php so i can draw the headers...
The reason i'm using both, is that after i use forum_login.php to authenticate, i need to grab the user data so i can get the email address and create the user in wordpress.
$fud_user_info = fud_fetch_user($uid);
the specific error message is...
Fatal error: Cannot redeclare fud_sql_error_handler() (previously declared in /var/www/vhosts/nacuso.org/subdomains/test/httpdocs/forum/scripts/forum_login.php:18) in /var/www/vhosts/nacuso.org/subdomains/test/httpdocs/forum/include/core.inc on line 143
any help would be greatly appreciated. I have attached the wordpress plugin super-alpha.
[Updated on: Thu, 23 August 2007 14:26] Report message to a moderator
|
|
|
Re: Integrating with other php app [message #38719 is a reply to message #22506] |
Thu, 23 August 2007 15:34 |
tmuka
Messages: 9 Registered: July 2007 Location: Michigan
Karma: 0
|
Junior Member |
|
|
ok, i seem to have fixed that specific error by changing the order of the includes in GLOBALS.php
i still cant include both scripts, but i'm working on it...
|
|
|