Zum Inhalt springen

Vistenkarten - System

Erstellt am 28. November 2005 · 23 Antworten · letzte Antwort am 1. Dezember 2005 · Seite 1 von 2

Tags: Frontend-Benutzer, Frage

just2b ·

Hallo,

naja man muss manchmal etwas weiter denken 😉

Ext cwt_community: This extension provides a wide range of community features for frontend users. It mainly consists of the following parts: Userlist, Profile, Profile Administration, Guestbook, Messages, Buddylist, Backend User Administration.

lg georg

Sohn der Sonne ·

Also, ich hab jetzt dieses plugin installiert. Und ich habe alles gemacht was da in der Anleitung stand.

Wenn ich die PID öffne (also auf Seite index.php?id="Userlist" usw.) gehe sagt er mir nur "Bitte einloggen". Einen Login habe ich bisher nicht, wie mache ich einen? Und wie legt man einen User an?

Sohn der Sonne ·

Es fehlt ein "i" im titel, kann das ein Mod editieren?

Ich hab das Plugin soweit drin, die Userlist funzt leider noch nicht.

Ich müsste danach nur noch die Felder etwas um ändern. Weiß jemand wie das geht?

Sohn der Sonne ·

Mein derzeitiges Problem:

Ich hab das Layout der Vistenkarte in dem Profiltemplate geändert. Aber wenn ich die Userlist anpassen will, benutzt er nicht alle Marker. Ich will ja das die VCards untereinander gezeigrt werden, eine Liste, und wollte dazu die Userlist "mißbrauchen" ... aber er zeigt dann nur die Hälfte der Marker ...

just2b ·
Sohn der Sonne schrieb

... aber er zeigt dann nur die Hälfte der Marker ...

naja sind zuerst alle Marker ersetzt worden? Wenn ja, dann hast du sie zuviel im Template verschoben - auch das Template braucht - insb bei wiederkehrenden Elementen - eine gewisse Struktur, die man dann nur im php-Code anpassen kann

lg georg

Sohn der Sonne ·

Nee, die wurden von Anfang an nicht ersetzt. Ich verusche grade in der PHP Datei (sollte die /p1/.#class.tx_cwtcommunity_pi1.php.1.1 sein hoffe ich) das Marker Array um das der "My Profile" zu erweitern.

just2b ·
Sohn der Sonne schrieb

Hat geklappt. 🙂

Hänge jetzt daran neue Felder hinzuzufügen.

tca.php erweitern, locallang entsprechend erweitern, gegebenfalls flexforms erweitern, .sql erweitern, fertig

Sohn der Sonne ·

Unten sieht man was ich änderte.

Datei: p1/class.tx_cwtcommunity_pi1.php

elseif ($CODE == "PROFILE_EDIT"){
				//Get the TCA from fe_users
				//START CONFIG FOR FEEDIT
				$table = "fe_users";
                //Create Item array
                $items['username']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_USERNAME_LABEL'));
                $items['username']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_USERNAME_HELPTEXT'));
                $items['username']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_USERNAME_ERRMSG'));
                $items['username']['type'] = "preview";
                $items['name']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_NAME_LABEL'));
                $items['name']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_NAME_HELPTEXT'));
                $items['name']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_NAME_ERRMSG'));
                $items['password']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_PWD_LABEL'));
                $items['password']['label_again'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_PWD_LABELAGAIN'));
                $items['password']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_PWD_HELPTEXT'));
                $items['password']['helptext_again'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_PWD_HELPTEXTAGAIN'));
                $items['password']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_PWD_ERRMSG'));
                $items["password"]["type"] = "password";
                $items["password"]["eval"] = "twice";
                $items['address']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_ADDRESS_LABEL'));
                $items['address']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_ADDRESS_HELPTEXT'));
                $items['address']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_ADDRESS_ERRMSG'));
				$items['zip']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_ZIP_LABEL'));
				$items['zip']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_ZIP_HELPTEXT'));
				$items['zip']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_ZIP_ERRMSG'));
				$items['city']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_CITY_LABEL'));
				$items['city']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_CITY_HELPTEXT'));
				$items['city']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_CITY_ERRMSG'));
				$items['country']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_COUNTRY_LABEL'));
				$items['country']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_COUNTRY_HELPTEXT'));
				$items['country']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_COUNTRY_ERRMSG'));
				$items['company']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_COMPANY_LABEL'));
				$items['company']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_COMPANY_HELPTEXT'));
				$items['company']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_COMPANY_ERRMSG'));
                $items['telephone']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_PHONE_LABEL'));
                $items['telephone']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_PHONE_HELPTEXT'));
                $items['telephone']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_PHONE_ERRMSG'));
                $items['fax']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_FAX_LABEL'));
                $items['fax']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_FAX_HELPTEXT'));
                $items['fax']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_FAX_ERRMSG'));
                $items['email']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_EMAIL_LABEL'));
                $items['email']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_EMAIL_HELPTEXT'));
                $items['email']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_EMAIL_ERRMSG'));
                $items["email"]["eval"] = "email";
                $items['www']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_WWW_LABEL'));
                $items['www']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_WWW_HELPTEXT'));
                $items['www']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_WWW_ERRMSG'));
                $items['tx_cwtcommunityuser_image']['label'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_IMAGE_LABEL'));
                $items['tx_cwtcommunityuser_image']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_IMAGE_HELPTEXT'));
                $items['tx_cwtcommunityuser_image']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_IMAGE_ERRMSG'));
				
				//Edit Danny Faak
				//Versuch ein neues Image-Feld hinzuzufügen
				//
				$items['tx_cwtcommunityuser_ppt']['label'] = htmlspecialchars("MOEP");
                $items['tx_cwtcommunityuser_ppt']['helptext'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_IMAGE_HELPTEXT'));
                $items['tx_cwtcommunityuser_ppt']['error_msg'] = htmlspecialchars($this->pi_getLL('CWT_PROFILE_EDIT_IMAGE_ERRMSG'));

				//Ende Imagefeld

In der TCA.php weiß ich nicht was zu tun ist ... #angry#