MyBB Community Forums

Full Version: Creating MyBB templates?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Can someone show me how to create mybb templates?

Is it different from making templates for websites in photoshop?

Can someone give me a tut or a guide on how to do it and a template I can customize?

Thanks Smile

I hope it will turn out great!
You can just edit the defualt template through the admin CP. You can replace images and change a lot of stuff without much knowledge at all.
Truth is I have no idea how to install MyBB...
sith717 Wrote:Truth is I have no idea how to install MyBB...

I don't know how your going to run a hosting company then but anyway. http://http://wiki.mybboard.net/index.php/Installing
Fantastico w/ custom scripts mod Wink... Useful for any web host.
But you do have to do some modification, obviously...

And MyBB isn't very hard to install... You put the files on your server, create a MySQL database, run the install script, enter your details, insert a "lock" file (in the 'install' folder) and you're set!
Here's the templates I use. For an example we'll call our page banners.php. First you need to create a php page and name it banners. Then add this code to the page.

<?php
define("IN_MYBB", 1); 

require "./global.php"; // (1)

add_breadcrumb("Banners", "banners.php"); // (2)

eval("\$blog = \"".$templates->get("banners")."\";"); // (3)
output_page($blog); // (4)
?>

Then go into your Admin>templates>modify/delete>default templates>Add template.

Once your in there, we'll name our page "banners" in the title bar. In the blank area you'll include your html for content into your new page. choose which template set you want to save your template too. Then save it.

You now have a new page that can be authored from your administration area. Good luck.
I think he meant themes and not templates Toungue...

You know, I'd like to see more themes out there... I might create a beginner's tut.
ahero4heor Wrote:I think he meant themes and not templates Toungue...

You know, I'd like to see more themes out there... I might create a beginner's tut.

Quote:Can someone show me how to create mybb templates?

Smile
Yeah, but I think me meant something other than what he said... He though oh, yeah templates. But what he really meant was themes. I used to get them confused.
Templates are part of the theme.

If you want to have a good theme, then you need to modify templates as well.

Check out my article on making good themes: http://mods.mybboard.net/view-resource/t...-own-theme

Hope it helps you. Smile
Pages: 1 2