help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

[HOW TO] Unregistered signup with breezingforms integration

[HOW TO] Unregistered signup with breezingforms integration

8 years 4 months ago - 8 years 3 months ago
#23124
YOU NEED BREEZINGORMS (LIGHT or PRO) and access rights to ftp! COMMUNITY BUILDER would be good too,

With help of breezingform users I found the following solution (works with breezingforms lite too):
1. Make an override in YOURTEMPLATE/html/com_jem/event/default_attendees.php (see how to make a template override)
2. Open this new file and look for "case 2:" until "break" before "case 3:" and replace it with the following code:
Code:
case 2: // insert Breezing Form hack here echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); ?> </br> <input type="button" value="<?php echo JText::_('COM_JEM_SIGNUPHERE_AS_GUEST'); ?>" onClick="window.location='/index.php?option=com_breezingforms&view=form&Itemid=652&event=<?php echo $this->item->title; ?>&date=<?php echo $this->item->dates ?>&conemail=<?php echo $this->item->conemail ?>';"/> <?php break;
ATTENTION: the itemID number MUST BE the number of the add form menu.

3. In BreezingForms create a new piece in package FF, with Type "Before Form"
The Code for it is:
Code:
$this->execPieceByName('ff_InitLib'); $event = $_GET['event']; $date = $_GET['date']; $conemail = $_GET['conemail']; ff_setValue('event',$event); ff_setValue('date', htmlentities($date, ENT_QUOTES, 'UTF-8') ); ff_setValue('email',$conemail);
4. Create a Form with BreezingForms, which uses the elements "event", "date" and 'email'. (I changed from conemail to email!)
Go to ADVANCED zu Formoptions>More Options>Form Pieces>Before Form>Library and choose the name of your created Form Piece.
5. Create in Joomla a Menu with BreezingForms>Add a Form>Add Form and choose the name of your created Form.
6. Insert the ID number of this menu into your override default_attendees.php.
7. Insert into the language files (z.B. components/com_jem/en-GB/en-GB.com_jem.ini the following raw:
Code:
COM_JEM_SIGNUPHERE_AS_GUEST="or signup here as guest

The only thing is (until now): The event date is YYYY-MM-DD

Enjoy!
Last edit: 8 years 3 months ago by jojo12.

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

Re: [HOW TO] Unregistered signup with breezingforms integration

8 years 3 months ago - 8 years 3 months ago
#23181
After long trying:
the ff_setValue seems not to need htmlentities
when I use like:
Code:
ff_setValue('event',$event);
the view is best.

when I add in JEM default_attendees.php
Code:
&conemail=<?php echo $this->item->conemail ?>
the emailaddress of the contact person is in the url too and can be overtaken in the breezingForms too.

BUT ATTENTION: I am not sure, irf this could be a security problem!!! For this I need experts!

But like that it's possible to send an email with the information from the form.
Last edit: 8 years 3 months ago by jojo12.

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

Re: [HOW TO] Unregistered signup with breezingforms integration

8 years 3 months ago - 8 years 2 months ago
#23251
the contact person can get the email with signup for an event email, as following:
You fill in the admin email field (extended>more options>admin email
Code:
{email}

EDIT: The email address in com_contact must be set! If not there will be an error notification!
Last edit: 8 years 2 months ago by jojo12.

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

Re: [HOW TO] Unregistered signup with breezingforms integration

8 years 3 months ago - 8 years 3 months ago
#23252
it's easy to insert the button for guest-inscription in the regform too. And I have the code how a logged in person can have the same form with the datas from his profile just filled in.
1. create a template override for default_regform.php

2 .Insert in about line 73:
Code:
<br> <input type="button" class="btn btn-warning btn-block" value=" <?php echo JText::_('COM_JEM_SIGNUPHERE_AS_GUEST'); ?> " onClick="window.location='/index.php?option=com_breezingforms&view=form&Itemid=100&event=<?php echo $this->item->title; ?>&date=<?php echo $this->item->dates ?>&conemail=<?php echo $this->item->conemail ?>';"/>
The ItemId number must be the number of the menu with the breezingform

The only handycap is, that this kind of signup for event does not use the counter for attendees.
Last edit: 8 years 3 months ago by jojo12.

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

Re: [HOW TO] Unregistered signup with breezingforms integration

8 years 3 months ago - 8 years 1 month ago
#23253
when you click in the regform (which you only see when logged in) to the form,
you can automaticly fill some fields you have in CB (only if you work with CB)

Write the following into the value input field of each desired form field:
Code:
<?php $user = &JFactory::getUser(); $db = &JFactory::getDBO(); $db->setQuery("SELECT * FROM #__comprofiler WHERE id =" . $user->id); $rows = $db->loadObjectList(); return($rows[0]->cb_fieldname); ?>

#_ will be automaticly replaced with the PREFIX of your DB
replace cb_fieldname with the wanted CB Fieldname
Last edit: 8 years 1 month ago by jojo12.

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

Re: [HOW TO] Unregistered signup with breezingforms integration

8 years 2 months ago
#23306
in addition when you want automaticly fill in email of the logged user, then you need to insert
Code:
<?php $user = &JFactory::getUser();return $user->email;?>

In the same way you can ask for the username and the id.

Would be interesting to combine like that breezingforms with the count of attendees! Is this possible?

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

Time to create page: 0.608 seconds