![]() | ![]() | ![]() |
| |||||||
| Registrazione | FAQ | Lista utenti | Calendario | Segna forums come letti |
| Tags: errore, joomla, modulo, online, utenti |
![]() |
| | LinkBack | Strumenti discussione | Modalità visualizzazione |
| | #1 |
| Utente Major ![]() Data registrazione: 19-03-2008
Messaggi: 52
![]() | Modulo Joomla utenti online ed errore ora invece mi appare la scritta:guest_array Ho già provato a disinstallare e reinstallare il modulo suddetto, ma l'errore rimane. Come correggo questo errore? Aspetto notizie.Grazie |
| | |
| Sponsored Links |
| |
| | #2 |
| Admin 1,618034 ![]() | Riferimento: Modulo Joomla utenti online ed errore
Ti riferisci al modulo di base di Joomla, Chi è online? O ad altri?
__________________ |
| | |
| | #3 |
| Utente Major ![]() Data registrazione: 19-03-2008
Messaggi: 52
![]() | Riferimento: Modulo Joomla utenti online ed errore
Si, mi riferisco al modulo di base di Joomla utenti online.Non mi funziona purtroppo. |
| | |
| | #4 |
| Utente Major ![]() Data registrazione: 19-03-2008
Messaggi: 52
![]() | Riferimento: Modulo Joomla utenti online ed errore
Come lo risolvo questo problema della voce utenti online di joomla che mi da come voce: guest_array? Io ho aggiornato da Joomla 1.0.8 a joomla 1.0.13b, ma poi erroneamente invece di mettere l'aggiornamento 1.0.13b a 1.0.15, ho messo la 1.0.13 a 1.0.15. Comunque adesso ho l'aggiornamento 1.0.15. Che dici, ripasso sopra direttamente l'aggiornamento 1.0.15 e vediamo se si sistema? ma prima mi devo salvare il backup dei file e del database Sql? |
| | |
| | #5 |
| Utente Major ![]() Data registrazione: 19-03-2008
Messaggi: 52
![]() | Riferimento: Modulo Joomla utenti online ed errore
Jarod, sai come far apparire per il suddetto modulo, la scritta ospiti, al posto di guest? |
| | |
| | #6 |
| Admin 1,618034 ![]() | Riferimento: Modulo Joomla utenti online ed errore
Dovresti andare a vedere nei files di Joomla, nella cartella modules; cercare il modulo degli utenti online, e trovare nei file xml o php la parte da modificare ![]()
__________________ |
| | |
| | #7 |
| Utente Major ![]() Data registrazione: 19-03-2008
Messaggi: 52
![]() | Riferimento: Modulo Joomla utenti online ed errore
Questo è il file mod_whosonline .php, mi indichi cosa modificare per sostituire la scritta guest con quella di ospiti? <?php /** * @version $Id: mod_whosonline.php 2728 2006-03-09 14:01:19Z stingrey $ * @package Joomla * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license [Solo gli utenti registrati possono visualizzare tutti i links] 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( '_VALID_MOS' ) or die( 'Restricted access' ); $showmode = $params->get( 'showmode', 0 ); $output = ''; // show online count if ($showmode==0 || $showmode==2) { $query = "SELECT guest, usertype" . "\n FROM #__session" ; $database->setQuery( $query ); $sessions = $database->loadObjectList(); // calculate number of guests and members $user_array = 0; $guest_array = 0; foreach( $sessions as $session ) { // if guest increase guest count by 1 if ( $session->guest == 1 && !$session->usertype ) { $guest_array++; } // if member increase member count by 1 if ( $session->guest == 0 ) { $user_array++; } } // check if any guest or member is on the site if ($guest_array != 0 || $user_array != 0) { $output .= _WE_HAVE; // guest count handling if ($guest_array == 1) { // 1 guest only $output .= sprintf( _GUEST_COUNT, $guest_array ); } else if ($guest_array > 1) { // more than 1 guest $output .= sprintf( _GUESTS_COUNT, $guest_array ); } // if there are guests and members online if ($guest_array != 0 && $user_array != 0) { $output .= _AND; } // member count handling if ($user_array == 1) { // 1 member only $output .= sprintf( _MEMBER_COUNT, $user_array ); } else if ($user_array > 1) { // more than 1 member $output .= sprintf( _MEMBERS_COUNT, $user_array ); } $output .= _ONLINE; } } // show online member names if ($showmode > 0) { $query = "SELECT DISTINCT a.username" ."\n FROM #__session AS a" ."\n WHERE a.guest = 0" ; $database->setQuery($query); $rows = $database->loadObjectList(); if ( count( $rows ) ) { // output $output .= '<ul>'; foreach($rows as $row) { $output .= '<li>'; $output .= '<strong>'; $output .= $row->username; $output .= '</strong>'; $output .= '</li>'; } $output .= '</ul>'; } } echo $output; ?> Aspetto notizie.Grazie |
| | |
![]() |
| Strumenti discussione | |
| Modalità visualizzazione | |
| |