MyBB Community Forums

Full Version: Include header and footer on other pages.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2011-08-07, 12:05 PM)faviouz Wrote: [ -> ]So you were using the exact same code ranjani posted? It was just an example...

Yes. I was using the exact code. Nothing else, only that code.

And then I got this error:
Parse error: syntax error, unexpected T_STRING in /home/user/domain.com/folder/index.php on line 7
Ok, take a look at this instead:

http://community.mybb.com/thread-6615.html

It's a much more efficient method.
(2011-08-07, 12:46 PM)faviouz Wrote: [ -> ]Ok, take a look at this instead:

http://community.mybb.com/thread-6615.html

It's a much more efficient method.

But I want to make a php file located at MyBB-Forum-Root/Folder
it is not at the same folder as the MyBB Forum?

Can I still use that code?
Well. I think it is, but what modifications should I do to get it to work?
Bump, any ideas?
use Page Manger plugin to make your pages, then edit htaccess to redirect to the page.

I use this method for my TOS, Privacy Policy and other pages.

http://www.pavementsucks.com/privacy.html
http://www.pavementsucks.com/legal.html

both point to URLs in my site root, but my forum is in the \board folder.

With Page Manager, the pages are actually at

http://www.pavementsucks.com/board/misc....ge=privacy
http://www.pavementsucks.com/board/misc.php?page=tos

but with .htaccess as

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^legal\.html$ /board/misc.php?page=tos [L,QSA]
RewriteRule ^privacy\.html$ /board/misc.php?page=privacy [L,QSA]
</IfModule>

everything works fine without any special coding.
Pages: 1 2