Skip to Content Skip to Menu

[SOLVED] disable user edit

  • kommid
  • kommid
  • OFFLINE
  • Posts: 67
  • Thanks: 12
  • Karma: 0
4 years 2 months ago - 4 years 2 months ago #320599 by kommid
[SOLVED] disable user edit was created by kommid
Hello,
for a simple site, our customer wants to have one user account for all users. The want to distribute some kind of member cards, all with identical user credentials, that give their customers access to some benefits. They don't want to use a .htaccess because this can't be styled and in Joomla itself there seems to be no way to prevent users from changing their passwords or their email address. I'm thinking about something like a demo site setup, that has one user account for all users which they can't edit.
Is this possible with community builder?
Last edit: 4 years 2 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
4 years 2 months ago #320610 by krileon
Replied by krileon on topic disable user edit
So you want to have a single generic account with no profile edit? That should be doable using CB Auto Actions and just redirecting away from profile edit. The below should work.

Global
Triggers: onBeforeUserProfileEditDisplay
Type: Redirect
User: Automatic
Access: Non-Moderators
Action
URL: index.php?option=com_comprofiler
Message:
Code:
Sorry, editing of this account has been disabled.

There isn't really an official means of flat out turning off profile edit, but this should prevent them from reaching profile edit at least.


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: kommid

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

  • kommid
  • kommid
  • OFFLINE
  • Posts: 67
  • Thanks: 12
  • Karma: 0
4 years 2 months ago #320619 by kommid
Replied by kommid on topic disable user edit
Thank you very much, this should do the trick. I did the same for onBeforeNewPassword and onLostPassForm to prevent users from resetting the password of the account too.
Have a great day
Markus
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum