Change default settings

  • Claude Petitpas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #26222 by Claude Petitpas
Change default settings was created by Claude Petitpas
My client would like set registration access to "registered" as default and Registration Type to “Only Individual Registration” and Published to “Yes”

Which file do i edit?
Thanks

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

More
12 years 9 months ago #26236 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change default settings
Hi

You will need to edit the code alitle in this case. Folow the instructions below:

1. Open the file administrator/components/com_eventbooking/models/event.php

2. Find the code below (inside _initData function)
Code:
$row->registration_type = 0 ;

Change it to :
Code:
$row->registration_type = 1 ;

3. Find the code below :
Code:
$row->registration_access = 1 ;

4. Change it to :
Code:
$row->registration_access = 2 ;


Please do above changes and it will work as expected.

Tuan

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

  • Claude Petitpas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago - 12 years 9 months ago #26284 by Claude Petitpas
Replied by Claude Petitpas on topic Re: Change default settings
Hey thanks for the quick reply, worked like a charm. I have one more question though. I've noticed that when you look at the event being displayed the Event Date and the Event End Date both have full colon":" after them but the remainder of the properties being listed do not. Is there as easy way to fix this so they all have a : after them?

Thanks
Claude
Last edit: 12 years 9 months ago by Claude Petitpas.

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

More
12 years 9 months ago #26320 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change default settings
Hi Claude

If you know programming alitle, look at the file components/com_eventbooking/views/event/tmpl/default.php, you will see the code and can modify it easily.

Tuan

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

  • Claude Petitpas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #26349 by Claude Petitpas
Replied by Claude Petitpas on topic Re: Change default settings
Awesome, that saved me hours of looking through pages of code.

Thanks
Claude

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

More
12 years 9 months ago #26500 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change default settings
I'm Glad it helps. If you have other questions, please don't hesitate to ask.

Tuan

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

Moderators: Tuan Pham Ngoc