MyBB Community Forums

Full Version: Ask about whos online
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i make some custom page with the code

<?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;
?>

then i try to browsing with 2 browser

account 1 looking for thats page, ex(/page.php)
account 2 looking for whos online

but account 1 doesn't show page.php, but showing filenotfound.php

like this

[Image: qp56yq.jpg]


as u know, i make custom 404 php before,
at this thread
http://community.mybb.com/thread-132242.html

how to fix it, when account 1 open the page.php, it will be showing account 1 has opening page.php at whos online?
I'm not sure whether this solves your problem, but generally the statement for require once is:

require_once "./global.php";
require_once "./global.php";
this code if i put forum into root site
thx for answer btw ^_^

UPDATE !!!
http://community.mybb.com/thread-120329-...pid1059715
this answer help me, SOLVED
thx ^_^