/> <label for="autosubscribe">Enable automatic thread subscriptions</label> </td> </tr> <tr id="notif_unseeded_tr"> <td class="label tooltip" title="Enabling this will send you a PM alert before your uploads are deleted for being unseeded."><strong>Unseeded torrent alerts</strong></td> <td> <input type="checkbox" name="unseededalerts" id="unseededalerts"<?php echo checked($UnseededAlerts); ?> /> <label for="unseededalerts">Enable unseeded torrent alerts</label> </td> </tr> <?php NotificationsManagerView::render_settings(NotificationsManager::get_settings($UserID)); ?> </table> <table cellpadding="6" cellspacing="1" border="0" width="100%" class="layout border user_options" id="personal_settings"> <tr class="colhead_dark"> <td colspan="2"> <strong>Personal Settings</strong> </td> </tr> <tr id="pers_avatar_tr"> <td class="label tooltip_interactive" title="Please link to an avatar which follows the <a href="rules.php">site rules</a>. The avatar width should be 150 pixels and will be resized if necessary." data-title-plain="Please link to an avatar which follows the site rules. The avatar width should be 150 pixels and will be resized if necessary."><strong>Avatar URL</strong></td> <td> <input type="text" size="50" name="avatar" id="avatar" value="<?php echo display_str($Avatar); ?> " />
public static function render_settings($Settings) { self::$Settings = $Settings; self::render_push_settings(); ?> <tr> <td class="label"> <strong>News announcements</strong> </td> <td> <?php self::render_checkbox(NotificationsManager::NEWS); ?> </td> </tr> <tr> <td class="label"> <strong>Blog announcements</strong> </td> <td> <?php self::render_checkbox(NotificationsManager::BLOG); ?> </td> </tr> <tr> <td class="label"> <strong>Inbox messages</strong> </td> <td> <?php self::render_checkbox(NotificationsManager::INBOX, true); ?> </td> </tr> <tr> <td class="label tooltip" title="Enabling this will give you a notification when you receive a new private message from a member of the <?php echo SITE_NAME; ?> staff."> <strong>Staff messages</strong> </td> <td> <?php self::render_checkbox(NotificationsManager::STAFFPM, false, false); ?> </td> </tr> <tr> <td class="label"> <strong>Thread subscriptions</strong> </td> <td> <?php self::render_checkbox(NotificationsManager::SUBSCRIPTIONS, false, false); ?> </td> </tr> <tr> <td class="label tooltip" title="Enabling this will give you a notification whenever someone quotes you in the forums."> <strong>Quote notifications</strong> </td> <td> <?php self::render_checkbox(NotificationsManager::QUOTES); ?> </td> </tr> <?php if (check_perms('site_torrents_notify')) { ?> <tr> <td class="label tooltip" title="Enabling this will give you a notification when the torrent notification filters you have established are triggered."> <strong>Torrent notifications</strong> </td> <td> <?php self::render_checkbox(NotificationsManager::TORRENTS, true, false); ?> </td> </tr> <?php } ?> <tr> <td class="label tooltip" title="Enabling this will give you a notification when a torrent is added to a collage you are subscribed to."> <strong>Collage subscriptions</strong> </td> <td> <?php self::render_checkbox(NotificationsManager::COLLAGES . false, false); ?> </td> </tr> <?php }
if (isset($NewMessages[NotificationsManager::INBOX])) { $Alerts[] = NotificationsManagerView::format_traditional($NewMessages[NotificationsManager::INBOX]); } $NotificationsManager->clear_notifications_array(); } if (G::$LoggedUser['RatioWatch']) { $Alerts[] = '<a href="rules.php?p=ratio">Ratio Watch</a>: You have ' . time_diff(G::$LoggedUser['RatioWatchEnds'], 3) . ' to get your ratio over your required ratio or your leeching abilities will be disabled.'; } elseif (G::$LoggedUser['CanLeech'] != 1) { $Alerts[] = '<a href="rules.php?p=ratio">Ratio Watch</a>: Your downloading privileges are disabled until you meet your required ratio.'; } // Torrents if ($NotificationsManager->is_traditional(NotificationsManager::TORRENTS)) { $NotificationsManager->load_torrent_notifications(); $NewTorrents = $NotificationsManager->get_notifications(); if (isset($NewTorrents[NotificationsManager::TORRENTS])) { $Alerts[] = NotificationsManagerView::format_traditional($NewTorrents[NotificationsManager::TORRENTS]); } $NotificationsManager->clear_notifications_array(); } if (check_perms('users_mod')) { $ModBar[] = '<a href="tools.php">Toolbox</a>'; } if (check_perms('users_mod') || G::$LoggedUser['PermissionID'] == FORUM_MOD) { $NumStaffPMs = G::$Cache->get_value('num_staff_pms_' . G::$LoggedUser['ID']); if ($NumStaffPMs === false) { if (check_perms('users_mod')) { G::$DB->query("\n\t\t\t\tSELECT COUNT(ID)\n\t\t\t\tFROM staff_pm_conversations\n\t\t\t\tWHERE Status = 'Unanswered'\n\t\t\t\t\tAND (AssignedToUser = "******"\n\t\t\t\t\t\tOR (Level >= " . max(700, $Classes[MOD]['Level']) . "\n\t\t\t\t\t\t\tAND Level <= " . G::$LoggedUser['Class'] . "))"); } if (G::$LoggedUser['PermissionID'] == FORUM_MOD) { G::$DB->query("\n\t\t\t\tSELECT COUNT(ID)\n\t\t\t\tFROM staff_pm_conversations\n\t\t\t\tWHERE Status='Unanswered'\n\t\t\t\t\tAND (AssignedToUser = "******"\n\t\t\t\t\t\tOR Level = '" . $Classes[FORUM_MOD]['Level'] . "')"); }