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
Monday, 06 June 2016 14:27
·
#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!

Monday, 06 June 2016 15:19
·
#171682
0
Votes
Undo
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
Monday, 06 June 2016 15:25
·
#171683
0
Votes
Undo
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:29
·
#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!

Tuesday, 07 June 2016 07:34
·
#171685
0
Votes
Undo
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 10:00
·
#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.
Tuesday, 07 June 2016 11:04
·
#171687
0
Votes
Undo
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 12:45
·
#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!

Wednesday, 08 June 2016 10:28
·
#171689
0
Votes
Undo
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 11:31
·
#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.