Wednesday, 30 September 2015
  18 Replies
  5.1K Visits
0
Votes
Undo
Hey there!

I have a problem with the RSS output.
Is it possible to change the RSS output from this:

{Date and time of the event}:{Title of the event}
{Posting time in the calendar}

To this?

{Title of the event}
{Date and time of the event}

This is fine to!
{Date and time of the event}: {Title of the event}
{Date and time of the event}

[url:2rccmabu]http://doelakkers.nl/index.php?option=com_jevents&;task=modlatest.rss&format=feed&type=rss&modid=136[/url:2rccmabu] < this is the RSS feed i am working on

Or is there a way to change the posting time in the backend?
Wednesday, 30 September 2015 12:33
·
#157187
0
Votes
Undo
You can easily change that. Go to your Joomla! Module Manager and edit the module with id = 136. It should be a latest JEvents module and it should have a Custom Format String area where you can specify the content of your feed. Please check this document for further reference:

https://www.jevents.net/frequently-aske ... at-strings
Wednesday, 30 September 2015 14:12
·
#157188
0
Votes
Undo
I already got an custom format string filled in that module:
But its the right module where i need to edit things!
The next stuff is in that module, but thats the layout of the module on the homepage:

<div id="hover" class="pijl" style="cursor:pointer"><img id="hover"src="/images/icons/pijl-paars.svg"></div><div id="datum" class="datum" style="background-color:#636363; width:40px; height:50px;  margin-left: -80px;">${startDate( %e )}
${startDate( %b )}</div>
${title} <div class="tussenruimte" style="height:20px;" background-color:#33393e;></div>


http://doelakkers.nl

do i look at the wrong field?
And what do i need to fill in that field if i found it?

Tanx for the info!
Wednesday, 30 September 2015 22:50
·
#157189
0
Votes
Undo
Hello,

Did you see:

https://www.jevents.net/docs/jevents/it ... feed-ouput

about customising the RSS Feed output?

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, 05 October 2015 09:03
·
#157190
0
Votes
Undo
Yes and No,

I saw that there was a post about customizing the RSS output, but its only for bronze club members.

Tanx for your anwser
Monday, 05 October 2015 10:08
·
#157191
0
Votes
Undo
In simple terms you need to:

Copy the file components/com_jevents/views/modlatest/tmpl/rss.php to templates/{YOUR TEMPLATE}/html/com_jevents/modlatest/rss.php and edit this copied file.

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, 05 October 2015 13:28
·
#157192
0
Votes
Undo
Hey thanks for the fast reaction!

I am working on it now, and i have just 1 problem left.

The layout is perfect now! its now like this.
{Title of the event}
{Date and time of the event}

But, if there is a event without spesific time (a allday event), it says the event starts on 00:00.

How do i get that away?
http://doelakkers.nl/index.php?option=c ... &modid=136

https://gyazo.com/f80925080f71eb72f88fccd32edd35a2 <screenshot
Monday, 05 October 2015 15:09
·
#157193
0
Votes
Undo
Add a condition:


if ($row->alldayevent() == 1) {
//Do nothing
} else {
Echo the time here
}


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, 06 October 2015 13:28
·
#157194
0
Votes
Undo
Hey,

I use the $eventDate to show the date of the event.
But if the $eventDate is a Allday event, it even shows the time.
Is there a way to remove that time from that $eventDate in that code you typed above?
Like $eventDate['date'] ?

Cheers!
Tuesday, 06 October 2015 15:21
·
#157195
0
Votes
Undo
In reply to my last post:

I know its a unix time now, and as far as i know, even if i remove the time.
It comes back because the timezone.
Is there another php file where i cant do some sort of preg_replace?

Cheers!
Tuesday, 06 October 2015 22:46
·
#157196
0
Votes
Undo
As stated above:


if ($row->alldayevent() == 1) {
//Do nothing
} else {
Echo the time here
}


so:


if ($row->alldayevent() == 1) {
//Do nothing
} else {
echo $eventDate; // DISPLAY DATE HERE
}

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, 13 October 2015 08:06
·
#157197
0
Votes
Undo
Hey!

Sorry for the long time between my posts, because i didnt see there was a page 2.
If i do nothing it doesnt show the date at all. (look attachment)
I think its because of the unix time. (or is there antother method?)
But thanx for your anwser!

Cheers!
Tuesday, 13 October 2015 10:17
·
#157198
0
Votes
Undo
Are you testing on a windows or linux server in the mockups?

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!

Tuesday, 13 October 2015 10:34
·
#157199
0
Votes
Undo
Hi

The php is build on Linux.

Thanks :)
Tuesday, 13 October 2015 12:24
·
#157200
0
Votes
Undo
Hello,

So have you actually added the date above the title yet?

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!

Tuesday, 13 October 2015 13:47
·
#157201
0
Votes
Undo
Hi!

At the moment, the rss date is the $eventDate.

Can I hide the hours and minutes when the event is set to a full day event.

(if there is an full day event, the hours and minutes are on 00:00)
(and yes, I tried the code above, and it didnt work. But it went in to the right direction)
Thanks!
Wednesday, 14 October 2015 00:00
·
#157202
0
Votes
Undo
Yes see:

As stated above:


if ($row->alldayevent() == 1) {
//Do nothing
} else {
Echo the time here
}


so:


if ($row->alldayevent() == 1) {
//Do nothing
} else {
echo $eventDate; // DISPLAY DATE HERE
}

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, 14 October 2015 10:00
·
#157203
0
Votes
Undo
Hey,

Thats a problem, echo doesnt work. In the RSS.php file i only put $eventDate in item->date.

like:

if ($row->alldayevent() == 1) {
// Do nothing
} else {
$item->date = $eventDate; // DISPLAY DATE HERE
}


But if i do that, i wont get a date at all on the Full day events.
And at the moment $eventDate is a UNIX time, so even if i can echo the $eventDate it would show this: int(1444722543)


Thanx
Wednesday, 14 October 2015 10:09
·
#157204
0
Votes
Undo
You can use strftime to reformat the date/time value.

Or see this topic for more ideas

<!-- l --><a class="postlink-local" href="https://www.jevents.net/forum/viewtopic.php?f=35&;t=29885&p=163808#p163808]viewtopic.php?f=35&t=29885&p=163808#p163808[/url]<!-- l -->

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.