MyBB Community Forums

Full Version: Make Banners appear on Forum and not all pages.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
in the portal template you can add required banners codes after {$header}

to make the portal as the home page you can use below directing rule in the .htaccess file
DirectoryIndex portal.php index.php index.html index.htm

the portal link you have in the footer is incorrect. you have to rectify it.
Hi .m.,

I have corrected the portal link in the footer, it should work properly now.
I found the .htaccess file in my root, if I open it with notepad++ it has one line: Header set Access-Control-Allow-Origin "*"

Where exactly am I supposed to type the line you recommended?

So the portal template will basically look like this: <html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
<a href="http://bf4stats.com/s/pc/27dd486a-5db4-408d-8bfb-1d87c24ef4e9"><img src="http://g.bf4stats.com/calapuno02/pc/27dd486a-5db4-408d-8bfb-1d87c24ef4e9.png" align="right" alt="" border="0" /></a>
<a href="http://bf4stats.com/s/pc/f68a33eb-b8fc-430b-9e20-ef0d579f1383"><img src="http://g.bf4stats.com/calapuno02/pc/f68a33eb-b8fc-430b-9e20-ef0d579f1383.png"align="right" alt="" border="0" /></a>
<a href="http://bf4stats.com/s/pc/6bc04249-69c0-4425-827c-819ec9f62d79"><img src="http://g.bf4stats.com/calapuno03/pc/6bc04249-69c0-4425-827c-819ec9f62d79.png"align="right" alt="" border="0" /></a>
<a href="http://bf4stats.com/s/pc/7a0d3519-2955-4337-8df1-a22091ab9efd"><img src="http://g.bf4stats.com/calapuno03/pc/7a0d3519-2955-4337-8df1-a22091ab9efd.png"align="right" alt="" border="0" /></a>
<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center">
<tr><td valign="top" width="200">
{$welcome}
{$pms}
{$search}
{$stats}
{$whosonline}
{$latestthreads}
</td>
<td>&nbsp;</td>
<td valign="top">
{$announcements}

</td>
</tr>
</table>
{$footer}
</body>
</html>
your .htaccess file can be like below
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On
    RewriteBase /
    DirectoryIndex portal.php index.php index.html index.htm 
    Header set Access-Control-Allow-Origin "*"
</IfModule>

or simply it can be like below
DirectoryIndex portal.php index.php index.html index.htm 
Header set Access-Control-Allow-Origin "*"

regarding the banners codes in the portal template :
your posted code should work
Hi .m.,

It's working like a charm, thank you very much.

I have one last request, we have a chat box on the forum page. I'd like to move it to the top on the forums page.
(MyShoutbox 1,7)

I'm not sure where to find it though since the plugin itself has no edit options in configuration-plugins.

Kind Regards,

Vivi
^ you can find shoutbox related code in the index template.
it will be below {$forums} and you have to move the code to top of {$forums}
Alright thank you very much .m.!
Pages: 1 2