MyBB Community Forums

Full Version: Comprehensive Guide to Custom Page Creation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
Don't expect any support with this. Confused
(2009-07-03, 05:07 AM)Jed K Wrote: [ -> ]Don't expect any support with this. Confused

So can you help me out with this ?
I mean as its possible to fetch the header, footer and navbar by this i just wud need to edit the body part and add the needed WP php tags!?

Can you help me with this ??
<html>
<head>
<title>{$mybb->settings[bbname]} - Example Page</title>
{$headerinclude}
</head>
<body>
{$header}
<br />
<!-- Content: Start -->

<!-- Content: End -->
{$footer}
</body>
</html>

That will include your forums header and footer. For the WP PHP tags, you can add them yourself between the <!-- Content: Start --> <!-- Content: End -->.
@Joshua
Thanks for the help.
I posted my query here
Would be moving my discussion there.
Sorry, my bad. I haven't been checking this tutorial.
If you need urgent help, just drop me a PM.
@Jed K
I'd say
require "../global.php"; 
or
require ".yourdomain.com/global.php"; 
I'm not exactly sure on that one, but give it a shot.
Is it possible to add the viewers usename to the template?
Yes, I believe it's
Welcome {$mybb->user['username']}
Thanks! That worked.
(2009-07-03, 02:53 PM)Infranight Wrote: [ -> ]Sorry, my bad. I haven't been checking this tutorial.
If you need urgent help, just drop me a PM.
@Jed K
I'd say
require "../global.php"; 
or
require ".yourdomain.com/global.php"; 
I'm not exactly sure on that one, but give it a shot.

Thank for responding, but you're not even paying attention to my question.

I have multiple index.php files, but they are in different directories. For example:
/custom/index.php
/custom/art/index.php
/custom/music/index.php
etc.

Requiring global.php isn't going to do anything. I need a way to specify each specific index.php. I can't just name all cases "index" like this:
case "index":   
            $user_activity['activity'] = "index"; 
            break;
...that won't work because, like I said, I have multiple index.php files. Plus, that's reserved for the forum index.

So, I need a solution. I tried changing "index" to the "custom/index", but it didn't work. I'm not really sure how else to go about it.
You can always use index_2, index_3, etc. if you want, and sorry I misread your question, I assumed you needed to use those pages.
Pages: 1 2 3 4 5 6