Calendar and Registration Date

  • toimik
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 5 months ago #6358 by toimik
Calendar and Registration Date was created by toimik
Hi!

How to modify event booking calendar that weeks will start from Monday not Sunday?

Also have anyone had this problem in backend that Registrant Management ->"Registration Date" is always showing current date even if registration is made way before? :huh:

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

More
13 years 5 months ago #6371 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Calendar and Registration Date
Hi

How to modify event booking calendar that weeks will start from Monday not Sunday?


=> We will need to modify the code of the extension alitle to make the calendar start from Monday ! I saw that you submited a support ticket for that, please include administrator account and FTP account in the ticket so that I can update the change for you !

Also have anyone had this problem in backend that Registrant Management ->"Registration Date" is always showing current date even if registration is made way before?


=> To solve this issue, please open the file administrator/components/com_eventbooking/views/registrants/tmpl/default.php, look at line 169 :
Code:
<?php echo JHTML::_('date', $row->payment_date, '%m-%d-%Y'); ?>

and change it to :
Code:
<?php echo JHTML::_('date', $row->register_date, '%m-%d-%Y'); ?>

(this issue happens with offline payment method and fixed in the latest build on server) .


You can also simply get this file, unzip it and uplad to administrator/components/com_eventbooking/views/registrants/tmpl folder to get the issue fixed .

Thanks,

Tuan

Attachment default-20101219.zip not found

Attachments:

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

  • toimik
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 4 months ago #6729 by toimik
Replied by toimik on topic Re: Calendar and Registration Date
Sorry for not repling for so long, I had long vacation.

Thank you for your help, I did those changes and everything is working well.

How to modify source code so that events will be taken off from webpage day after start date?

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

More
13 years 4 months ago #6731 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Calendar and Registration Date
Hi

I am not sure what version you are using but in the latest version (I don't remember from what version this feature added), there is a config option called Hide Pass Events. Set it to Yes will hide past events automatically from the web page.

If you want to do it without upgrading to latest version, here is the solution :

- Open the file components/com_eventbooking/models/category.php .

- Find the function __buildContentWhere() (It is from line 146 in the latest version, not sure what version you are having) .

- Adding one line of code in that function :
Code:
$where[] = ' a.event_date >= NOW() ';

If you know alitle about PHP coding, that will be an easy task. If not, you can email me the file, I will make change to it and send back you the modified file.

Thanks,

Tuan

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

More
13 years 1 month ago #8666 by faba
Replied by faba on topic Re: Calendar and Registration Date
Please, I would also like to make the week start by Monday, not Sunday. Could you please advice me to do necessary changes in code?
Kind regards, FB

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

More
13 years 1 month ago #8670 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Calendar and Registration Date
Hi

There are serveral places in the code (calendar view) which need to be modified in order to have Calendar starts from Monday. Please stays with how it is at the moment and give me two more weeks. I will make it configuration (you can choose to start the calendar from Sunday or Monday) .

Regards,

Tuan

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

More
13 years 1 month ago #8675 by faba
Replied by faba on topic Re: Calendar and Registration Date
Hi Tuan and thanx for the swift response. I will wait for two weeks and look forward to the update.
FB

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

More
13 years 1 month ago #8678 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Calendar and Registration Date
OK ! I will update this thread whenever this feature completed.

Regards,

Tuan

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

More
12 years 11 months ago #9408 by faba
Replied by faba on topic Re: Calendar and Registration Date
Hi Tuan

It's been well over two weeks. Any news on this?

Please, FB

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

More
12 years 11 months ago #9413 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Calendar and Registration Date
Hi

I am sorry I haven't had the features completed yet (just finished version 1.3.3 for Joomla 1.6 yesterday) . With two versions for the extension, It is alitle slow when adding new features into the extension. I will work on this one next week !

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc