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?

Logged in users only

More
10 years 2 months ago - 10 years 2 months ago #825 by themeindia.org
Replied by themeindia.org on topic Logged in users only
Thank you Aicha for the details,

Made the changes. now concerned portion of default.php looks like this ...
Code:
var validator = jQuery(document).ready(function() { jQuery('#visform<?php echo $this->visforms->id; ?>').validate({ submitHandler: function(form) { <?php if (JFactory::getUser()->guest) { ?> alert('Please login in submit the form); <?php } else { ?> form.submit(); <?php } ?> }, wrapper: "p",

But for some unknown reason it appears that there is no change in behavior of submit button. It works just as beofre as if no changes has been made in the code.

Workarounds ...
1. Created a folder html/mod_visforms/ in my root template folder and copied default.php from modules/mod_visforms/tmpl in it. Changed the code as described in your last message.
2. Put the form on test on my live site. When it did not work as intended, additionally, made the following changes...
3. Created a folder html/com_visforms/visforms in my root template folder and copied default.php from components/com_visforms/views/visforms/tmpl in it. Changed the code as described in your last message. It did not work either.

What am I doing wrong here ?

Here is the said form on my site. You can check if you wish.

Thank you again

themeindia.org: A not-for-profit online community.
Last edit: 10 years 2 months ago by themeindia.org.

More
10 years 2 months ago - 10 years 2 months ago #826 by Administrator AV
Replied by Administrator AV on topic Logged in users only
Hi,

you missed a closing ' in the alert. (actually I already missed it in the code I posted here, sorry).
wrong:
Code:
alert('Please login in submit the form);
correct:
Code:
alert('Please login in submit the form');

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 :-).
Last edit: 10 years 2 months ago by Administrator AV.
The following user(s) said Thank You: themeindia.org

More
10 years 2 months ago - 10 years 2 months ago #828 by themeindia.org
Replied by themeindia.org on topic Logged in users only
Aicha,

Thank you very much. Now, the form works like a charm. Exactly as we wanted at the moment.

We have a faint hope that you will make this an optional feature in next version of VisForm along with other features such as Dynamic Dropdown List. Just can't think of allowing users to upload files without being logged in.

We, all the members of themeindia.org appreciate your help and time. You and your extension have helped us enriching our website. Your forum support is more than a paid service.

God bless
themeindia.org community.

themeindia.org: A not-for-profit online community.
Last edit: 10 years 2 months ago by themeindia.org.

More
10 years 2 months ago #829 by Administrator AV
Replied by Administrator AV on topic Logged in users only
Hi,

thank you so much for these encouraging words!

I think that the Dynamic Dropdown List will become part of Visforms, there is only the question about when.

About the submit buttons that only works for logged in users (or at least the way it is implemented now) I'm not that sure but even if it does not become a core feature of Visforms the structure will remain the same and it is very easy to copy the default.php (that comes with an update) into the template again and add the changes you've made. I think figuring out the solution was the more difficult task.

And maybe I can device a solution that allow to create such features more generically (so that other people can adapt the process to there requirements as well).

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

More
10 years 2 months ago #839 by themeindia.org
Replied by themeindia.org on topic Logged in users only

And maybe I can device a solution that allow to create such features more generically (so that other people can adapt the process to there requirements as well).


That's a wonderful idea. Thank you.

themeindia.org: A not-for-profit online community.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum