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.

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

Site url added to email receipt

More
8 years 9 months ago #2605 by mikepritchard
Site url added to email receipt was created by 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?

More
8 years 9 months ago #2607 by mikepritchard
Replied by mikepritchard on topic 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.

More
8 years 8 months ago #2610 by Administrator AV
Replied by Administrator AV on topic 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 :-).

More
8 years 8 months ago - 8 years 8 months ago #2613 by mikepritchard
Replied by mikepritchard on topic Site url added to email receipt
Thank you Aicha!
That worked perfectly!
Thanks so much,
Mike
Last edit: 8 years 8 months ago by mikepritchard.

More
8 years 8 months ago #2615 by Administrator AV
Replied by Administrator AV on topic 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 :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum