2008-04-25, 04:37 PM
did a search here, but could not find something wich helped me.. so if i missed it, i apologize.
i have installed the site plugin, but get the following eror when i look at news.php to test it.
the code in the news file is the following:
i did follow the instructions, but.. did i miss something, or do something wrong? also, i want to be able to place the news part on a page located in another directory (/HTML) then the index is. is it possible, and if yes, how?
edit: i checked, the files he is missing are there. and the forum in question is working normally.
i have installed the site plugin, but get the following eror when i look at news.php to test it.
Warning: require_once(./inc/init.php) [function.require-once]: failed to open stream: No such file or directory in /home/tmntfan/domains/tmntfan.nl/public_html/affa/forum/global.php on line 13
Fatal error: require_once() [function.require]: Failed opening required './inc/init.php' (include_path='.:/usr/local/lib/php') in /home/tmntfan/domains/tmntfan.nl/public_html/affa/forum/global.php on line 13
the code in the news file is the following:
<?php
define("IN_MYBB", 1);
define("KILL_GLOBALS", 1);
define("NO_ONLINE", 1);
// The Directory to the forum you are using this on.
// You do not need a beggining or trailing slash
$directory_to_forum = "forum";
require dirname(__FILE__)."/".$directory_to_forum."/global.php";
$plugins->run_hooks("site_news_plugin_run");
?>
i did follow the instructions, but.. did i miss something, or do something wrong? also, i want to be able to place the news part on a page located in another directory (/HTML) then the index is. is it possible, and if yes, how?
edit: i checked, the files he is missing are there. and the forum in question is working normally.