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

Home » General » FUDforum in eGroupWare » Help configuring NNTP on fudforum inside EGW
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Help configuring NNTP on fudforum inside EGW [message #33758 is a reply to message #33719] Tue, 19 September 2006 15:15 Go to previous messageGo to previous message
gogou is currently offline  gogou   Belgium
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 ? Very Happy 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

[Message index]
 
Read Message icon2.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to install?
Next Topic: Error 404 in eGroupware
Goto Forum:
  

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

Current Time: Fri Nov 08 16:15:58 GMT 2024

Total time taken to generate the page: 0.07235 seconds