Hide form after joomla login

SkiLL 20 Oct, 2012
Hi guys,

i have a simple joomla login form created with ChronoForm 4.0 RC3.5.1. After log-in and redirect page, the initial form remain in same page! 😑

How i can hide it?

These are my events...

Thanks😉
GreyHead 20 Oct, 2012
Hi SkiLL,

I assume that this is in a module? What would you like to show in it's place if the user is logged in?

Bob
SkiLL 20 Oct, 2012
My joomla login form is in a page that allows access to the another page where is located a login menu that is in a module. My problem is that in the new page the form doesn't disappears. I would to hide username and password camp, it's possible?

Thanks😉
GreyHead 21 Oct, 2012
Hi SkiLL,

Here's one way of doing this.

Get my Event Switcher [GH] action and drag a copy to the On Load event of your form.

Open it up and add this code:
<?php
$user =& JFactory::getUser();
if ( $user->id > 0 ) {
  return 'event_a';
}
?>
and save it.

Drag a Thank You message action into the Event A box followed by a Show Stopper action.

Add a suitable message to the Thank You message action (or leave the action out if you want the form to disappear completely).

Bob
SkiLL 21 Oct, 2012
Thank you so much Bob! :wink:

like this, works GREATLY! 😀
GreyHead 22 Oct, 2012
Hi SkiLL,

Great glad to hear it.

For other readers: the Event Switcher {GH] gives the most general solution as you can check for almost anything. For this particular case you could also use the Authenticator action from the Security Group, which check for the User's Groups; or the Watchman [GH] action from my site which checks for the user's groups and also dates and times.

Bob
This topic is locked and no more replies can be posted.