FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Integrating with other php app
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Integrating with other php app [message #38718 is a reply to message #22506] Thu, 23 August 2007 14:07 Go to previous messageGo to previous message
tmuka is currently offline  tmuka   United States
Messages: 9
Registered: July 2007
Location: Michigan
Karma:
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

[Message index]
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A problem with forum alignment.
Next Topic: would re-installing the forum help?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 18:43:22 GMT 2024

Total time taken to generate the page: 0.05273 seconds