I want to know how to create a trigger (without modifying the CB core) to redirect a user when they see
_UE_REGISTERFORPROFILE ..
Specifically a user who isn't logged and happens to visit the index.php?option=com_comprofiler URL
and sees "Please login or register to view or modify your profile"
Instead redirect to the login page.
I know how to write the code, I just don't want to edit the CB core.
Can't suggest editing the core, but you could make a Joomla system plugin that checks the URL the user is at and if is at a access denied page you could perform the redirect. Otherwise you'll need to review comprofiler.php and search for locations that the error message is presented.
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.
This only will work with 1.2.3, so this code is not Upgrade-proof. The URLs for login / registration can change... Please tell me if there is anything I can besides this. Thanks.