Skip to Content Skip to Menu

[SOLVED] adding login to this page

  • ellare
  • ellare
  • OFFLINE
  • Posts: 89
  • Thanks: 4
  • Karma: 2
13 years 5 months ago - 13 years 4 months ago #164054 by ellare
[SOLVED] adding login to this page was created by ellare
98% of my site content is protected with CBSubs...

So when a user tries to access pages that are protected like viewing user's profiles - they get the "you must be logged in to view users profiles"

How do I add a login module/registration to this page?

mybeveragediary.com/index.php?option=com_comprofiler&task=userprofile&user=71&Itemid=104

I'd like this page to appear instead when a user is rejected from viewing user's profiles:
mybeveragediary.com/index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=accessdenied&Itemid=104&accesstype=components&accessvalue=com_mtree&accessurl=b3B0aW9uPWNvbV9tdHJlZSZJdGVtaWQ9MTEz

How do I make that happen?

thanks
LrG


also:

would like to be able to go strait to login/register when going user is not signed on/reigstered and clicks on
My Account > My Profile

which currently is on my site at this page:http://mybeveragediary.com/index.php?option=com_comprofiler&Itemid=110

or when they go to My Account > Edit My Profile
mybeveragediary.com/index.php?option=com_comprofiler&task=userdetails&Itemid=111

and perhaps after user registers and gets the "you may now log in page"
Last edit: 13 years 4 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48438
  • Thanks: 8275
  • Karma: 1443
13 years 5 months ago - 13 years 5 months ago #164142 by krileon
Replied by krileon on topic Re: adding login to this page

So when a user tries to access pages that are protected like viewing user's profiles - they get the "you must be logged in to view users profiles"

Requiring registration to view user profile is not CBSubs, but a feature of CB. You can change this within CB configuration on the user profile tab.

How do I add a login module/registration to this page?

Best approach is to have a login module present somewhere on your site on all pages. Alternative review what Itemid is appended to that URL and match it with a menu module then place a module on that menu.

How do I make that happen?

Unfortunately you can't, not even with CB Redirect as no trigger is fired before the access validation. If you set profiles to be publicly accessible then used CB Redirect on the trigger onBeforeUserProfileRequest, user as "User", access as Everybody, conditional as username Equal To (blank), then the redirect URL of choice should send non-registered users to wherever you like. It may need some trial and error, but is doable.


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.
Last edit: 13 years 5 months ago by krileon.

Please Log in or Create an account to join the conversation.

13 years 4 months ago - 13 years 4 months ago #165028 by deltafidesign
Replied by deltafidesign on topic Re: adding login to this page
Worked for me!
Last edit: 13 years 4 months ago by deltafidesign.

Please Log in or Create an account to join the conversation.

12 years 8 months ago #190152 by deltafidesign
Replied by deltafidesign on topic Re: adding login to this page
I'm trying to do the same with CB autoction plugin but it doesn't work. Something changed?

Please Log in or Create an account to join the conversation.

12 years 8 months ago #190796 by deltafidesign
Replied by deltafidesign on topic Re: adding login to this page
Up

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum