Registrant Field List, please help.

  • Gareth Taylor
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #56828 by Gareth Taylor
Registrant Field List, please help. was created by Gareth Taylor
Hi recently brought Events Booking. works great!

I use it for signing up to Raids/group activities for my Gaming Clan. Is there a way to ONLY SHOW the members USERNAME on the 'Registrant List' rather than name, last name etc.... ??

ty!

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

More
11 years 2 months ago #56832 by James Riley
Replied by James Riley on topic Registrant Field List, please help.
Do you need their first & last name recorded?
If not (and if you don't use EventBooking for anything else on your site that needs FN or LN), here's what I would do as a work-around:
  1. go to [CUSTOM FIELDS]
  2. edit [FIRST NAME] and rename to something like [USER NAME] then [SAVE]
  3. unpublish [LASTNAME]
Other than this, you will likely need to edit code. If certainly would be possible to suppress FN/LN --anything is possible if you know Joomla-infused PHP and MySQL-- but it would take some tweaking. I'm sure that Tuan & team would happily do it for you for a modest fee :)

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.

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

  • Gareth Taylor
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #56833 by Gareth Taylor
Replied by Gareth Taylor on topic Registrant Field List, please help.
Ok it won't let me Edit the Field Name and Name when I go to first_name custom field :( only the rest of the options.

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

  • Gareth Taylor
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #56837 by Gareth Taylor
Replied by Gareth Taylor on topic Registrant Field List, please help.
I've managed to let them type in their Username so that works. But on the 'View List' it still shows heading as First Name and also the Headings Last name as well which I don't need.

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

More
11 years 2 months ago - 11 years 2 months ago #56842 by James Riley
Replied by James Riley on topic Registrant Field List, please help.
Ahhh... in the [first_name] details, change the [title] from "First Name" to "Username". It'll let you do that.

I've never played with the front-end registrant list,only the back-end admin list. It that is the one you want to suppress Last Name on, then edit the file /administrator/components/com_eventbooking/view/registrants/tmpl/default.php and make the following changes (I like to add a comment tag, such as MODIFIED when I make changes so that I can find these again when I upgrade to the next version of the software -- when upgrading, you'll have to re-apply the changes):

line 12 (or around there): change $colspan = 11 to:
Code:
$colspan = 10; // MODIFIED -- default is 11

line 61-63 (give or take a line or two): add <!-- and --> around the code (this will turn off this section of code) there so that it reads:
Code:
<!-- <th class="title" style="text-align: left;" width="10%"> <?php echo JHtml::_('grid.sort', JText::_('EB_LAST_NAME'), 'tbl.last_name', $this->state->filter_order_Dir, $this->state->filter_order ); ?> </th> --> <!-- // MODIFIED -->

line 184-186 (or thereabouts): again, add the <!-- and --> around the code so that it reads:
Code:
<!-- <td> <?php echo $row->last_name ; ?> </td> --> <!-- //MODIFIED -->

Upload your modified file, and these 3 edits *should* remove the column from the admin registrant list. I didn't test this on my live site, but it should work. Let me know if it did or didn't! :)

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Last edit: 11 years 2 months ago by James Riley. Reason: changed /* */ to in code block 2 & 3

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

  • Gareth Taylor
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #56843 by Gareth Taylor
Replied by Gareth Taylor on topic Registrant Field List, please help.
Ty, will have a go at these changes when I get home :) Will let you know.

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

More
11 years 2 months ago #56852 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Registrant Field List, please help.
@James: Thanks for answering with question

@Gareth: Please let me know if you need more help

Tuan

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

  • Gareth Taylor
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #57043 by Gareth Taylor
Replied by Gareth Taylor on topic Registrant Field List, please help.
Thx to both of you. Registrants List looks good for me now!

I have an other question.

I have enabled users to create events, set up the menu item, page etc..

What I would like is for the 'Create an Event' page to only include certain fields for users to complete (fill out).

For example:

The fields for users I would like them to use are only:

BASIC INFO

Title
Alias
Category
Start date
End date
Price
Capacity
description

MISC

Access
Registration Access
Enable Cancel registration


Sorry for this, as I am using the Events System for a Online Gaming Clan and would like users not to see all the other information on the create an events page. I'm trying to make it simple for them to Create an Event with only the most basic of infomation.

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

More
11 years 2 months ago #57059 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Registrant Field List, please help.
Unfortunately, it is not configurable. You will need to know programming to customize the code of the event submission form. The steps are:

1. Go to Events Booking -> Configuration, look at Themes tab, find the config option "Frontend event submission form layout", set it to Simple

2. Edit the file components/com_eventbooking/views/event/tmpl/simple.php and remove the fields you don't want

Tuan

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

  • Gareth Taylor
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #57061 by Gareth Taylor
Replied by Gareth Taylor on topic Registrant Field List, please help.
Thank you! At least I know where to go to Start! :)

I will give it a try and I will make sure I backup everything :) Wish me Luck..

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

Moderators: Tuan Pham Ngoc