New

RSS feed

  Monday, 06 June 2016
  10 Replies
  2.1K Visits
0
Votes
Undo
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
8 years ago
·
#171681
0
Votes
Undo
Hello Rob,

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

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

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 :D

Sorry to annoy you,

Anyway,

Kind regards,
Rob
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... :)
8 years ago
·
#171684
0
Votes
Undo
Hehe, no problem glad you solved it!

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

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.
8 years ago
·
#171686
0
Votes
Undo
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.
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
8 years ago
·
#171688
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

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
8 years ago
·
#171690
0
Votes
Undo
		$endDate = $row->publish_up();
$eventEndDate = JevDate::strtotime($endDate);
$formattedEndDate = JevDate::strftime('%Y-%m-%d %H:%M', $eventEndDate);

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.