<?php /** * @package EasyDiscuss * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. * @license GNU/GPL, see LICENSE.php * * EasyDiscuss is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_JEXEC') or die('Restricted access'); require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; DiscussHelper::loadStylesheet("module", "mod_easydiscuss_notifications"); DiscussHelper::loadHeaders(); require JModuleHelper::getLayoutPath('mod_easydiscuss_notifications');
$path = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; jimport('joomla.filesystem.file'); if (!JFile::exists($path)) { return; } require_once $path; require_once dirname(__FILE__) . '/helper.php'; $my = JFactory::getUser(); $isLoggedIn = modEasyDiscussWelcomeHelper::getLoginStatus(); $return = modEasyDiscussWelcomeHelper::getReturnURL($params, $isLoggedIn); $menu = $params->get('menuid', ''); $menuURL = ''; $config = DiscussHelper::getConfig(); $document = JFactory::getDocument(); // $document->addStyleSheet( rtrim( JURI::root() , '/' ) . '/modules/mod_easydiscuss_welcome/assets/css/styles.css' ); DiscussHelper::loadStylesheet("module", "mod_easydiscuss_welcome"); // Load current logged in user. $profile = DiscussHelper::getTable('Profile'); $profile->load($my->id); $badges = $profile->getBadges(); // Retrieve user's ranking $ranking = ''; if ($profile->id) { $ranking = DiscussHelper::getHelper('Ranks')->getRank($profile->id); } if (!empty($menu)) { $menuURL = '&Itemid=' . $menu; } $userComponent = new stdClass(); $userComponent->option = 'com_user'; $userComponent->login = '******';
* EasyDiscuss is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_JEXEC') or die('Restricted access'); $path = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; jimport('joomla.filesystem.file'); if (!JFile::exists($path)) { return; } require_once $path; // require_once (dirname(__FILE__) . '/helper.php'); DiscussHelper::loadStylesheet("module", "mod_easydiscuss_your_discussions"); $my = JFactory::getUser(); $config = DiscussHelper::getConfig(); $profile = DiscussHelper::getTable('Profile'); $profile->load($my->id); $postsModel = DiscussHelper::getModel('Posts'); $count = $params->get('count', 5); $posts = array(); $posts = $postsModel->getPostsBy('user', $profile->id, 'latest', '0', '', '', $count); $posts = DiscussHelper::formatPost($posts); if (!empty($posts)) { $posts = Discusshelper::getPostStatusAndTypes($posts); // foreach( $posts as $post ) // { // // Translate post status from integer to string // switch( $post->post_status )
<?php /** * @package EasyDiscuss * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. * @license GNU/GPL, see LICENSE.php * * EasyDiscuss is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_JEXEC') or die('Restricted access'); require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; require_once DISCUSS_HELPERS . '/string.php'; require_once dirname(__FILE__) . '/helper.php'; $lang = JFactory::getLanguage(); $lang->load('mod_easydiscuss_categories', JPATH_ROOT); $categories = modEasydiscussCategoriesHelper::getData($params); $selected = ''; $document = JFactory::getDocument(); DiscussHelper::loadStylesheet("module", "mod_easydiscuss_categories"); require JModuleHelper::getLayoutPath('mod_easydiscuss_categories');
* * EasyDiscuss is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ defined('_JEXEC') or die('Restricted access'); $path = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; jimport('joomla.filesystem.file'); if (!JFile::exists($path)) { return; } require_once $path; // Load theme css here. DiscussHelper::loadStylesheet("module", "mod_easydiscuss_navigation"); DiscussHelper::loadHeaders(); // Load component's language file. JFactory::getLanguage()->load('com_easydiscuss', JPATH_ROOT); JFactory::getLanguage()->load('mod_easydiscuss_navigation', JPATH_ROOT); $my = JFactory::getUser(); // We need to detect if the user is browsing a particular category $active = ''; $view = JRequest::getVar('view'); $layout = JRequest::getVar('layout'); $option = JRequest::getVar('option'); $id = JRequest::getInt('category_id'); if ($option == 'com_easydiscuss' && $view == 'post') { $postId = JRequest::getInt('id', 0); // update user's post read flag if (!empty($my->id) && !empty($postId)) {
<?php /** * @package EasyDiscuss * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. * @license GNU/GPL, see LICENSE.php * * EasyDiscuss is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_JEXEC') or die('Restricted access'); require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/parser.php'; require_once dirname(__FILE__) . '/helper.php'; DiscussHelper::getHelper('string'); JFactory::getLanguage()->load('com_easydiscuss', JPATH_ROOT); $itemid = DiscussRouter::getItemId('post'); $posts = modRecentDiscussionsHelper::getData($params); $document = JFactory::getDocument(); DiscussHelper::loadStylesheet("module", "mod_recentdiscussions"); require JModuleHelper::getLayoutPath('mod_recentdiscussions');
<?php /** * @package EasyDiscuss * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. * @license GNU/GPL, see LICENSE.php * * EasyDiscuss is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_JEXEC') or die('Restricted access'); require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; require_once DISCUSS_HELPERS . '/string.php'; require_once dirname(__FILE__) . '/helper.php'; $lang = JFactory::getLanguage(); $lang->load('mod_easydiscuss_most_voted', JPATH_ROOT); $posts = modMostVotedHelper::getData($params); $itemid = DiscussRouter::getItemId('post'); $document = JFactory::getDocument(); DiscussHelper::loadStylesheet("module", "mod_easydiscuss_most_voted"); require JModuleHelper::getLayoutPath('mod_easydiscuss_most_voted');
<?php /** * @package EasyDiscuss * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. * @license GNU/GPL, see LICENSE.php * * EasyDiscuss is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_JEXEC') or die('Restricted access'); $file = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; jimport('joomla.filesystem.file'); if (!JFile::exists($file)) { return; } require_once $file; JFactory::getLanguage()->load('com_easydiscuss', JPATH_ROOT); DiscussHelper::loadStylesheet("module", "mod_easydiscuss_search"); $itemid = DiscussRouter::getItemId('post'); $profile = DiscussHelper::getTable('Profile'); $profile->load(JFactory::getUser()->id); require JModuleHelper::getLayoutPath('mod_easydiscuss_search');
<?php /** * @package EasyDiscuss * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. * @license GNU/GPL, see LICENSE.php * * EasyDiscuss is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_JEXEC') or die('Restricted access'); require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; DiscussHelper::loadStylesheet("module", "mod_easydiscuss_quickquestion"); // Load current logged in user. $my = JFactory::getUser(); $profile = DiscussHelper::getTable('Profile'); $profile->load($my->id); require JModuleHelper::getLayoutPath('mod_easydiscuss_quickquestion');
* EasyDiscuss is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_JEXEC') or die('Restricted access'); $path = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; jimport('joomla.filesystem.file'); if (!JFile::exists($path)) { return; } require_once $path; // require_once (dirname(__FILE__) . '/helper.php'); DiscussHelper::loadStylesheet("module", "mod_easydiscuss_board_statistic"); $postModel = DiscussHelper::getModel('Posts'); $totalPosts = $postModel->getTotal(); $resolvedPosts = $postModel->getTotalResolved(); $unresolvedPosts = $postModel->getUnresolvedCount(); $userModel = DiscussHelper::getModel('Users'); $totalUsers = $userModel->getTotalUsers(); $latestMember = DiscussHelper::getTable('Profile'); $latestMember->load($userModel->getLatestUser()); // Total guests $totalGuests = $userModel->getTotalGuests(); // Online users $onlineUsers = $userModel->getOnlineUsers(); $config = DiscussHelper::getConfig(); $gids = $config->get('main_exclude_frontend_statistics'); $canViewStatistic = true;
<?php /** * @package EasyDiscuss * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. * @license GNU/GPL, see LICENSE.php * * EasyDiscuss is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_JEXEC') or die('Restricted access'); $path = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; jimport('joomla.filesystem.file'); if (!JFile::exists($path)) { return; } require_once $path; // require_once (dirname(__FILE__) . '/helper.php'); DiscussHelper::loadStylesheet("module", "mod_easydiscuss_whos_online"); $userModel = DiscussHelper::getModel('Users'); // Total guests $totalGuests = $userModel->getTotalGuests(); // Online users $onlineUsers = $userModel->getOnlineUsers(); $config = DiscussHelper::getConfig(); $gids = $config->get('main_exclude_frontend_statistics'); require JModuleHelper::getLayoutPath('mod_easydiscuss_whos_online');
<?php /** * @package EasyDiscuss * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. * @license GNU/GPL, see LICENSE.php * * EasyDiscuss is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_JEXEC') or die('Restricted access'); require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php'; DiscussHelper::loadStylesheet("module", "mod_easydiscuss_post_topic"); require JModuleHelper::getLayoutPath('mod_easydiscuss_post_topic');