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
#2
Nice tutorial Tongue

Edit- It would be nice if you uploaded the pics to something like tinypic so people can view them easier without downloading them.
Reply
#3
What do this line?

PHP Code:
define("KILL_GLOBALS"1); 
-Rafael
vBulletin Developer
My Forum
My Blog
Reply
#4
Tut copied/referenced from http://www.learnmybb.com/forums/Thread-H...-new-pages?

And don't worry about the KILL_GLOBALS... I believe its there to stop the normal loading of the forum.
Reply
#5
Quote:don't worry about the KILL_GLOBALS... I believe its there to stop the normal loading of the forum.

Yes that is what it is there for....but i did not copy it....I used a few codes that i found from the net and as well as some of my own....but i wish someone would have told me about this site b4...i was searching......

....That code they use has a few errors that is why i posted my own ^_^

So either way....it works lmao..... Kudos to them as well.


Cool <<< Looks like John Lennon
Reply
#6
Thanks for the useful information! I helped your advice!
publix login
Reply
#7
Thank you for enchanting the time to talk about this
Reply
#8
Cut-off dates, complex instructions, and strict professors can make a student's lifestyles a whole lot tougher than it must be.
Reply
#9
(Nov 15, 2009, 09:57 AM)kdog2fast Wrote: Nice tutorial Tongue

Edit- It would be nice if you uploaded the pics to something like tinypic so people can view them easier without downloading them.

Cool bro! And nice mate!
Reply
#10
HTML remains for HyperText Markup Language. It is a dialect to depict the substance of web records. It utilizes an exceptional language structure containing markers that is called components which are wrapped around the content inside the record to show how client specialists. For eg. web programs ought to decipher that bit of the document. html tutorials pdf The motivation behind a web program, for example, Internet Explorer or Firefox, is to peruse HTML reports and show them as pages.

Labels more often than not come in sets, are encompassed by edge sections and for the most part have "opening" and "shutting" labels, i.e. <html></html>. In many programs there is a "Source" or "View Source" alternative, ordinarily under the View menu. Attempt this now - go to your most loved site, pick this alternative, and invest some energy taking a gander at the HTML that makes up the structure of the page.

HTML can implant programs written in a scripting dialect, for example, JavaScript which influence the conduct and substance of site pages. Consideration of CSS characterizes the look and design of substance. The World Wide Web Consortium (W3C), maintainer of both the HTML and the CSS norms, has supported the utilization of CSS over unequivocal presentational HTML since 1997.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  MyBB change index page? Yoshistr 9 4,650 Nov 24, 2017, 11:01 PM
Last Post: Mercuy
  How to add a storefront to my forum tjroughrider 1 2,041 Mar 28, 2015, 10:10 AM
Last Post: Nasyr
Exclamation Adding fields to registration page not working tjroughrider 3 2,997 Mar 03, 2015, 04:02 PM
Last Post: tjroughrider
  MyBB Installation Tutorial! Nasyr 6 3,892 Nov 26, 2014, 06:32 AM
Last Post: Nasyr
  Tabbed menu only works on /index.php page? MrNova 3 2,263 Apr 21, 2014, 08:51 PM
Last Post: Ace700

Forum Jump:


Users browsing this thread: 1 Guest(s)