Game Section Edits - Who's Online
#1 25-01-2011 
When a user plays or views a tournament, the "Who's Online" list shows "unknown location". This can be changed as follows:

find at inc/functions_online.php
PHP Code:
case "nopermission":
$user_activity['activity'] = "nopermission";
$user_activity['nopermission'] = 1;
break; 

add below that

PHP Code:
case "tournaments":
$user_activity['activity'] = "tournaments";
break; 
[
php]

Then find

[php]
case 
"warnings":
$location_name $lang->managing_warnings;
break; 

add below that the following code

PHP Code:
case "tournaments":
$location_name $lang->viewing_tournaments;
break; 

find in inc/languages/english/online.php

PHP Code:
$l['managing_buddyignorelist'] = "Managing Buddy/Ignore List"

add below that

PHP Code:
$l['viewing_tournaments'] = "Viewing tournament."
The site don't jive? PRESS F5 Flower

0
#2 26-01-2011 
This occurs with a lot of plugins. That's why I use the Custom Online Locations plugin. Saves me all the edits.
But good tip btw.

0
#3 26-01-2011 
Yea, thats a good plugin - but plugins create overhead whereas a core edit doesn't. It depends how many unknown locations you have really.
The site don't jive? PRESS F5 Flower

0


Sorry, that is a members only option