By Guest on Monday, 06 June 2016
Replies 10
Likes 0
Views 2.2K
Votes 0
A While ago, I started this ticket:
<!-- l --><a class="postlink-local" href="https://www.jevents.net/forum/viewtopic.php?f=35&t=30054&hilit=put+date+in+description&start=10]viewtopic.php?f=35&t=30054&hilit=put+date+in+description&start=10[/url]<!-- l -->
And it works Again, Thank you for that.

But my question is now, can i put the time of the date in the discription?

I already tried this:

$item->description = $eventDate . $item_description;


And I get a white screen.
Is there something i am missing?

Kind regards,
Rob
Hello Rob,

Please enable maximum error reporting in the Joomla! Global config and try again. What error are you shown now?

Many thanks
Tony
·
Monday, 06 June 2016 14:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh my bad,

I had a syntax error <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> .
But still, the date is not showing in the description (without the syntax error ofcourse )

Can you help me ?

EDIT: Sorry, I am stupid as hell... I already found my mistake. It echo's a unix time, and I just need to convert that

Sorry to annoy you,

Anyway,

Kind regards,
Rob
·
Monday, 06 June 2016 15:19
·
0 Likes
·
0 Votes
·
0 Comments
·
I am back again,

I realised that i needed to use this code:

$item->description = $temptime->toFormat(JText::_('JEV_RSS_DATE')) . $item_description;


That should work, right?

Then i got the following errors:

Fatal error: Call to a member function toFormat() on a non-object in /home/ac-jgu7j/domains/triangelrotterdam.nl/public_html/templates/yoo_venice/html/com_jevents/modlatest/rss.php on line 139


So, i think do something wrong :/

Kind regards,
Rob

Edit: I forgot to make an object... Sorry, I didn't do PHP in a while...
·
Monday, 06 June 2016 15:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hehe, no problem glad you solved it!
·
Monday, 06 June 2016 15:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello, me again

The code above works now, only it does not show the multi day event...
My question is, how do I get to show the start date AND the end date if it is a multi day event.

I hope I didn't forgot something this time in the PHP :rolleyes:

Kind regards
Rob.
·
Tuesday, 07 June 2016 07:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Have you checked this document?

https://www.jevents.net/docs/jevents/it ... etail-page

$row->startDate() shoudl give you the start date of the event.
·
Tuesday, 07 June 2016 10:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Carcam,

Sorry, I dont have the permissions to look at that document :/
(I am not a bronze member)

But is there a way to see the full date (start date, and end date) of the event?

Kind regards
Rob
·
Tuesday, 07 June 2016 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Rob,

Then do a var_dump on the main wrapped in a <pre> so it's formatted and you can see the available formats.

Many thanks
Tony
·
Tuesday, 07 June 2016 12:45
·
0 Likes
·
0 Votes
·
0 Comments
·
I can't get it to work

Can you say me in wich variable can I find the last date of the event?
Or is that not possible?

Thank you for your time/effort

Kind regards,
Rob
·
Wednesday, 08 June 2016 10:28
·
0 Likes
·
0 Votes
·
0 Comments
·
		$endDate = $row->publish_up();
$eventEndDate = JevDate::strtotime($endDate);
$formattedEndDate = JevDate::strftime('%Y-%m-%d %H:%M', $eventEndDate);
·
Wednesday, 08 June 2016 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post