Hide registration form for logged users

12 years 11 months ago #163931 by superstega
Hide registration form for logged users was created by superstega
Hi, my first item (homepage) in main_menu is the CB registration form (index.php?option=com_comprofiler&task=registers), how can i hide it for logged users?
Now all logged users can see the error message that they are logged too

<div class="error">Sei già identificato nel sito</div>

i use CB 1.4 on joomla 1.6.3.

For logged users i would like to show the edit profile page.

Thanks

Stefano

Please Log in to join the conversation.

12 years 11 months ago #163943 by krileon
Replied by krileon on topic Re: Hide registration form for logged users
I recommend using incubator project CB Redirect. Using the trigger onBeforeRegisterFormDisplay with access set to All Registered Users and URL of index.php?option=com_comprofiler&task=userDetails. This should result in redirecting the user back to profile edit if they're a registered user trying to access registration page.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

12 years 11 months ago #163971 by superstega
Replied by superstega on topic Re: Hide registration form for logged users
Thanks,
it works only for onAfterLogin events.
I've created the redirect item and assign it onBeforeRegisterFormDisplay,onAfterLogin events.
The registration page is the homepage and here, if users are logged, the form does not appear.
Which other events can i try?

thanks a lot 4 your support :)

Please Log in to join the conversation.

12 years 11 months ago #164007 by krileon
Replied by krileon on topic Re: Hide registration form for logged users
Please see tutorials within my signature followed by "Event triggers". Provided is a list of all known CB triggers. There are a few regarding the registration page. Reviewing source it would seam that no trigger has time to execute before the already logged in error is displayed. Perhaps is best to simply redirect the user upon login? This can be done from CBs Login module parameters by specifying a login redirect URL or using CB Triggers.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.196 seconds

Facebook Twitter LinkedIn