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.

Site url added to email receipt

Mehr
8 Jahre 2 Monate her #2605 von mikepritchard
Site url added to email receipt wurde erstellt von mikepritchard
I sure hope you can help me, I have tried everything I know.

I am using Joomla 3.4.8 and Vis forms 3.6.10
When my email receipt is sent some of the links have the site url in front of them.

For example:
apldwa.org/vis/https://www.google.com/ma...0:0xbccf8265bdcc2660

and
apldwa.org/vis/mailto:email@comcast.net

( apldwa.org/vis is the site I am testing on)
but some are right:
www.vectorworks.net/

I have disabled all the editors and changed the link many times but nothing is fixing this.

Can you help?

Mehr
8 Jahre 2 Monate her #2607 von mikepritchard
mikepritchard antwortete auf Site url added to email receipt
Here is a list of things I tried:
It is not:
the editors
the Email Cloaking plugin
the php version
the Vis version
adding code to the link will not help.
Turning off all the settings in Vis for the form will not work.
Turning off all sef settings will not work.
Disabling the htaccess will not work.

Mehr
8 Jahre 2 Monate her #2610 von Administrator AV
Administrator AV antwortete auf Site url added to email receipt
Hi,

I'm sorry for your trouble!

Is it correct, that you use this links in the result or receipt mail text?
Then this is a problem that comes directly from Visforms.
As you can add article links to the text using the editor button "article" this will add an internal link to the text, which would not work if you send it with the mail without further processing (adding the site url).
This is, why I have a function that "fixesLinksInMails". In this function I try to figure which links are internal and have to be processed and which are not. This is done with a regular expression.

Obviously this regular expression(s) is not perfect.
First I did not anticipate, that a link in the mail text could be an email link (that is why the email link is preprocessed).
Second the SEF Google Link has special characters which causes the regular expression to return false (=internal url)
I think I have to improve this regular expression.
To fix your problem please make the following changes to the Visforms core, which I will include in the next release as well.
Open the file
Code:
administrator\components\com_visforms\helpers\html\visforms.php
Find the function fixLinksinMail
Replace the following code line
Code:
$urlPattern = '/^(http|https|ftp)\:\/\/[a-z0-9\-\.]+\.[a-z]{2,3}(:[a-z0-9]*)?\/?([a-z0-9\-\._\?\,\'\/\\\+&%\$#\=~])*$/i';
with
Code:
$urlPattern = '/^(http|https|ftp|mailto)\:.*$/i';

Let me know, if this fixes the problem.

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 :-).

Mehr
8 Jahre 2 Monate her - 8 Jahre 2 Monate her #2613 von mikepritchard
mikepritchard antwortete auf Site url added to email receipt
Thank you Aicha!
That worked perfectly!
Thanks so much,
Mike
Letzte Änderung: 8 Jahre 2 Monate her von mikepritchard.

Mehr
8 Jahre 2 Monate her #2615 von Administrator AV
Administrator AV antwortete auf Site url added to email receipt
Hi,

I'm glad to hear that this worked.
Thanks and 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 :-).

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum