Hallo lieber Forum,
ich habe bei mir zwei Extensions installiert, alles läuft prima.
Doch der User kann zwei Avatars hochladen
eins für den Forum und eins für die community
ich habe in class.tx_cwtcommunity_pi1 und in class.tx_mmforum_pi1 die stellen gefunden, die zum pfad des Bildes führen, doch ich wusste nicht genau was ich da ändern soll:
class.tx_mmforum_pi1: Zeile ca.4430
class.tx_cwtcommunity_pi1: Zeile ca. 103PHP-Code:function getUserAvatar($userData) {
$avatarImg = trim($userData['tx_mmforum_avatar']);
$feuserImg = trim($userData['image']);
$imgConf = $this->conf['list_posts.']['userinfo.']['avatar_cObj.'];
$img = '';
if ($avatarImg || $feuserImg) {
if ($avatarImg) {
$imgConf['file'] = $this->conf['path_avatar'] . $avatarImg;
} else {
// only take the first image, if there are multiple ones
if (strpos($feuserImg, ',') !== false) {
list($feuserImg) = t3lib_div::trimExplode(',', $feuserImg);
}
if (file_exists('uploads/pics/' . $feuserImg)) {
$imgConf['file'] = 'uuploads/tx_srfeuserregister/' . $feuserImg;
} else if (file_exists('uploads/tx_srfeuserregister/' . $feuserImg)) {
$imgConf['file'] = 'uploads/tx_srfeuserregister/' . $feuserImg;
}
}
$img = $this->cObj->cObjGetSingle($this->conf['list_posts.']['userinfo.']['avatar_cObj'], $imgConf);
}
return $img;
}
Der Pfad ist in beidem gleich,PHP-Code:// Upload directory for fe_users' images
private $sysfolderList = null;
private $uploadDir = "uploads/tx_srfeuserregister/";
könnte bitte jemand behilflich sein?
Danke, sehr
mfg
Aydin-G
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen