trying to add forum (style a forum or session)
Posted: Mon Feb 07, 2011 3:02 am
hi,
first post seems this is the best place to get abit of help
anyway i am wanting to add a forum to my store.
so i have created a new page like http://xxx.com/forum.php looks like this
include(dirname(__FILE__)."/init.php");
$GLOBALS['ISC_CLASS_ORDER'] = GetClass('ISC_forum');
$GLOBALS['ISC_CLASS_ORDER']->HandlePage();
and added this to the init.php
),
"sitemap" => array(
"class" => "class.forum.php",
"name" => "ISC_FORUM",
"global" => "ISC_CLASS_FORUM"
i then made a class.forum.php in the includes/classes
looks like this (i think i am lost here now)
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './phpbb3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
?>
now basically it gives an error
Fatal error: Cannot redeclare redirect() (previously declared in xxx\lib\general.php:3505) in xxx\phpBB3\includes\functions.php on line 2473
those lines are
3505: function redirect($url, $status = 303)
2473:
// Behave as per HTTP/1.1 spec for others
header('Location: ' . $url);
exit;
}
do you think this will work somehow or is there another better way to get a forum into my site..
at this point i don't mind duel log ins, the store will be email and the forum screen names.?
hope you can help
thanx,
Axel.
first post seems this is the best place to get abit of help

anyway i am wanting to add a forum to my store.
so i have created a new page like http://xxx.com/forum.php looks like this
include(dirname(__FILE__)."/init.php");
$GLOBALS['ISC_CLASS_ORDER'] = GetClass('ISC_forum');
$GLOBALS['ISC_CLASS_ORDER']->HandlePage();
and added this to the init.php
),
"sitemap" => array(
"class" => "class.forum.php",
"name" => "ISC_FORUM",
"global" => "ISC_CLASS_FORUM"
i then made a class.forum.php in the includes/classes
looks like this (i think i am lost here now)
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './phpbb3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
?>
now basically it gives an error
Fatal error: Cannot redeclare redirect() (previously declared in xxx\lib\general.php:3505) in xxx\phpBB3\includes\functions.php on line 2473
those lines are
3505: function redirect($url, $status = 303)
2473:
// Behave as per HTTP/1.1 spec for others
header('Location: ' . $url);
exit;
}
do you think this will work somehow or is there another better way to get a forum into my site..
at this point i don't mind duel log ins, the store will be email and the forum screen names.?
hope you can help

thanx,
Axel.