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.

I want to write a function into controller

Mehr
7 Jahre 6 Monate her #3615 von cloudyHuang
I want to write a function into controller wurde erstellt von cloudyHuang
HI,Aicha
I want to customize a function inside the controller,
In the test,I deleted “defined('_JEXEC') or die( 'Restricted access' );”in site/components/com_visforms/controllers/visforms.php,
And I can see the verification code when i enter "http://localhost/index.php/pg?option=com_visforms&task=captcha" in the browser.
So I added the following code to site / components / com_visforms / controllers / visforms.php
public function progress(){
echo "abc";
echo "<script>alert('abc');</script>";
}

Then visit function progress through "http: //localhost/index.php/pg? option = com_visforms & task = progress“
unfortunately,The page only displays the home page(http: //localhost/index.php/pg), without any other output information about "abc"。
Therefore, I would like to ask whether I have done some wrong settings, resulting in inaccessible function progress, how do I access my function progress
Thinks

Mehr
7 Jahre 6 Monate her - 7 Jahre 6 Monate her #3616 von Administrator AV
Administrator AV antwortete auf I want to write a function into controller
Hi,

never ever delete defined('_JEXEC') or die( 'Restricted access' ); in a Joomla! file!!!
It is no good idea to change functions in the controller.
It looks to me, that you have no idea what you are doing, that is why it is not working.
You cannot just echo something in the controller.

Actually I added a possibility display some "work in progress" test in Visforms, which is displayed inside the page where the form was display after the form was submitted until the submit process is complete and the user is redirected to the result page. This is a feature of the latest release of the beta version 3.8.9. I think this is what you are looking for. You can enter a text, or an image (for example an animated image) as "work in progress text".

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 :-).
Letzte Änderung: 7 Jahre 6 Monate her von Administrator AV.

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum