Use Joomla Login Action OnLoad to redirect if no username

dj59 12 Jan, 2013
XAMPP
MySQL version: 5.1.41
localhost apache 2.2
Using Joomla 2.5.8

Hi All,

I have an input form created.
I don't want the user to see the form unless they are signed in.
In my form action onLoad area I put the "joomla login" action, however when I try to click the menu item to go to the form without having logged in; I see the form along with errors.
The errors are:
Empty password not allowed
Invalid username and password

My Desire is:
1. See a message that says "you must be logged in to register"
AND/OR
2.Redirect back to login page (joomla login page)
3. Do NOT show the page

Thanks for any advice
GreyHead 13 Jan, 2013
HI dj59,

In ChronoForms, add an Authenticator action to the start of the on Load event. Set it to block guests. In the On Fail action add a ReDirect User action to redirect them to the site login or registration page.

The Joomla! Login action is for forms that log Users in, not for checking if they are already logged in.

Bob
dj59 14 Jan, 2013
I'm sorry, I still can not get this working properly. I would upload a snapshot, but I don't see how to do that. The Events are as follows and for Authenticator, the configuration is set to NO for allow guests.

On Load
Authenticator (10)
Allowed
Denied

Show html (0)

Load Captcha (1)

On Submit
Auto JavaScript Validation (2)

Check Captcha (3)
OnSuccess
OnFail

DB Save (4)

Redirect User (5)
thanks.
GreyHead 14 Jan, 2013
Hi dj59,

You need the Redirect action in the 'Denied' event of the Authenticator action - otherwise it does nothing.

Use the Upload Attachment link under the pose editor to attach an image.

Bob
dj59 14 Jan, 2013
....shakin' my head....I'm a fool...I did not realize you could drop it INTO the DENIED section!
Ha...Thanks for all the help. It's working now.
This topic is locked and no more replies can be posted.