MyBB Community Forums

Full Version: Custom Pages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to add two custom pages and have them appear as a toplink. I can do the toplink part but just need to figure out how to do the pages. I used a plugin for my rules page and got it up. Tried to follow a tut I found for the other two but I believe it is out dated as I can't get it to work. If anyone can point me in the right direction I would be greatly appreciative. I am using mybb 1.4.11.
http://66.102.9.132/search?q=cache:http:...d-106.html

Sorry about it being Google Cache, site seems to be down.
You can use this for one custom page.

http://www.forumsecurity.eu/showthread.php?tid=149

To add the second manually, check this thread out.

http://community.mybboard.net/thread-59296.html
Ok matt I followed your tutorial but I am getting this error: Parse error: syntax error, unexpected '=' in /home/clanog5/public_html/ranks.php(9) : eval()'d code on line 2

How do I fix it?
Can you paste the code you used here?? Copy and paste from the file, put it in [php] tags.
<?php
define("IN_MYBB", 1);
define("KILL_GLOBALS", 1);
require "global.php";

add_breadcrumb("ranks", "ranks.php");

eval("\ranks= \"".$templates->get("ranks")."\";");
output_page($ranks);
?>
eval("\ranks=

to

eval("\$ranks=
Thank you! It is working properly now. I figured it was something missing from the code.