Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Include header and footer on other pages.
#11
Not Solved
(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
#12
Not Solved
Ok, take a look at this instead:

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

It's a much more efficient method.
#13
Not Solved
(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?
#14
Not Solved
Bump, any ideas?
#15
Not Solved
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.
Lost interest, sold my sites, will browse here once in a while. It's been fun.


Forum Jump:


Users browsing this thread: 1 Guest(s)