MyBB Community Forums

Full Version: add mybb template system to other pages of site?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to add the forum's templates to other pages of site,
e.g. forum is on www.example.com

and the other page is www.example.com/join_us.php

then how do I add, {$headerinclude} {$footer} etc in join_us.php
if you include global.php then you should be able to add header & footer on any page

AND you can also use a page manager plugin .. (see page manager ; example pages)
Page manager plugin doesn't allow custom url ??
like
example.com/join_us.php ??
Page manager plugin does allow URL to be use in pages, but its slightly different thing you're trying to achieve here.

At OP: You can use eval() to evaluate the template in your join_us.php file, but before it runs, you should add
require_once "./global.php";
in the file. Then code the template it evaluate and use {$header} , {$headerinclude} and {$footer} variables. These variables will out put these areas automatically.
I code and coded lot of custom pages for ubers and are very easy to use. What I do is just create a sample PHP file of anyname.php and at the end, use eval (evaluate template) function. I just create a template related to the php file in global templates and in that PHP file in eval, I make that template name recall and it recalls the whole page as a custom page, PM me if you want to see an example link.
Thanks all, I got the idea.
now how to show that custom page in who's online list?
(2011-09-30, 01:51 PM)sunjava1 Wrote: [ -> ]Thanks all, I got the idea.
now how to show that custom page in who's online list?
http://community.mybb.com/thread-36884.html

(2011-09-30, 01:59 PM)crazy4cs Wrote: [ -> ]http://community.mybb.com/thread-36884.html

Thanks solved