MyBB Community Forums

Full Version: Who's online location show only Forums' main index
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I got this situation after applying several themes? what could possibly cause this? I believe I didn't get answer from similar threads, which effect only RCs. CMIW.



TIA.
Heloo there,

umm if ur talking about the box in that shows all online users, then this only appears in the index. and not in the other pages.

if i got it wrong pls explain moreSmile

regards
Before this happens, my who's online (complete list) page, always show the location where exactly the user location and/or activity. That's what I missed. I can not see that anymore. It's stuck only showing "my forums main index", even I know people reading a thread or playing with UserCP for example.

Maybe this thread could give you more info about what I mean.
http://community.mybboard.net/showthread...8&pid=6958
exactly the same problem with me only mine is 1.03.

thx for quick reply.
umm alright, pls try to upload online.php again!!

and also make sure that in Admin CP > Templates > Modify / Delete > Who's Online Templates> Online_row u have $locationname


regards
zaher1988 Wrote:and also make sure that in Admin CP > Templates > Modify / Delete > Who's Online Templates> Online_row u have $locationname

I have this:

<tr>
<td class="trow1">$onlinename$userip</td>
<td align="center" class="trow2">$onlinetime</td>
<td class="trow1" width="50%">$locationname</td>
</tr>
these are correct.

so have u you uploaded a new online.php & global.php file!! i'm afraid that by mistake it's corrupted!! i dont know.

however is ur host a windows? also pls try to make a new php file with these inside

<?php phpinfo() ?>

and post the results here.

also before doing that, let's try to use a fix proposed by chris.

open inc/functions.php

at the bottom!! sure before ?>

add this

function get_current_location()
{
global $_ENV, $_SERVER, $_POST;
if($_SERVER['REQUEST_URI'])
{
$location = $_SERVER['REQUEST_URI'];
}
elseif($ENV_['REQUEST_URI'])
{
$location = $ENV['REQUEST_URI'];
}
else
{
if($_SERVER['PATH_INFO'])
{
$location = $_SERVER['PATH_INFO'];
}
elseif($_ENV['PATH_INFO'])
{
$location = $_SERVER['PATH_INFO'];
}
elseif($_ENV['PHP_SELF'])
{
$location = $_ENV['PHP_SELF'];
}
else
{
$location = $_SERVER['PHP_SELF'];
}
if($_SERVER['QUERY_STRING'])
{
$location .= "?".$_SERVER['QUERY_STRING'];
}
elseif($_ENV['QUERY_STRING'])
{
$location = "?".$_ENV['QUERY_STRING'];
}
}

if($_SERVER['REQUEST_METHOD'] == "POST" || $_ENV['REQUEST_METHOD'] == "POST")
{
if($_POST['action'])
{
$addloc[] = "action=".$_POST['action'];
}
if($_POST['fid'])
{
$addloc[] = "fid=".$_POST['fid'];
}
if($_POST['tid'])
{
$addloc[] = "tid=".$_POST['tid'];
}
if($_POST['pid'])
{
$addloc[] = "pid=".$_POST['pid'];
}
if($_POST['uid'])
{
$addloc[] ="uid=".$_POST['uid'];
}
if($_POST['eid'])
{
$addloc[] = "eid=".$_POST['eid'];
}
if(is_array($addloc))
{
$location .= "?".implode("&", $addloc);
}
}
return $location;
}


then in In global.php, find this:
$mybb['location'] = $REQUEST_URI;

Replace it with:
$mybb['location'] = get_current_location();


regards
Got Solved, Thx 4 ur time zaher1988.
It is
variables_order = "EGPCS" in php.ini that caused the problem.

thx again.

Regards.