MyBB Community Forums

Full Version: make 1 more portal ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
mybb have 1 portal, and i put into root site,
so i will make 1 more portal, for another page.
is it possible?
if yes, how to make it?

is it works? -> http://community.mybb.com/thread-4327.html
^ 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 Sad
^ 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
wow nice, iam so happy
[Image: 021104212139d55.gif]
http://www.dota2id.com/forum/items.php
now little more modif sir,
can we put on root, not /forum/page.php but domain.com/page.php sir?
i will make many page.php, lol
^ 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;
?>
Pages: 1 2