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?

Force a user to register or login

More
4 years 9 months ago #6593 by hberger
Force a user to register or login was created by hberger
Hello, I have a form, that is only accessable for registered users. So if a not registered (or logged) in user wants to access the form, I get the message: "You are not permitted to view this content." Is it possible to change this to something like "You have to be logged in to access this content." in connection with to links like: "Login" and "Register"?

Thank you for your help!

More
4 years 8 months ago - 4 years 8 months ago #6598 by Administrator AV
Replied by Administrator AV on topic Force a user to register or login
Hi,

I'm sorry, that I was not able to answer your request sooner.

At the moment I have no idea how to do this easily. visForms uses the Joomla! default language tag JERROR_ALERTNOAUTHOR in order to show this text. So if you would use the language manager to change the text (which would basically be possible) this would change the text not only in visForms but all over your website. So this might not be the result which you would like.

Sadly I have no better knews for you.

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: 4 years 8 months ago by Administrator AV.

More
4 years 8 months ago #6608 by georg_pelz
Replied by georg_pelz on topic Force a user to register or login
Hi, you will find the file to change this error message in your Joomla main directory » language » en-GB.ini. You can open the File using a editor and in line 129 (Joomla V.3.9.15) is the code you need to update:

JERROR_ALERTNOAUTHOR="You are not authorised to view this resource."

simply update this line, but like Aicha allready sayed, it will change as well the standard joomla error message for this. Anyway, if you change it to your suggested phrase "You have to be logged in to access this content." it should be not a problem, because everybody will understand this as well.

More
4 years 8 months ago #6613 by hberger
Replied by hberger on topic Force a user to register or login
Thank you!

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum