2009-07-03, 05:07 AM
2009-07-03, 11:25 AM
(2009-07-03, 05:07 AM)Jed K Wrote: [ -> ]Don't expect any support with this.
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 ??
2009-07-03, 11:35 AM
<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 -->.
2009-07-03, 12:02 PM
2009-07-03, 02:53 PM
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
If you need urgent help, just drop me a PM.
@Jed K
I'd say
require "../global.php";
orrequire ".yourdomain.com/global.php";
I'm not exactly sure on that one, but give it a shot.2009-07-05, 05:30 PM
Is it possible to add the viewers usename to the template?
2009-07-05, 06:02 PM
Yes, I believe it's
Welcome {$mybb->user['username']}
2009-07-05, 09:24 PM
Thanks! That worked.
2009-07-06, 09:14 AM
(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
orrequire "../global.php";
I'm not exactly sure on that one, but give it a shot.require ".yourdomain.com/global.php";
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.
2009-07-06, 09:57 PM
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.