TOPIC:

Create Joomla user from script 3 months 2 days ago #277095

  • Topic Author
  • tayling
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 214
  • Thanks: 0

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

Create Joomla user from script 3 months 2 days ago #277096

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11860
  • Karma: 3
  • Thanks: 765
Hi,

just one hint maybe this can help.

New client can sign up in the form for registation, and if he is registered he can login using login form (for login form you can create a menu->menus->new menu item->click on menu item type -> select users->and select login form).

Regards,
Tihana

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

Create Joomla user from script 3 months 2 days ago #277099

  • Topic Author
  • tayling
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 214
  • Thanks: 0
Ok - but I need them to submit that become a business form - which should create the joomla user - then we will mail them user login details and they will then user the normal login page to enter the site.

Thanks
TOny

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

Create Joomla user from script 3 months 2 days ago #277100

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11860
  • Karma: 3
  • Thanks: 765
Hi,

then the only solution for this is BFRegistation form, users submit form, joomla user is created, and so on.. :)

Regards,
Tihana

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

Create Joomla user from script 3 months 1 day ago #277122

  • Topic Author
  • tayling
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 214
  • Thanks: 0
Hi Tihana
sorry to come back to you on this one, but I have a working script, It is basically a php function that needs variables passed to it.
function addJoomlaUser($username, $name, $email, $password, $groups, $activate = false)
{
process
}

The final part that passes the data is
// Gather submitted data
$this->execPieceByName('ff_InitLib');
$email = ff_getSubmit('email');
$username = ff_getSubmit('email');
$name = ff_getSubmit('firstname') ." ".ff_getSubmit('lastname');
$password = "CcaQPZM99!";

// Create Joomla User Account
$new_user = addJoomlaUser($username, $name, $email, $password, '2,12', true);

The ffget_submit is not working and passing null on each variable
THE function works fine if I put literal data in place. Can you suggest what I need to do to use the Breezeform submit data?

Thanks for looking

Regards

Tony

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

Create Joomla user from script 3 months 1 day ago #277123

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11860
  • Karma: 3
  • Thanks: 765
Hi,

one question, you added this function addJoomlaUser in End submit pieces?
If yes, then this is the reason why function is not working there, because we need to adjust it on the other way

Regards,
Tihana

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

Last edit: Post by tihana.krivic.
Moderators: ForumSupport
Time to create page: 0.052 seconds

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!