Set Exact Group Registration Number?

  • Eric Engert
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago #36019 by Eric Engert
Set Exact Group Registration Number? was created by Eric Engert
Is there a way to set the exact number of registrants required/allowed for an event in the backend and then also skip the screen in the frontend where it asks how many are in the group?

If not, what steps would be necessary to add that customization in the code and database?

Thanks.

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

More
12 years 4 months ago #36088 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Set Exact Group Registration Number?
Hi

It is not possible to setup exact group number for an event from back-end. Difficult to guide you to do customization in this case, so I think you will have to debug the code to find out the process and then do the customization (if you don't know programming, maybe you will have to find a different developer to help you).

Tuan

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

  • Eric Engert
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago #36122 by Eric Engert
Replied by Eric Engert on topic Re: Set Exact Group Registration Number?
Tuan,

For some reason, my custom language strings aren't being picked up by jText. Here is the code I added to the default.php file for the event screen so that an input field will be displayed for Min Registrants in Group (I also added the min_group_number field to the ev_events table):
Code:
<tr> <td class="key"> <span class="editlinktip hasTip" title="<?php echo JText::_( 'EB_MIN_NUMBER_REGISTRANTS' );?>::<?php echo JText::_('EB_MIN_NUMBER_REGISTRANTS_EXPLAIN'); ?>"><?php echo JText::_('EB_MIN_NUMBER_REGISTRANT_GROUP'); ?></span> </td> <td> <input type="text" name="min_group_number" id="min_group_number" class="inputbox" size="10" value="<?php echo $this->item->min_group_number; ?>" /> </td> </tr>

And here are the strings that were added using the Add button on the Translation tab of the EB dashboard:

EB_MIN_NUMBER_REGISTRANT_GROUP="Min Number of Registrants for Group Registration"
EB_MIN_NUMBER_REGISTRANTS_EXPLAIN="Set minimum registrants for group registration. Leave it empty for unlimited"
EB_MIN_NUMBER_REGISTRANTS="Min Number of Registrants for Group"

For some reason, those jText calls aren't working and only the string variable name is being displayed. So the label for my input is "EB_MIN_NUMBER_REGISTRANT_GROUP."

What did I miss?

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

More
12 years 4 months ago #36142 by FrankM
Replied by FrankM on topic Re: Set Exact Group Registration Number?

Eric Engert wrote: Is there a way to set the exact number of registrants required/allowed for an event in the backend and then also skip the screen in the frontend where it asks how many are in the group?

If not, what steps would be necessary to add that customization in the code and database?

Thanks.


I need this feature too.

Productiv: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5
Testsys: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5

Sorry, english isn't my native language.

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

Moderators: Tuan Pham Ngoc