MyBB Community Forums

Full Version: Use portal as home page outside forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10
Hi, I followed the guide and added:

global $theme;
$theme['imgdir'] = $forumdir.'/'.substr($theme['imgdir'],0);

in portal.php (now index.php in root site) but images on portal page don't appear..I have to change other? thank you
if you view the source, what is the path for used for the images that are not showing? how is that path compared to where they actually are?
Thank you for the answer, I have problem with images

Path of smilies and icons

If I add "forum/" in smilies, it works on portal but not on general forum :/
This is what I and it worked 100%

I'm using nginx as server so other users should change the rewrite rules accordingly.


Installed forum files under /forum.
Added *only* this two rewrite rules:

rewrite ^/index.php$ /forum/portal.php;
rewrite ^/images/(.*)$ /forum/images/$1;

Done Wink
(2013-05-06, 01:05 PM)niere8 Wrote: [ -> ]Thank you for the answer, I have problem with images:

http://essereprivatista.com/index.php (portal page)

Path of smilies and icons: http://essereprivatista.com/images/smilies/smile.gif

Path correct: http://essereprivatista.com/forum/images.../smile.gif

If I add "forum/" in smilies, it works on portal but not on general forum :/

if its only smilies, then you need to find

	$plugins->run_hooks("portal_announcement");

	$parser_options = array(
		"allow_html" => $forum[$announcement['fid']]['allowhtml'],
		"allow_mycode" => $forum[$announcement['fid']]['allowmycode'],
		"allow_smilies" => $forum[$announcement['fid']]['allowsmilies'],
		"allow_imgcode" => $forum[$announcement['fid']]['allowimgcode'],
		"allow_videocode" => $forum[$announcement['fid']]['allowvideocode'],
		"filter_badwords" => 1
	);

and insert after the add_hook line

define('IN_ARCHIVE',1);

what this does is force MyBB to think that its in the archive and then apply the full URL to the smilie image instead of a relative path.
Thank you very much! Now smilies work on portal.

I had problem also with post icons (near title of announcements) and resolved in this way:

{
		$icon = $icon_cache[$announcement['icon']];
		$icon = "<img src=\"http://essereprivatista.com/forum/{$icon['path']}\" alt=\"{$icon['name']}\" />";
	}
where to modify the group request alert in the portal to include the bburl?
template managegroup_requestnote
I followed this tutorial with my forum. I couldn't be happier with it. One tip that fixed a lot of issues, copy your images folder over to your portal. It saves a lot of time.
So i ran into a problem... I was following this guide and every so often checking my website to see the changes/progress. I went to refresh the page on my site, and all of the pictures, icons, background, and anything with color disappeared.

I am also having some login problems and cannot access my ACP now. I'm guessing that has something to do with the quicklogin not working correctly.

My website is here: http://abyssguild.com

I ended up completing every step in the guide, but the end result wasn't very satisfying. Please help!

Any tips would be greatly appreciated!
Pages: 1 2 3 4 5 6 7 8 9 10