- Fixed missing array elements for what=active in guest menu
- 'Today Online' below action=online is only shown when ext-active and
ext-online are activated
- Fixed user's last activity in clicking on paidmails. It is now no longer
updated if an administrator is logged in
// 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;
// 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;
break;
case 'modify': // When the extension got modified
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;
default: // Unknown extension mode
logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
break;
// Filter for adding link to "active list"
function FILTER_ADD_LINK_ACTIVE_LIST () {
// 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
- '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
);
// Add link to "we were active today" page
// Status must be CONFIRMED
if (getUserData('status') == 'CONFIRMED') {
// Update last activity if not admin
// 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
// User has confirmed his account so we can procede...
// @TODO Rewrite this to a filter