REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial]Add page to mybb
#1
Ok I have got a few messages about this and I also had the same question untill I asked around and did some searching on google. I found a few things that will be able to help you in making a new page. Whether this be a Upgrade page, testimonials page, etc...

So please just listen and copy the codes that I have provided for you. Also these are the codes i made for my site, so edit them accordingly.

Ok so first lets make a simple page. The page i have made was for upgrade accounts, so the page i made was upgrade.php. So look below and you will see what i have done.

Code:
<?php

define("IN_MYBB", 1);
define("KILL_GLOBALS", 1);
require "global.php";

add_breadcrumb("Upgrade", "upgrade.php");

eval("\$upgrade= \"".$templates->get("upgrade")."\";");
output_page($upgrade);
?>
All you have to do is replace the "upgrade" part of the text, to what ever the name of your page is going to be. So in the following code I have made another one for you, just to see what i mean.

Code:
<?php

define("IN_MYBB", 1);
define("KILL_GLOBALS", 1);
require "global.php";

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

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

See what i mean. if so good....if not read more through the code and see if you can get it.

ok next were going to have to make a template for your theme on your board. So what were going to have to do is go in the acp and make a template. So follow the steps below ok.

admin cp --> Templates & Styles --> Templates --> The template your using --> Expand Templates --> Add new Template.

If all of that is confusing, I have provided a screenshot step-by step images below.

Now once you have click to make a new template, just copy and paste this code in the larger text box, and put the content you want where i have labeled for you.

I hope this helps some of you.

Code:
<html>
<head>
<title>Subscribe</title>
{$headerinclude}
</head>
<body>
{$header}[b]
Put your content Here.[/b]
{$footer}
</body>
</html>

Here are the attachments.

       

       
Reply


Messages In This Thread
[Tutorial]Add page to mybb - by Angel - Nov 13, 2009, 09:59 PM
RE: [Tutorial]Add page to mybb - by kdog2fast - Nov 15, 2009, 09:57 AM
RE: [Tutorial]Add page to mybb - by Coolboy - Feb 25, 2017, 11:52 PM
RE: [Tutorial]Add page to mybb - by Rafael - Nov 15, 2009, 01:56 PM
RE: [Tutorial]Add page to mybb - by kdog2fast - Nov 15, 2009, 06:00 PM
RE: [Tutorial]Add page to mybb - by Angel - Nov 15, 2009, 06:43 PM
RE: [Tutorial]Add page to mybb - by artmuz65 - Dec 14, 2016, 01:13 PM
RE: [Tutorial]Add page to mybb - by RichardVincent - Dec 19, 2016, 05:29 AM
RE: [Tutorial]Add page to mybb - by walter - Dec 21, 2016, 06:09 AM
RE: [Tutorial]Add page to mybb - by SamiKapoor - Mar 17, 2017, 05:34 AM
RE: [Tutorial]Add page to mybb - by actavis - Mar 18, 2017, 04:43 PM
RE: [Tutorial]Add page to mybb - by Suraf - Mar 28, 2017, 11:34 PM
RE: [Tutorial]Add page to mybb - by actavis - May 01, 2017, 02:27 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  MyBB change index page? Yoshistr 7 4,211 Aug 21, 2017, 07:40 AM
Last Post: Frances
  How to add a storefront to my forum tjroughrider 1 1,954 Mar 28, 2015, 10:10 AM
Last Post: Nasyr
Exclamation Adding fields to registration page not working tjroughrider 3 2,861 Mar 03, 2015, 04:02 PM
Last Post: tjroughrider
  MyBB Installation Tutorial! Nasyr 6 3,677 Nov 26, 2014, 06:32 AM
Last Post: Nasyr
  Tabbed menu only works on /index.php page? MrNova 3 2,126 Apr 21, 2014, 08:51 PM
Last Post: Ace700

Forum Jump:


Users browsing this thread: 1 Guest(s)