Skip to Content Skip to Menu

Joomla user plugin

  • Astrid
  • Astrid
  • OFFLINE
  • Posts: 183
  • Thanks: 68
  • Karma: 10
6 months 20 hours ago #338349 by Astrid
Joomla user plugin was created by Astrid
I have a component (Automsg) that sends article update emails to registered users. When disabling Community Builder and using default Joomla user edit form, users can decide if they want to receive these emails.
But when using CB I can't display this tab (backend) or fieldset (frontend).
Is there a possibility to show this in CB profile edit as well or should this be done with a special plugin?
 
Code:
<fieldset>                                                                 <legend>                             Email on new published articles                        </legend>                                                                                                         <div class="control-group">             <div class="control-label"><label id="jform_profile_automsg_automsg-lbl" for="jform_profile_automsg_automsg">     Receive emails</label> </div>         <div class="controls">         <fieldset id="jform_profile_automsg_automsg">     <legend class="visually-hidden">         Receive emails    </legend>     <div class="btn-group btn-group-yesno radio">                                                                     <input class="btn-check" type="radio" id="jform_profile_automsg_automsg0" name="jform[profile_automsg][automsg]" value="Oui" checked="checked">                 <label for="jform_profile_automsg_automsg0" class="btn btn-outline-secondary">                     Yes                </label>                                                                                 <input class="btn-check" type="radio" id="jform_profile_automsg_automsg1" name="jform[profile_automsg][automsg]" value="Non">                 <label for="jform_profile_automsg_automsg1" class="btn btn-outline-secondary">                     No                </label>                         </div> </fieldset>                     <div id="jform_profile_automsg_automsg-desc" class="">                 <small class="form-text">                     Receive emails on new published articles                </small>             </div>             </div> </div>                                     </fieldset>

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48603
  • Thanks: 8300
  • Karma: 1445
6 months 19 hours ago #338351 by krileon
Replied by krileon on topic Joomla user plugin
It would depend on how that field is being added to Joomla user edit. If it's just a fieldtype plugin then you can use a custom Joomla user component field then in CB create a field of the the type Joomla, which allows using Joomla user component fields in CB. If it's injected directly into the Joomla user form then only way to do that would be with some additional custom coding work.

Depending on where that field is stored will then impact any custom coding work. So for example if it's stored in Joomla's user profile table _user_profiles you can typically create a CB field to represent the field then push its value to _user_profiles using CB Auto Actions.


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.

  • Astrid
  • Astrid
  • OFFLINE
  • Posts: 183
  • Thanks: 68
  • Karma: 10
6 months 2 hours ago - 6 months 2 hours ago #338353 by Astrid
Replied by Astrid on topic Joomla user plugin
Thanks for your time. Found an easier solution (for me ). When users are receiving a notification email there is a link in the email to change preferences, which redirects to an url with a user specific token. So I made a query field to query the #__user_profiles table to get the user specific token from the table and then added a button with the link in the profile edit layout.

I did spent a lot of time yesterday trying to figure it out until today I suddenly had a hunch to change my backend language to English. Someone translated the word Query with Question (Vraag in Dutch), so I was looking for a Query field and couldn't find it.
I will try to find some time to change at least that translation today in Transifex, because it is very confusing .
I really wish people would stop using Google translate to translate language files. This is already the second extension with totally useless translations.
Last edit: 6 months 2 hours ago by Astrid.
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