MyBB Community Forums

Full Version: Can't see images in Portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
its because that you have forum in "forum" folder and "portal" in root and images can not be find
for example the portal want to open this url http://www.bestgamers.it/images/emoticons/biggrin.gif
however image actuall adress is http://www.bestgamers.it/forum/images/em...iggrin.gif

open your portal.php and change
$forumdir = "./";
to
$forumdir = "./forum/";
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?
Yes, 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