• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Hiding enable registration checkbox on frontend

Hiding enable registration checkbox on frontend 11 years 4 months ago #25812

  • houfton
  • houfton's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 3
I was about to submit a support ticket on this but thought of a - slightly dirty - way to do it so I thought I would share to see what anybody else thinks!

I am using an override edit.php file to control what frontend users see when creating events. I have commented out various items without a problem but was stuck on the "enable registration" checkbox.

If I comment the jform[registration] input paragraph out (line 530-ish) I get a javascript error "Uncaught TypeError: Cannot call method 'addEvent' of null " and the form tabs stop working.

However if I change the input type to "hidden" and hide the label etc it disappears without a javascript error:

<input name="jform[registration]" type="hidden" value="0" class="rs_check" id="rs_check_registration" />
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!