Suche die Funktion "function doGetUserlist($letter)" in class.tx_cwtcommunity_pi1.php
Code -------------------------------------------------------
function doGetUserlist($letter){
//If a default letter is configured, it is selected here
if ($letter == null && $this->conf['defaultUserListLetter']) {
$letter = $this->conf['defaultUserListLetter'];
}
// fetch all by default
if ($letter == null) {
// Fetch users
//Neue DB Felder für Listanzeige hinzugefügt static_info_country, image
$users = $this -> doDatabaseQuery("SELECT uid, username, name, city, country, www, lastlogin, crdate, static_info_country, image FROM fe_users WHERE pid = ".$this->sysfolderList." AND NOT deleted=1 AND NOT disable=1 ORDER BY username ASC");
}
else{
// Fetch users
// Neue DB Felder für Listanzeige hinzugefügt static_info_country, image
$users = $this -> doDatabaseQuery("SELECT uid, username, name, city, country, www, lastlogin, crdate, static_info_country, image FROM fe_users WHERE pid = ".$this->sysfolderList." AND (username LIKE '" . $letter . "%' OR username LIKE '" . strtoupper($letter) . "%') AND NOT deleted=1 AND NOT disable=1 ORDER BY username ASC");
}
// Return
return $users;
}
Code End -------------------------------------------------------
SELECT, oben bold markiert, erweitern. Ich habe "static_info_country" und "image" benötigt. Daher diese hinzugefügt. Du musst dann tx_cwtcommunityuser_image einfügen.
Dann kannst du innerhalb der Funktion "function getViewUserlist($users)" direkt nach dem:
$markerArray = array();
folgenden Code einfügen:
Code ----------------------------------------------------------
$pathToImage = "uploads/tx_cwtcommunity/".$users[$i]['tx_cwtcommunityuser_image'];
$lConf = $this->conf['imagePopup.'];
$lConf['alttext']= "";
$markerArray["###LIST_IMAGE###"] = $cObj -> cImage($pathToImage, $lConf);
Code End -----------------------------------------------------
Den Marker ###LIST_IMAGE### in HTML-Template noch setzen und sich freuen.