Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Advice on Guest vs Registered Users

  • rpitera
  • rpitera
  • OFFLINE
  • Posts: 70
  • Thanks: 11
  • Karma: 12
  • Add-ons
11 years 5 months ago - 11 years 5 months ago #227384 by rpitera
I'm creating an educational community site for a district and I want to require registration in order to access files in PhocaDownload. I'm going to input the registered members on the back end (either manually or with CBJuice - there's only 40-45 users). I'd like to have anyone who registers via the register link on the login form be set automatically as Guest users and I don't want them to have any profiles. Is this possible and if so, how?
Last edit: 11 years 5 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227427 by krileon
Replied by krileon on topic Advice on Guest vs Registered Users
No, don't do that. They won't be able to access your site. At minimum they should be Registered. You also can't remove profiles from select users. I suggest enabling moderator approval so you have to approve their registration before they can login if you want screen users.


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 or Create an account to join the conversation.

  • rpitera
  • rpitera
  • OFFLINE
  • Posts: 70
  • Thanks: 11
  • Karma: 12
  • Add-ons
11 years 5 months ago - 11 years 5 months ago #227445 by rpitera
Replied by rpitera on topic Advice on Guest vs Registered Users
Actually, all I had to do was to set the default user level to Guest on the Joomla side and remove the "go to profile on first login" link and this worked quite well so far. Guest users are able to login and access the file resources, but since the lists and menus are limited in scope to registered users only, they cannot see their profiles nor the options to edit them.

Since the actual working group users are all going to be entered manually via the back end, the only ones who need the register link are the guests.
Last edit: 11 years 5 months ago by rpitera.
The following user(s) said Thank You: krileon

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

  • rpitera
  • rpitera
  • OFFLINE
  • Posts: 70
  • Thanks: 11
  • Karma: 12
  • Add-ons
11 years 4 months ago #228571 by rpitera
Replied by rpitera on topic Advice on Guest vs Registered Users
I have another question about this set up if you don't mind. Now that I have the initial setup working and the users are in the proper ACL groups, what I'd like to do is make sure that only the Registered users have profiles and the guests do not.
  1. Can I use the "ban" feature to do this?
  2. What CB Field controls whether a user is banned or not?
  3. Can I use the CB auto actions plugin to automate this or will I have to manually ban a user as a moderator?

Any guidance you give will be greatly appreciated!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #228574 by krileon
Replied by krileon on topic Advice on Guest vs Registered Users

Can I use the "ban" feature to do this?

Probably as it just blocks profile access.

What CB Field controls whether a user is banned or not?

None, it uses internal database columns in the _comprofiler table.

Can I use the CB auto actions plugin to automate this

Yes, you can ban someone using a Query action and the below query.
Code:
UPDATE `#__comprofiler` SET `banned` = 1, `banneddate` = NOW(), `bannedreason` = 'Guests do not have profile access.' WHERE `id` = '[user_id]'


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.
The following user(s) said Thank You: rpitera

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

  • rpitera
  • rpitera
  • OFFLINE
  • Posts: 70
  • Thanks: 11
  • Karma: 12
  • Add-ons
11 years 4 months ago - 11 years 4 months ago #228577 by rpitera
Replied by rpitera on topic Advice on Guest vs Registered Users
OK, I can see it now. Here's how I have the autoaction set up; if you could just verify that I have it done correctly:

Title = Auto Ban
Desc = Set Guest user to be banned on registration
Type = Query
Triggers = onAfterUserRegistration
User = Automatic (not sure what goes here)
Access = All Non-Registered Users
Conditionals = joom_usergroups IS EQUAL TO Guest (didn't use single quotes,not sure if I need to)
Query Action - Your Query above, Mode set to Internal
Last edit: 11 years 4 months ago by rpitera.

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

Moderators: beatnantkrileon
Powered by Kunena Forum