Re: Help configuring NNTP on fudforum inside EGW [message #33758 is a reply to message #33719] |
Tue, 19 September 2006 15:15 |
gogou
Messages: 5 Registered: September 2006
Karma:
|
Junior Member |
|
|
yes it exist in the main directory of egw
When I comment the line wich include that file, the script work but cannot processe the right sql querry because it don't know the egw module :s
it seem quite bisare. I'll maibe reinstall fud forum and see if it is better. Do you have a how to set fudforum perfectly for EGW ? and well nntp how to?
Here is the step I've done till now:
Followed this thread: http://fudforum.org/forum/index.php?t=msg&th=3487&
1) Give permition to the server to the fudforum (ff) directory
2) Copy the ff source inside directory
3) Install ff from the admin menu
4) Give admin permition to use ff
5) Lauch fudforum from the top bar once
6) Symlink globals.php /opt/appsdata/domain/web/apache2/egroupware-files-test/fudforum/crc32/inclu de
to /opt/apps/egroupware/test/fudforum/setup/base/scripts/symlink_to_globals_he re
7) Be sure to "unlock" file from the forum, using the forum file unlock admin controle
8 ) Insert ( $GLOBALS['phpgw_info']['flags']['currentapp'] = 'fudforum'; ) at the top of the nntp.php file
(/opt/apps/egroupware/test/fudforum/setup/base/scripts/nntp.php)
9) Insert those line after the globals.php include (around line 39).
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);
}
10) Inside ff admin configuration, make a new syncronisation btw ff and news server
- adress news.newserver.net
- choose the right news group
- no create user
11) For the cron job use the path to /path/to/egw/open/directory/fudforum/setup/base/scripts/nntp.php
12) Edit /path/to/egw/fudforum/setup/base/src/forumsel.inc.t at line 38 change "reads" for "read_view"
13) Admin panel of ff synchronise src
[Updated on: Tue, 26 September 2006 08:17] Report message to a moderator
|
|
|