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

Home » FUDforum » How To » problems with maillist.php (mailing list 2 forum)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: problems with maillist.php (mailing list 2 forum) [message #16868 is a reply to message #16866] Wed, 25 February 2004 01:06 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
Never tried using NNTP or Mailing List import functionality with eGW, hence the problems you are having :/

Before we proceed one thing to keep in mind, you should disable user creation, since in eGW schema FUDforum does not have the ability to autonomously create users like the standalone version can.

Now on with the show Smile

1) GLOBALS.php should be a symlink not a copy of the GLOBALS.php inside the appropriate fudforum/[crc32]/include/ directory.

2) To ensure things work you should *unlock* the forum's files either by hand (not recommended) or by using the File Unlock admin control panel.

The error you are experiencing is due to missing inclusion of the eGW's SQL layer on top of which FUD's SQL functions are built in FUDforum/eGW.

To fix this try adding the following code to maillist.php after GLOBALS.php inclusion.
<?php
require_once('/path/to/egw/header.inc.php');
   if (!empty(
$GLOBALS['phpgw_info']['server']['use_adodb'])) {
           
// open your own connection, as ADOdb does not export the use Link_ID
           
switch ($GLOBALS['phpgw_info']['server']['db_type']) {
                   case
'mysql':
                           
$func = $GLOBALS['phpgw_info']['server']['db_persistent'] ? 'mysql_pconnect' : 'mysql_connect';
                           
define('fud_sql_lnk',$func($GLOBALS['phpgw']->db->Host,
                                   
$GLOBALS['phpgw']->db->User, $GLOBALS['phpgw']->db->Password));
                           
mysql_select_db($GLOBALS['phpgw']->db->Database,fud_sql_lnk);
                           break;

                   case
'pgsql':
                           
$func = $GLOBALS['phpgw_info']['server']['db_persistent'] ? 'pg_pconnect' : 'pg_connect';
                           
define('fud_sql_lnk',$func('dbname='.$GLOBALS['phpgw']->db->Database.
                                   
' host='.$GLOBALS['phpgw']->db->Host.
                                   
' user='.$GLOBALS['phpgw']->db->User.
                                   
' password='.$GLOBALS['phpgw']->db->Password));
                           break;

                   default:
                           die(
'FUDforum only supports mysql or pgsql !!!');
           }
           unset(
$func);
   } else {
           
define('fud_sql_lnk', $GLOBALS['phpgw']->db->Link_ID);
   }
?>


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Merging fro a listserv
Next Topic: undefined constant "s" (bug or my bad understanding?)
Goto Forum:
  

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

Current Time: Sun Nov 24 16:30:14 GMT 2024

Total time taken to generate the page: 0.04078 seconds