Forums

Community Builder 1.2 with Chronoforms

elehost 01 Apr, 2009
Hello,

Now that Community Builder 1.2 has been released for a bit of time I am trying to get this working with a custom form for sign-up through Chronoforms 3.0

I have been trying to get the plug-in working but so far I have been unsuccessful.

I have applied the patch outlined in this thread: http://www.chronoengine.com/forums.html?cont=posts&f=9&t=12055 in the hopes that it would help.

I hope perhaps I may get a hint to find the answer to this issue to track this down.

I have the following configured:

1) The form has been configured and is sending its e-mail to me so I know this part is working with my custom validation code.
2) With debug turned on I do not get any errors that would say there is a problem on the screen but nothing visible about community builder (the _POST: Array is listed as well as the e-mail message on the screen)
3) I have the plug-in checked off as enabled



4) The plug-in fields have been configured as far as I can tell. If you see one missing please let me know:



So far the form posts and completes but nothing is being written to the community builder table.

Thanks in advance,

Paul
elehost 01 Apr, 2009
I am replying to myself for any future users who have this problem.

I confirm it works just fine with community builder 1.2 when the patch is applied.

To be able to determine this I reprogrammed the plugin to add some debugging messages to help find out where my error was.

My problem hinged on the username. In my case I was building the username from several supplied fields in the php validation code area. This is a very useful area to be able to manage the data before completion of the submission.

I found the username was not being set correctly in my code which led to it not working (but with no error messages). Once this was fixed it started working.

I knew it was something small🙂

However, I am now running into an issue with the error message not being displayed to the user when this function is called within the JError function: JError::raiseWarning('', JText::_( $user->getError()));

With my debugging I can confirm the error message is being sent to the JError function.

JError::raiseWarning('', JText::_( $user->getError()));


Can anyone advise why this is not being displayed? Again I would assume it has to do with my template but I have not used this feature before. At the moment there is no feedback loop to the user that the username has been taken, etc..

Thanks,

Paul
Max_admin 01 Apr, 2009
Hi Paul,

Starting from the next release, there will be a very handy API to let your grab errors and form/plugins variables/data inside the form or the plugin!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
elehost 02 Apr, 2009
Hi Max,

That sounds great!

I actually reprogrammed the plug-in to pass the errors sent by community builder so they are now displayed as an error on the form and it stops the submission from continuing.

The plug-in was allowing the form to continue to submit (such as send out e-mails, etc..) for some reason on my install even if the community builder result was sending an error.

Cheers,

Paul
This topic is locked and no more replies can be posted.