- Posts: 7
- Thank you received: 0
Events with no date?
- jabbawocky30
- Topic Author
- Offline
- New Member
Less
More
12 years 3 months ago - 12 years 3 months ago #13749
by jabbawocky30
Events with no date? was created by jabbawocky30
Hello
I have bought your product a week ago and set up the following problems:
If leave blank the field "Start Date" the date appears in the front end 30.11.-0001.
where is the EB_TBC_DATE ?
<?php
if ($item->event_date == EB_TBC_DATE) {
echo JText::_('EB_TBC');} else {
echo JHTML::_('date', $item->event_date, $this->config->event_date_format, $param) ; }
?>
My Timezone ist Germany - my Timeformat is d.m.Y
I have bought your product a week ago and set up the following problems:
If leave blank the field "Start Date" the date appears in the front end 30.11.-0001.
where is the EB_TBC_DATE ?
<?php
if ($item->event_date == EB_TBC_DATE) {
echo JText::_('EB_TBC');} else {
echo JHTML::_('date', $item->event_date, $this->config->event_date_format, $param) ; }
?>
My Timezone ist Germany - my Timeformat is d.m.Y
Last edit: 12 years 3 months ago by jabbawocky30.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
12 years 3 months ago #13772
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Events with no date?
Hi
TBC is a constant defined in the component to support Event with no start date specified at the begining. It is defined in components/com_eventbooking/eventbooking.php :
So basically, if you want to have an event with no specific date, just set event date to 2099-12-31 and on the front-end, the event date will be displayed at TBC (to be confirmed). Ofcourse you can change this language string in Event Booking -> Translation .
Regards,
Tuan
TBC is a constant defined in the component to support Event with no start date specified at the begining. It is defined in components/com_eventbooking/eventbooking.php :
Code:
define('EB_TBC_DATE', '2099-12-31 00:00:00');
So basically, if you want to have an event with no specific date, just set event date to 2099-12-31 and on the front-end, the event date will be displayed at TBC (to be confirmed). Ofcourse you can change this language string in Event Booking -> Translation .
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- jabbawocky30
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 3 months ago #13789
by jabbawocky30
Replied by jabbawocky30 on topic Re: Events with no date?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
12 years 3 months ago #13797
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Events with no date?
Hi
It doesn't depend to the date format you setup. It uses the mysql date format (which is YYYY-mm-dd) . In this case, you can create a support ticket give me administrator account of your site, and I will create a sample event with No Date for you .
Regards,
Tuan
It doesn't depend to the date format you setup. It uses the mysql date format (which is YYYY-mm-dd) . In this case, you can create a support ticket give me administrator account of your site, and I will create a sample event with No Date for you .
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- jabbawocky30
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 3 months ago #13806
by jabbawocky30
Replied by jabbawocky30 on topic Re: Events with no date?
Please Log in or Create an account to join the conversation.
- rakeshjuneja
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
11 years 4 months ago #23839
by rakeshjuneja
Replied by rakeshjuneja on topic Re: Events with no date?
Hi,
By putting Event date as 2099-12-31 it does not show up Event date but still it shows event end date as 2016-11-30. Even if i leave it blank it shows same event end date.
How to hide event end date.
Regards
By putting Event date as 2099-12-31 it does not show up Event date but still it shows event end date as 2016-11-30. Even if i leave it blank it shows same event end date.
How to hide event end date.
Regards
Please Log in or Create an account to join the conversation.
- rakeshjuneja
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
11 years 4 months ago #23856
by rakeshjuneja
Replied by rakeshjuneja on topic Re: Events with no date?
ok i got it, this happened as i copied event which had an end date. so if you create a new event with 2099-12-31 as event date it works fine
Please Log in or Create an account to join the conversation.
- Matthias Blaß
- Offline
- Junior Member
Less
More
- Posts: 20
- Thank you received: 0
11 years 1 month ago #27606
by Matthias Blaß
Cheers Matthias
[I use Membershop Pro 1.5.3, with Event Booking 1.5.2 and Joomla 3.0.2]
Replied by Matthias Blaß on topic Re: Events with no date?
Hi Tuan,
how can i change the code to show the TBC-Date on "mod_eb_events" too?
I tried some code from other templates where it's shown correct, but i can't get it to run.
The original code is
What i tried is
Bur it only works on events detail page, but completely corrupts my homepage ;(
how can i change the code to show the TBC-Date on "mod_eb_events" too?
I tried some code from other templates where it's shown correct, but i can't get it to run.
The original code is
Code:
<?php echo JHTML::_('date', $row->event_date, $config->event_date_format, null); ?>
What i tried is
Code:
<?php
if ($row->event_date == EB_TBC_DATE) {
echo JText::_('EB_TBC');
} else {
echo JHTML::_('date', $row->event_date, $this->config->event_date_format, null) ;
}
?>
Bur it only works on events detail page, but completely corrupts my homepage ;(
Cheers Matthias
[I use Membershop Pro 1.5.3, with Event Booking 1.5.2 and Joomla 3.0.2]
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
11 years 1 month ago #27636
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Events with no date?
Hi Matthias
You can submit a support ticket sending me FTP account of your site. I will be happy to help you to edit the code .
Tuan
You can submit a support ticket sending me FTP account of your site. I will be happy to help you to edit the code .
Tuan
Please Log in or Create an account to join the conversation.
- Matthias Blaß
- Offline
- Junior Member
Less
More
- Posts: 20
- Thank you received: 0
11 years 1 month ago #27672
by Matthias Blaß
Cheers Matthias
[I use Membershop Pro 1.5.3, with Event Booking 1.5.2 and Joomla 3.0.2]
Replied by Matthias Blaß on topic Re: Events with no date?
Hi Tuan,
i would like to get your help with this problem. And it would be great if you could finish the work on my open ticket no. 8452.
Just give me feedback if you are able to finish that work so i will reactivate your ftp and site access.
Thanks,
Matthias
i would like to get your help with this problem. And it would be great if you could finish the work on my open ticket no. 8452.
Just give me feedback if you are able to finish that work so i will reactivate your ftp and site access.
Thanks,
Matthias
Cheers Matthias
[I use Membershop Pro 1.5.3, with Event Booking 1.5.2 and Joomla 3.0.2]
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.