Hi,

ich würde gerne bei mir das Modul "Last USers" nutzen, leider zeigt es nicht den Benutzernamen, sondern den Realnamen der Mitglieder an, ich suche mich schon tot, aber ich finde dat nicht wo ich das ändern kann ( bin auch nicht so fit in php )

Kann mir mal eben einer verraten, welche Variable da gegen welche getauscht werden muss hier der code:

PHP-Code:
   <?php
/**
* @version        $Id: mod_default.php 10381 2009-08-17 03:35:53Z media $
* @package        Joomla
* @copyright    Copyright (C) 2005 - 2009 Open Source Matters. 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');

/**
 * Local Date adjust
 */ 

function getLocalDate($strdate,$format='%Y-%m-%d %H:%M:%S')
   {
        
$conf =& JFactory::getConfig();
        
jimport('joomla.utilities.date');
        
$jdate = new JDate($strdate'');
        
$formatDate $jdate->toFormat($format);
        return 
$formatDate;
   }
   

global 
$itemid$mainframe;
 
$modImagesURL   JURI::base()."modules".DS."mod_lastvisitor".DS."images".DS;
$stats  "<img src=\"$modImagesURL/stats.png\" alt=\"User Stats\" />";
?>
<b><?  if($showicons == 1){echo $stats ; } echo JText::_('MEMBER STATUS'); ?></b> <?
if ($showmode == || $showmode == 2) :
    if (
$count['guest'] != || $count['user'] != 0) :
        echo 
JText::_('We have') . '&nbsp;';
        if (
$count['guest'] == 1) :
            echo 
JText::sprintf('guest''1');
        else :
            if (
$count['guest'] > 1) :
                echo 
JText::sprintf('guests'$count['guest']);
            endif;
        endif;

        if (
$count['guest'] != && $count['user'] != 0) :
            echo 
'&nbsp;' JText::_('and') . '&nbsp;';
        endif;

        if (
$count['user'] == 1) :
            echo 
JText::sprintf('member''1');
        else :
            if (
$count['user'] > 1) :
                echo 
JText::sprintf('members'$count['user']);
            endif;
        endif;
        echo 
'&nbsp;' JText::_('online');
    endif;
endif;

echo 
"<br>"?>
<b> <? echo JText::_('ONLINE USERS'); ?> </b> <?
if (count($names) > 0){

if((
$showmode 0) && count($names)) : ?>
    
<?php foreach($names as $name) : ?>
<?php 
echo $name->username ?>,&nbsp;
<?php endforeach;  ?>
<?php 
endif;
}else{
echo 
JText::_('NONE USERS');
}
echo 
"<hr>"?>
<b> <? echo "$usercount " JText::_('LAST VISITORS'); ?> </b><hr> <?
$i 
0;
foreach (
$users as $user){
$i +1;
    if(
$user->username == $name->username)
    {
    
$color $onlinecolor 
    }else
    {
    
$color $offlinecolor ;
    }
    if (
$showicons == 1){
        
$stats  "<img src=\"$modImagesURL/stats.png\" alt=\"User Stats\" />";
    if(
$user->gid == 25){
    
$image  "<img src=\"$modImagesURL/admin.png\" alt=\"administrator\" />";
    }else{
    
$image  "<img src=\"$modImagesURL/user.png\" alt=\"Member\" />";
}
}
// 2.0.4 Beta added : 23.08.2009 
if ($profilelink == 0){
    
$url NULL ;
}    
if (
$profilelink == 1){
    
$url '<a href=' JURI::base() . 
    
"index.php?option=com_comprofiler&task=userProfile&user=$user->id>";
}
if (
$profilelink == 2){
    
$url '<a href=' JURI::base() . 
    
"index.php?option=com_kunena&func=fbprofile&Itemid=$Itemid&userid=$user->id>";
}
    echo  
"$image $url <font size=\"$fontsize\" color=\"$color\"> $user->name </font></a>&nbsp;  <br>";


// 2.0.4 added :  2009-09-02 16:23:57
$lastvisitDate $user->lastvisitDate
list(
$year$month$day$hour$minute$second) = split('[- :]'$lastvisitDate);
$hour $hour $timeadjustment 
    echo 
"$year-$month-$day&nbsp;$hour:$minute:$second <br>" ;
// 2.0.4 added : 02.09.2009    
    
if($i >= $usercount){
        break;
    }
}
ach und wenn wir schon dabei sind, die anzeige von Zeit und datum kann auch verschwinden ... ich schätze mal, das ich da dadurch erreiche wenn ich die zeilen nach ://2.0.4added 2009-09-02 ..... entferne ... richtig ?

vielen dank für eure hilfe, so denn sich ein experte bereit erklärt zu helfen ....

Robin

edith: sehe ich das richtig, das es reicht einfach "$name" durch "$username" zu ersetzen ?

ohhh mist ... falsche kategorie ... .sorry ....