Disable registration by defaultuse

  • Andreas Glenthøj
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 10 months ago #26181 by Andreas Glenthøj
Disable registration by defaultuse was created by Andreas Glenthøj
I also EB as a normal calendar with most events not using the registration feature. Since my users add lots of events, it would be perfect, if I could set "disable registration" as default in the submission form. Is this possible?

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

More
11 years 10 months ago #26822 by Heman
Replied by Heman on topic Re: Disable registration by defaultuse
I would like to know if this is possible to?

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

More
11 years 10 months ago #26907 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Disable registration by defaultuse
@Heman: Do you want to set this to default in front-end event submission form or from back-end event submission form ? Please let me know and I will guide you to edit the code.

Tuan

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

  • Andreas Glenthøj
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 10 months ago #26966 by Andreas Glenthøj
Replied by Andreas Glenthøj on topic Re: Disable registration by defaultuse
Actually, I would like both, but it is most important from the frontend.

I would be most grateful, if you could help me with the coding.

Thank you!

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

  • Andreas Glenthøj
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 9 months ago #27505 by Andreas Glenthøj
Replied by Andreas Glenthøj on topic Re: Disable registration by defaultuse
Could you also help me with the code, please?

Thank you!

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

  • Andreas Glenthøj
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 9 months ago #27916 by Andreas Glenthøj
Replied by Andreas Glenthøj on topic Re: Disable registration by defaultuse
Found the code to edit defaults in the frontend submission form:

/components/com_eventbooking/models/event.php

$row->published = 1 ;

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

Moderators: Tuan Pham Ngoc