By Guest on Wednesday, 30 September 2015
Replies 18
Likes 0
Views 5.1K
Votes 0
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?
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 12:33
·
0 Likes
·
0 Votes
·
0 Comments
·
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 14:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Did you see:

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

about customising the RSS Feed output?

Many thanks
Tony
·
Wednesday, 30 September 2015 22:50
·
0 Likes
·
0 Votes
·
0 Comments
·
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 09:03
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Monday, 05 October 2015 10:08
·
0 Likes
·
0 Votes
·
0 Comments
·
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 13:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Add a condition:


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

·
Monday, 05 October 2015 15:09
·
0 Likes
·
0 Votes
·
0 Comments
·
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 13:28
·
0 Likes
·
0 Votes
·
0 Comments
·
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 15:21
·
0 Likes
·
0 Votes
·
0 Comments
·
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
}
·
Tuesday, 06 October 2015 22:46
·
0 Likes
·
0 Votes
·
0 Comments
·
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 08:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Are you testing on a windows or linux server in the mockups?

Thanks
Tony
·
Tuesday, 13 October 2015 10:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

The php is build on Linux.

Thanks
·
Tuesday, 13 October 2015 10:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

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

Thanks
Tony
·
Tuesday, 13 October 2015 12:24
·
0 Likes
·
0 Votes
·
0 Comments
·
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!
·
Tuesday, 13 October 2015 13:47
·
0 Likes
·
0 Votes
·
0 Comments
·
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
}
·
Wednesday, 14 October 2015 00:00
·
0 Likes
·
0 Votes
·
0 Comments
·
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:00
·
0 Likes
·
0 Votes
·
0 Comments
·
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 -->
·
Wednesday, 14 October 2015 10:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post