Joomla 5 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 29. Januar 2024 alle unsere Joomla Erweiterungen mit Joomla 5 kompatible sind.

Für alle die gerade noch von Joomla 3 auf 4 aktualisieren: Anleitungen für die Joomla 4 Migration gibt es hier:

Es gibt nun auch eine eigenständige Dokumentation für Visforms für Joomla 4 und für Visforms auf Joomla 5

Forum

Visforms Subscription Inhaber können in unserem Forum Fragen stellen. Bitte mit dem entsprechenden Benutzer anmelden.
Jeder kann lesend auf das Forum zugreifen.

Bitte stellen Sie nur 1 Frage pro Thema.

Access to logged on user's data

Mehr
8 Jahre 6 Monate her #2165 von robinhair
robinhair antwortete auf Access to logged on user's data
Hi Aicha,

Fantastic, thank you so much, it worked just like the Name and Username. Here is the code I added in text.php
Code:
jimport( 'joomla.user.helper' ); $user = JFactory::getUser(); $userId = $user->get('id'); $userProfile = JUserHelper::getProfile( $userId ); if($userId != 0) { if($field->fillwith == 1) { $this->field->attribute_value = $user->get('name'); return; } if($field->fillwith == 2) { $this->field->attribute_value = $user->get('username'); return; } if($field->fillwith == 3) { $this->field->attribute_value = $userProfile->profile['address1']; return; } }

Your happy user :)
Robin

Mehr
8 Jahre 6 Monate her #2168 von Administrator AV
Administrator AV antwortete auf Access to logged on user's data
Hi Robin,

you're welcome.
Thanks for letting me know, that it works.
This makes it easier for me to add the feature to Visforms (which I think I will can do for the next release).

Kind Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).
Folgende Benutzer bedankten sich: robinhair

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum