Add new custom PHP page. - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Resources (https://community.mybb.com/forum-8.html) +--- Forum: Tutorials (https://community.mybb.com/forum-38.html) +--- Thread: Add new custom PHP page. (/thread-116225.html) |
Add new custom PHP page. - crazy4cs - 2012-04-04 I didn't found some good ones floating around. So here is how I create them and here is how you can create them. Its quite easy. Heres how you do. First create, somepage.php file. Inside it, paste below code and save it:
Next, Themes & templates > Templates > Global Templates > Add template. Add below example template:
And for title, give any title to it but make sure you enter same title name in the somename.php file where it is calling (evaluating eval) the template name. As in this example case, you should enter title as template_name since we entered and recalled same global template in somename.php file. Save the global template and it should work fine now. RE: Add new custom PHP page. - Euan T - 2012-04-04 http://community.mybb.com/thread-116043.html RE: Add new custom PHP page. - crazy4cs - 2012-04-04 Did you try to see it fully? Look how much complicated that guy had made it. Anyways, this is a simple method. RE: Add new custom PHP page. - Euan T - 2012-04-04 Fair enough. I can certainly see why you'd say that with the whole .navigation2 stuff he went on about haha RE: Add new custom PHP page. - dragonexpert - 2012-04-04 This is the method I used when I created additional pages with the Social Groups plugin, although I don't have the next thing always be a table. RE: Add new custom PHP page. - Dragon_Void - 2012-04-04 http://community.mybb.com/thread-6615.html People would rather use a plugin to create custom pages RE: Add new custom PHP page. - crazy4cs - 2012-04-04 (2012-04-04, 02:43 PM)Dragon_Void Wrote: http://community.mybb.com/thread-6615.html1. Queries or plugins should be avoided as far as possible. 2. Plugins like page manager creates pages like misc.php?action=page, this is for those who wants a PHP page. 3. Your above link is not a plugin. RE: Add new custom PHP page. - SmItH197 - 2012-04-04 Thanks, this is very helpful! RE: Add new custom PHP page. - Dragon_Void - 2012-04-04 (2012-04-04, 03:34 PM)crazy4cs Wrote:(2012-04-04, 02:43 PM)Dragon_Void Wrote: http://community.mybb.com/thread-6615.html1. Queries or plugins should be avoided as far as possible. I didn't say it is a plugin I just said that people will rather use an plugin, due to the ease of administration. As for the page manager plugin, you can use php in it, as seen here: http://mods.mybb.com/view/page-manager But thanks for the Tutorial, I still prefer "normal" pages RE: Add new custom PHP page. - lenkbreak - 2012-04-09 This is great tutorial crazy4cs, can you help me on this thread http://community.mybb.com/thread-116550.html thanks before |