Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

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.

Datenausgabe Frontend zeitgesteuert

More
4 years 3 months ago #6501 by Mapache65
Datenausgabe Frontend zeitgesteuert was created by Mapache65
Hallo,

ich habe ein etwas spezielles Problem.

Ich habe drei Formulare. Deren Ergebnis soll im Frontend je nach Uhrzeit ausgegeben werden, also Vormittags wird das Ergebnis aus Tabelle MORGENS eingeblendet, Nachmittags aus Tabelle NACHMITTAGS.

Ich hab das nun mal ganz einfach so versucht:
Code:
<?php if (date('H') >= 9 && date('H') <= 12) {echo=" <p>{vfdataview}{"formid":"2","fieldlist":"14,15,16","display_num":"15"}{/vfdataview}</p>"; ?>
Da aber die Platzhalter wohl schon PHP mitbringen, klappt das nicht.

Gibt es da eine Lösung?

Oder hat jemand eine Idee wie ich drei Joomla-Artikel uhrzeitgesteuert ausgeben könnte? Dann pack ich jede Formularausgabe in einen anderen Artikel....

Oder eine ganz andere Idee?

Viele Grüße
Mapache

More
4 years 3 months ago #6503 by Administrator AV
Replied by Administrator AV on topic Datenausgabe Frontend zeitgesteuert
Hallo,
Joomla verhindert von sich aus, dass man irgendwo in einem Beitrag einfach so php-Code einfügen kann. Das hat natürlich etwas mit Sicherheit zu tun.
Evtl. könnte dir dieses Joomla! Plugin helfen?
extensions.joomla.org/extension/directphp/
Und dann musst du natürlich auch noch korrekten php-Code schreiben (echo=" gibt es in php nicht, und du musst mit einfachen und doppelten Anführungszeichen aufpassen. Der Text im echo müsste mit einfachen Anführungszeichen umschlossen werden ('), da der Pluginstring ja schon mit doppelten Anführungszeichen arbeitete....
Gruß,
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 :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum