I have the portal.php in root of my site:
http://www.bestgamers.it/
The problem is that i can't see smilies, attachment and other image.
What can i do?
I already have. But it does not work ..
It is this:
define("IN_MYBB", 1);
define("IN_PORTAL", 1);
define('THIS_SCRIPT', 'portal.php');
// set the path to your forums directory here (without trailing slash)
$forumdir = "./forum";
// end editing
$change_dir = "./";
if(!@chdir($forumdir) && !empty($forumdir))
{
if(@is_dir($forumdir))
{
$change_dir = $forumdir;
}
else
{
die("\$forumdir is invalid!");
}
}
$templatelist = "portal_welcome,portal_welcome_membertext,portal_stats,portal_search,portal_whosonline_memberbit,portal_whosonline,portal_latestthreads_thread_lastpost,portal_latestthreads_thread,portal_latestthreads,portal_announcement_numcomments_no,portal_announcement,portal_announcement_numcomments,portal_pms,portal";
require_once $change_dir."global.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/functions_user.php";
require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;
global $theme;
$theme['imgdir'] = $forumdir.'./'.substr($theme['imgdir'],0);
your mybb script is in "Forum" directory and portal.php in root,right?
well move your portal.php to your forum directory and not your root
then make sure in your admin cp that your forum directory is set to /forum