^ yes, that works. you can follow the suggestions given in that thread.
i dont thin so with that tutorial
i can't find
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."forums WHERE fid='".$mybb->settings['portal_announcementsfid']."'");
i was duplicate my portal rite here
http://www.dota2id.com/items.php
the content same with
http://www.dota2id.com/index.php
how to edit content of items.php ?
of course i need to add new template group right?
am i true?
^ whoops, looks like there are lot of code changes. can't check it right now ..
or like this, more simple,
i want make 1 more page integrate header and footer
how to make it?
hahahaa too many request and question
^ here is a
simple php page with
header &
footer
<?php
define("IN_MYBB", 1);
// put correct path to global.php in below line
require_once './global.php';
echo $headerinclude;
echo "<title>Page Title</title>";
echo $header;
echo 'content here';
echo $footer;
?>
see also
custom php page guidance
^ if you want to use such simple file at the main folder of the domain then you can change path of
global.php like below
require_once 'forum/global.php';
^
i can't undersatand what u mean sir,
try to find
require_once
so many
require_once
require_once $working_dir.'/inc/init.php';
require_once MYBB_ROOT.'inc/class_session.php';
require_once MYBB_ROOT.$mybb->config['admin_dir']."/inc/functions.php";
require_once MYBB_ROOT.$mybb->config['admin_dir']."/modules/forum/module_meta.php";
require_once MYBB_ROOT.'inc/class_parser.php';
where exactly should i change?
^ oh! No.
global.php file is located in forum folder.
so to make a simple
php file at its above folder we use code like below
<?php
define("IN_MYBB", 1);
// put correct path to global.php in below line
require_once 'forum/global.php';
echo $headerinclude;
echo "<title>Page Title</title>";
echo $header;
echo 'content here';
echo $footer;
?>