MyBB Community Forums

Full Version: Can someone help me find one of MattRogowski's tuts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Can some one help me find one o matt's tuts
Learn MyBB - Forum for MyBB Tutorials - How to add new pages
www.learnmybb.com/forums/post-1187.html
I realy wish he would bring his site back I could always find what i was looking for cause his site was still nice and small.
Try the wayback machine or Google cache, might work for this one. I've tried it for other tutorials, but couldn't find them.

Matt should really bring back LearnMyBB, or at least post the tutorials somewhere else. I'm sure people would love them.
To add a new page:

Create a new PHP file, let's call it test.php and put the following content in it:
<?php
define("IN_MYBB", 1);
$templatelist = "test";
require_once 'global.php';

     eval("\$page_test= \"".$templates->get("test")."\";");
     output_page($page_test);
?>
Now in your template section of your theme create a new template and call it "test". Than anything you write in the test template will be shown on test.php

Also I got some plans for creating a MyBB tutorial site so stay put!
(2010-06-19, 08:17 PM)Bob Jansen Wrote: [ -> ]To add a new page:

Create a new PHP file, let's call it test.php and put the following content in it:
<?php
define("IN_MYBB", 1);
$templatelist = "test";
require_once 'global.php';

     eval("\$page_test= \"".$templates->get("test")."\";");
     output_page($page_test);
?>
Now in your template section of your theme create a new template and call it "test". Than anything you write in the test template will be shown on test.php

Also I got some plans for creating a MyBB tutorial site so stay put!

Thank you for your quick relplyes what i am trying to do is make a page for a video scrpit i bought from the flashden just want mybb's basic tempate and add some code to it

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=iso-8859-15" />
		<title>Playlist player with live previews - index</title>
		<link rel="stylesheet" href="resources/style.css">
		<script type="text/javascript" src="resources/js/swfobject.js"></script>
		<script type="text/javascript" src="resources/js/fixMouseWheel.min.js"></script>
		<script type="text/javascript">
			swfobject.embedSWF("playlistPlayer.swf", "showItem", "100%", "100%", "9.0.0","",{
				// flash vars
				"player.xml":"xml/example01.xml"
			},{
				// params
				bgcolor:"#000000",
				allowfullscreen:"true"
			});
		</script>
		<style>
			.mouseWheelFix {
				width: 700px;
				height: 320px;
			}
		</style>
	</head>   
	
	
	<body>
		<div class="mouseWheelFix">
			<div id="showItem"></div>
		</div>
		<div class="container">
			<div class="examples" id="examples">
				<div class="right">
					<div>SELECT EXAMPLE</div>
					<a href="index.html" class="selected">01</a>
					<a href="example02.html">02</a>
					<a href="example03.html">03</a>
					<a href="example04.html">04</a>
				</div>
			</div>
			<div class="description">
				<h1>Playlist player - default values</h1>
				Playlist can be accessed using bar control or overlay, each thumbnail has a live preview which gets
				loaded after an half second focus.<br><br>
				There's no limit on playlist items since all external resources are only loaded when needed.<br><br>
				Mouse wheel can be used for scrolling / seek and volume<br><br>
				An external watermark logo is displayed on top/right corner
			</div>
		</div>
	</body>
</html>
I tried with the plug in called pagemanger but i get errors on my page when i add my 2 different ones
so I think the way you descried might be easier.

thank you once again
I made this tutorial a while back..
http://community.mybb.com/thread-51222-page-5.html
Not sure if it'll help.
What would I do if this script has it own css ho do i add to mybb
Create a new CSS file and attach it to that page.
(2010-06-19, 09:26 PM)Scoutie44 Wrote: [ -> ]Create a new CSS file and attach it to that page.

So I can attach the one that came with it or i have to rewrite it

Thank you all so much I figured i would wave to wait abit for answers.
Very likely just attach it, but make sure none of the classes in the new CSS file overwrite the old one.
(2010-06-19, 10:58 PM)Infranight Wrote: [ -> ]Very likely just attach it, but make sure none of the classes in the new CSS file overwrite the old one.

Ya I used
<link rel="stylesheet" href="resources/style.css">
and I put it on the page its self instade of headerinclude
Pages: 1 2