Log in

View Full Version : Online Locations (index.php)


Adrian Schneider
08-24-2005, 07:46 PM
I have a custom index (forums = forums.php) and I want to change the online message to "Reading News", but when I try to (probably because index.php is usually used for forumhome) I just get the
"Viewing Index
MySite (http://www.mysite.com/)"

Is there any way to work around this without any file edits?

Snake
08-24-2005, 08:00 PM
Yeah I would like to know as well.

Andreas
08-24-2005, 08:15 PM
Yes. Rename the Forum index.php to smth. else like forumhome.php
That should solve it.

Adrian Schneider
08-24-2005, 08:21 PM
I have my original index.php renamed to forums.php. :(

Hm let me know if I have missed anything...

ACP option: 'forums'

plugin 1:
-location: online_location_processif ($filename == 'index.php')
{
$userinfo['activity'] = 'news';
}

plugin 2:
-location: online_location_unknown
if ($userinfo['activity'] == 'news')
{
$userinfo['action'] = '<a href="index.php">Reading News</a>';
$handled = true;
}

edit: accessing the file via site.com/index.php works, but via site.com/ doesn't work.