Module de "AltaUserPoints - Online User"

More
7 years 5 months ago #35668 by extonjaez
pareil, toujours la même erreur (ça ressemble à une erreur du type incompatibilité Jquery..:dry:) :dry: .

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago - 7 years 5 months ago #35669 by nordmograph
Bon, bah je mets a jour le code avec les corrections dont je vous ave parlé et ça fonctionne.
Code:
<?php /** * @package AltaUserPoints for Joomla 3.x * @copyright Copyright (C) 2015-2016. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! 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'); class modAltaUserPointsOnlineUsersHelper { public static function getList($params) { $db = JFactory::getDBO(); $user = JFactory::getUser(); $count = intval($params->get('count', 5)); $showavatar = intval($params->get('showavatar', 1)); $showself = intval($params->get('showself', 0)); $usrname = trim($params->get('usrname', 'name')); $nullDate = $db->getNullDate(); $date = JFactory::getDate(); $now = $date->toSql(); $q = "SELECT DISTINCT u.id AS userid, aup.points, u.".$usrname." AS usrname, aup.referreid FROM #__alpha_userpoints AS aup, #__users AS u, #__session AS s"; $q .= " WHERE aup.userid=s.userid AND aup.published='1' AND s.userid=u.id AND s.guest='0' AND s.client_id='0' AND s.username!='' "; if(!$showself) $q .= " AND u.id!='".$user->id."' "; $q .= " ORDER BY aup.points DESC, u.$usrname ASC"; $db->setQuery($q, 0, $count); $rows = $db->loadObjectList(); return $rows; } } ?>

Par contre , je ne pense pas ajouter cette modification, car lorsque l'on est le seul connecté, le module affiche 'aucun membre connect'
pas tres logique ...
Mais bon :)

PS et l'erreur n'a rien a voir avec jquery, mais plus à une requete (query) MySQL

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.
Last edit: 7 years 5 months ago by nordmograph.

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #35671 by extonjaez
ça marche!! Merci!!...:woohoo:
Pour le texte je pense indiquer pour que ça corresponde : "vous seul en ligne".
Bonne soirée

Please Log in or Create an account to join the conversation.

Time to create page: 0.353 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.