Joomla 6 Notice

We are pleased to announce that all our Joomla extensions have been compatible with Joomla 6 since October 14th, 2025.

For those currently upgrading from Joomla 3 to 4: Instructions for Joomla 4 migration can be found here:

There are standalone documentations Visforms Joomla 4, Visforms Joomla 5 and Visforms Joomla 6.

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Edit-Mail: gleicher context wie bei onVisformsEmailPrepare?

More
5 years 7 months ago - 5 years 7 months ago #7026 by MaliRaj
Hallo Aicha, ich dreh mich grad mal wieder im Kreis und finde die Lösung nicht:
Das Event onVisformsEditMailPrepare mit ($context, $mailer, $form) arbeitet meinen Code nicht ab. Soll eigentlich beim Versenden einer Edit-Ergebnismail aufgerufen werden.(Ich will da 'modified_by' mit übermitteln). Scheint so, als ob die Stelle gar nicht durchlaufen wird. Stimmt meine Annahme, dass der Context der gleiche ist wie bei der FormMail? Ich habe das von dort übernommen:
Code:
public function onVisformsEditMailPrepare($context, $mailer, $form) { // Skip plugin if context is wrong $allowedContexts = array('com_visforms.form.receiptmail', 'com_visforms.form.resultmail'); if (!in_array($context, $allowedContexts)) { return true; } $app = JFactory::getApplication(); if ($app->isAdmin()) { return true; } // myCode Anfang $form_id = $form->id; // SubmitHandler aufrufen wenn eine entsprechende Datei existiert // // myCode Ende return true; }

Passt das Event und der context überhaupt?:S

Nachtrag:
Habe ich mir das Event gar "ausgedacht"? So nach dem Motto: das müsste es doch geben.? onVisformsEmailPrepare habe ich jedenfalls schon erfolgreich genutzt. Kann ich dort eventuell zwischen Mail und Edit-Mail unterscheiden?

Freundliche Grüße aus PM
Heinz
(Joomla 5.2.3 / Visforms+Subscription 5.4.1 / PHP 8.2)
Last edit: 5 years 7 months ago by MaliRaj.

More
5 years 7 months ago #7027 by MaliRaj
Der Context vfedit(id) bzw. form(id) dürfte die Lösung sein! Benutze ich ja zur Unterscheidung bei den Events zeitlich früher (BeforeFormSave und BeforeEditSave) auch.

Freundliche Grüße aus PM
Heinz
(Joomla 5.2.3 / Visforms+Subscription 5.4.1 / PHP 8.2)

More
5 years 7 months ago #7028 by MaliRaj
Es ist die Lösung! :cheer:

Freundliche Grüße aus PM
Heinz
(Joomla 5.2.3 / Visforms+Subscription 5.4.1 / PHP 8.2)

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum