I dont need an event date! Help

  • Kelly D
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 1 week ago #8827 by Kelly D
I dont need an event date! Help was created by Kelly D
Hi, so how do i disable event date field from showing up?

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

More
14 years 1 week ago #8892 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: I dont need an event date! Help
Hi

I am sorry for lately response. I had a holiday and just come back to office .

Right now, the extension doesn't have a config option to allow you to hide event date. In order to hide Event Date, you will need to modify the code of the extension alitle .

The files need to be modified are :

- components/com_eventbooking/views/category/tmpl/default.php

- components/com_eventbooking/views/event/tmpl/default.php

If you don't know HTML / PHP code, please submit a support ticket contains administrator account of your site. I will check the support ticket and modify these files for you.

Regards,

Tuan

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

  • Kelly D
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 6 days ago - 14 years 6 days ago #8907 by Kelly D
Replied by Kelly D on topic Re: I dont need an event date! Help
Hi

I am sorry for lately response. I had a holiday and just come back to office .
Right now, the extension doesn't have a config option to allow you to hide event date. In order to hide Event Date, you will need to modify the code of the extension alitle .
The files need to be modified are :
- components/com_eventbooking/views/category/tmpl/default.php
- components/com_eventbooking/views/event/tmpl/default.php
If you don't know HTML / PHP code, please submit a support ticket contains administrator account of your site. I will check the support ticket and modify these files for you.
Regards,
Tuan
_______

I can do the modification myself. I just need to know what exactly to change in the extension code.
Thanks. Awaiting for your response!
Accurate101
Last edit: 14 years 6 days ago by Kelly D.

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

More
14 years 6 days ago - 14 years 6 days ago #8918 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: I dont need an event date! Help
Hi

Please follow the instructions below :

1. Open the file components/com_eventbooking/views/category/default.php, you will see the below code from line 81 to line 92 :
Code:
if ($item->event_end_date != $this->nullDate) { ?> <div class="eb_prop"> <dt> <?php echo JText::_('EB_EVENT_END_DATE'); ?>: </dt> <dd> <?php echo JHTML::_('date', $item->event_end_date, $this->config->event_date_format, null) ; ?> </dd> </div> <?php }

=> Remove that code

2. Open the file components/com_eventbooking/views/event/tmpl/default.php, you will see the code below from line 73 to line 84 :
Code:
if ($item->event_end_date != $this->nullDate) { ?> <tr> <td> <strong><?php echo JText::_('EB_EVENT_END_DATE'); ?>:</strong> </td> <td> <?php echo JHTML::_('date', $item->event_end_date, $this->config->event_date_format, null) ; ?> </td> </div> <?php }

=> Remove those lines of code .

Regards,

Tuan
Last edit: 14 years 6 days ago by Tuan Pham Ngoc.

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

  • Kelly D
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 6 days ago #8938 by Kelly D
Replied by Kelly D on topic Re: I dont need an event date! Help
admin wrote:

Hi

Please follow the instructions below :

1. Open the file components/com_eventbooking/views/category/default.php, you will see the below code from line 81 to line 92 :

Code:
if ($item->event_end_date != $this->nullDate) { ?> <div class="eb_prop"> <dt> <?php echo JText::_('EB_EVENT_END_DATE'); ?>: </dt> <dd> <?php echo JHTML::_('date', $item->event_end_date, $this->config->event_date_format, null) ; ?> </dd> </div> <?php }

=> Remove that code

2. Open the file components/com_eventbooking/views/event/tmpl/default.php, you will see the code below from line 73 to line 84 :
Code:
if ($item->event_end_date != $this->nullDate) { ?> <tr> <td> <strong><?php echo JText::_('EB_EVENT_END_DATE'); ?>:</strong> </td> <td> <?php echo JHTML::_('date', $item->event_end_date, $this->config->event_date_format, null) ; ?> </td> </div> <?php }

=> Remove those lines of code .

Regards,

Tuan



Hi Tuan,
I have removed the code above.
It still shows an event date field and the default date: 11-30--0001
Any suggestions?

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

More
14 years 5 days ago #8947 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: I dont need an event date! Help
Can you send me the link to the page so that I can have a look at it ?

Thanks,

Tuan

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

Moderators: Tuan Pham Ngoc