// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Hinzufügen des Menüpunktes "Jetzt Online" wird nun von dieser Erweiterung erledigt. Filter hinzugefügt.");
break;
- }
+ } // END - switch
break;
case 'modify': // When the extension got modified
default: // Unknown extension mode
logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
break;
-}
+} // END - switch
// [EOF]
?>
// Filter for adding link to "active list"
function FILTER_ADD_LINK_ACTIVE_LIST () {
- // Are the extensions online and active there?
- if (isExtensionActive('online')) {
- // Init content
+ // Is ext-active/online there?
+ if ((isExtensionActive('active')) && (isExtensionActive('online'))) {
+ // Init fake-content because there is no `what`='active' in database
$content = array(
- 'menu' => '<a class="menu_blur" href="{%url=modules.php?module=index&what=active%}">{%config=menu_blur_spacer%}{--GUEST_ACTIVE_LINK--}</a>',
- 'what' => 'active'
+ 'menu' => '<a class="menu_blur" href="{%url=modules.php?module=index&what=active%}">{%config=menu_blur_spacer%}{--GUEST_ACTIVE_LINK--}</a>',
+ 'what' => 'active',
+ 'visible' => 'Y',
+ 'locked' => 'N'
);
// Add link to "we were active today" page
// Status must be CONFIRMED
if (getUserData('status') == 'CONFIRMED') {
// Update last activity if not admin
- updateLastActivity($url_userid);
+ if (!isAdmin()) {
+ // Is not admin, so update last activity
+ updateLastActivity($url_userid);
+ } // END - if
// User has confirmed his account so we can procede...
// @TODO Rewrite this to a filter