/** * Show the online users * * @access public * @return string HTML content to replace tag with */ public function online_users_show() { //----------------------------------------- // Get the users from the DB //----------------------------------------- require_once IPSLib::getAppDir('forums', 'forums') . '/boards.php'; $boards = new public_forums_forums_boards(); $boards->makeRegistryShortcuts($this->registry); $active = $boards->getActiveUserDetails(); $active['visitors'] = $active['GUESTS'] + $active['ANON']; $active['members'] = $active['MEMBERS']; return $this->registry->getClass('output')->getTemplate('portal')->onlineUsers($active); }
/** * Builds output array for sub forums * * @access public * @return array **/ public function showSubForums() { require_once IPSLib::getAppDir('forums') . '/modules_public/forums/boards.php'; $boards = new public_forums_forums_boards(); $boards->makeRegistryShortcuts($this->registry); return $boards->showSubForums($this->request['f']); }
/** * Execute the plugin and return the HTML to show on the page. * Can be called from ACP or front end, so the plugin needs to setup any appropriate lang files, skin files, etc. * * @access public * @param array Block data * @return string Block HTML to display or cache */ public function executePlugin($block) { $this->lang->loadLanguageFile(array('public_ccs'), 'ccs'); $this->lang->loadLanguageFile(array('public_boards'), 'forums'); require_once IPSLib::getAppDir('forums') . '/modules_public/forums/boards.php'; $boards = new public_forums_forums_boards($this->registry); $boards->makeRegistryShortcuts($this->registry); $active = $boards->getActiveUserDetails(); $pluginConfig = $this->returnPluginInfo(); $templateBit = $pluginConfig['templateBit'] . '_' . $block['block_id']; return $this->registry->output->getTemplate('ccs')->{$templateBit}($block['block_name'], $active); }
public function doExecute(ipsRegistry $registry) { $this->generateTraffic($registry); parent::doExecute($registry); // Get on with the rest. }