Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | { |
26 | 26 | global $wgOnlineStatusBarModes, $wgOnlineStatusBarIcon, $wgOnlineStatusBarColor; |
27 | 27 | $color= $wgOnlineStatusBarColor[$mode]; |
28 | | - return '<div style="border: 0px solid black; background: transparent; float: right; position: relative; top:-3px; padding: 5px"><p><b>' . $text . ': <span style="color: ' . $color . '; font:bold;"><img alt="Ledorange.svg" src="' . $wgOnlineStatusBarIcon[$mode] . '" width="20" height="20" />' . $wgOnlineStatusBarModes[$mode] . '</span></b></p></div>'; |
| 28 | + return '<div style="border: 0px solid black; background: transparent; float: right; position: relative; top:-52px; padding: 5px"><p><b>' . $text . ': <span style="color: ' . $color . '; font:bold;"><img alt=" . $text . " - " . $mode ." src="' . $wgOnlineStatusBarIcon[$mode] . '" width="20" height="20" />' . $wgOnlineStatusBarModes[$mode] . '</span></b></p></div>'; |
29 | 29 | } |
30 | 30 | |
31 | 31 | static function UpdateDb() |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | { |
79 | 79 | // fix me |
80 | 80 | global $wgScriptPath; |
81 | | - $url = $wgScriptPath . "/extensions" . "$name"; |
| 81 | + $url = $wgScriptPath . "/extensions/OnlineStatusBar" . "$name"; |
82 | 82 | return $url; |
83 | 83 | } |
84 | 84 | |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.php |
— | — | @@ -29,6 +29,7 @@ |
30 | 30 | $wgAutoloadClasses['OnlineStatusBar'] = "$dir/OnlineStatusBar.body.php"; |
31 | 31 | |
32 | 32 | // Configuration |
| 33 | +// Those values can be overriden in LocalSettings, do not change it here |
33 | 34 | $wgOnlineStatusBarModes = array ( |
34 | 35 | 'online' => "On-line", |
35 | 36 | 'busy' => "Busy", |
— | — | @@ -37,11 +38,11 @@ |
38 | 39 | 'offline' => "Offline", |
39 | 40 | ); |
40 | 41 | $wgOnlineStatusBarIcon = array ( |
41 | | - 'online' => OnlineStatusBar::GetFileUrl( "/OnlineStatusBar/20px-Ledgreen.svg.png" ), |
42 | | - 'busy' => OnlineStatusBar::GetFileUrl( "/OnlineStatusBar/20px-Ledorange.svg.png" ), |
43 | | - 'away' => OnlineStatusBar::GetFileUrl( "/OnlineStatusBar/20px-Ledorange.svg.png" ), |
44 | | - 'hidden' => OnlineStatusBar::GetFileUrl( "/OnlineStatusBar/20px-Nuvola_apps_krec.svg.png"), |
45 | | - 'offline' => OnlineStatusBar::GetFileUrl( "/OnlineStatusBar/20px-Nuvola_apps_krec.svg.png"), |
| 42 | + 'online' => OnlineStatusBar::GetFileUrl( "/20px-Ledgreen.svg.png" ), |
| 43 | + 'busy' => OnlineStatusBar::GetFileUrl( "/20px-Ledorange.svg.png" ), |
| 44 | + 'away' => OnlineStatusBar::GetFileUrl( "/20px-Ledorange.svg.png" ), |
| 45 | + 'hidden' => OnlineStatusBar::GetFileUrl( "/20px-Nuvola_apps_krec.svg.png"), |
| 46 | + 'offline' => OnlineStatusBar::GetFileUrl( "/20px-Nuvola_apps_krec.svg.png"), |
46 | 47 | ); |
47 | 48 | $wgOnlineStatusBarColor = array ( |
48 | 49 | 'online' => "green", |
— | — | @@ -51,10 +52,15 @@ |
52 | 53 | 'offline' => "red", |
53 | 54 | ); |
54 | 55 | |
| 56 | +//default for online |
55 | 57 | $wgOnlineStatusBarDefaultOnline = "online"; |
| 58 | +//default for offline |
56 | 59 | $wgOnlineStatusBarDefaultOffline = "offline"; |
| 60 | +//name of table in db |
57 | 61 | $wgOnlineStatusBarTable = "online_status"; |
| 62 | +//if new users have this feature enabled by default (experimental) |
58 | 63 | $wgOnlineStatusBarDefaultEnabled = false; |
| 64 | +//how long to wait until user is considered as offline |
59 | 65 | $wgOnlineStatusBar_LogoutTime = 3600; |
60 | 66 | |
61 | 67 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'wfOnlineStatusBar_CkSchema'; |