Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Register new user when already logged-in ?

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
12 years 3 months ago #212285 by dotcom22
hello

I wondering if is possible to register from frontend new users when already logged-in.

My goal would be to allow only some specific CBsubs User to register other users. So in practice it will not possible to allow public users to register.

I suppose this can't be done but maybe if using some CB or CBsubs workaround this can be possible.

Before I planned to include in the registration form, a special field who must be filled with a specific value only know by my specific users for let them register news users. But this method is annoying because my specific users must be always connected in their account (for make their own task during the whole day) and are supposed to register news users many time in a day. So this require for them to always logout from their account for create news users and login again for continue their task. Logout and login 15 or 20 time per days is quite annoying reason why I would like find a viable solution for make the process more simple.

any suggestions ?

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 3 months ago #212343 by krileon
No, this is not possible without a lot of core edits. You'll need to logout first or create them from backend.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
12 years 1 month ago - 12 years 1 month ago #217254 by dotcom22
Replied by dotcom22 on topic Re: Register new user when already logged-in ?
hello

I found maybe a solution for allow me to do what I want. I discovered a component called "AddUser" who allow to add/create new users from frontend when already logged-in. It allow also to fill all users data asked in the Adduser registration form in both Joomla and CB table using SQL.

extensions.joomla.org/extensions/clients-a-communities/user-management/13753

I tested this stuff and it work well. The problem now is I would like run some CB Triggers usually fired during the normal CB registration step. This for let me use the addon Auto-Action (for send welcome message and more) and also for place new user inside the default Cbsubs plan. I need of course to fire the default Cbsubs plan (exactly like if the registration was done from default CB registration form) and not only to place the user in the plan without any action.

If I'm not wrong this can be done using your API. I read your docs here:

www.allmysocials.com/index.php?option=com_flexicontent&view=items&id=231:include-api-externally

AND

www.allmysocials.com/index.php?option=com_flexicontent&view=items&id=228:event-triggers

And I see more less what I necessary to do. I will see a little bit by myself and ask developers of AddUser or hire a freelancer for help me. The AddUser component is made for be customized and all code related to registration form is located inside one file. I suppose is necessary to include all necessary API code in this file.

I see for example the code who allow to subscribe to the default Cbsubs plan (the one present inside CB registration form) is:
Code:
<input type="hidden" name="cbpplanE[0][selected][]" id="cbpplan1" value="1" />

I suppose I must insert this code in the AddSUser form...


However have you some suggestion/advice ??

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Last edit: 12 years 1 month ago by dotcom22.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #217277 by krileon
Can't help you in regards to AddUser, sorry; we did not develop it, please contact its developer for your questions on modifying it. Please note it probably is using Joomla API and not CB API so you'll have invalid and incomplete registrations.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
12 years 1 month ago - 12 years 1 month ago #217389 by dotcom22
Replied by dotcom22 on topic Re: Register new user when already logged-in ?
So I'm looking for hire a developer (who know CB) for build a custom addon (because finally the Adduser component is not well adapted for my need) for let me register users from frontend when already logged-in. I found somebody but I need some more infos about for inform developer what I need exactly and how to do the job...

The developer tell me is not a problem and he can make a small component + a CB plugin for handle the case. However one of my goal was also to be able to use Auto-Action using POST method for make some API request to a third party software after register a new user. Here I see a possible conflict/problem because in my request I need to pass parameters related to user data who must be registered AND pass the API key related to user (who is already logged-in) who must register the new user.

For example the request in Auto-Action will look like this:

Trigger: onAfterUserRegistration
URL: api.third-party-software.com
Method: Post

Request:
api_key=[apikey]
email=

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Last edit: 12 years 1 month ago by dotcom22.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 4 weeks ago #217457 by krileon
I've updated my below tutorial to include firing of triggers during the registration and/or update process.

www.allmysocials.com/directory/tutorials/item/237-create-users-through-api

Please have your developer reference it during development. As long as those triggers are fired then CB Auto Actions should act on it fine.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum