XF 1.5 Latest post link and text in RSS feed

abdfahim

Well-known member
In the XF global (or any) RSS feed, the <link> and <content:encoded> tags include the link to the thread and the text of the first post, respectively.

For example in
https://xenforo.com/community/forums/-/index.rss

for the first item (at this moment) we have

Code:
<item>
<title>Username CSS Visibility On Nodes</title>
<pubDate>Fri, 09 Dec 2016 01:32:09 +0000</pubDate>
<link>
https://xenforo.com/community/threads/username-css-visibility-on-nodes.123950/
</link>
<guid>
https://xenforo.com/community/threads/username-css-visibility-on-nodes.123950/
</guid>
<author>invalid@example.com (Luminxsity)</author>
<dc:creator>Luminxsity</dc:creator>
<content:encoded>
<![CDATA[
<span style="font-family: 'Tahoma'">Hello there, <br /> I was wondering if anyone is able to help me with this issue?<br /> <br /> <b>Issue: </b><a href="http://prntscr.com/dh4kxj" target="_blank" class="externalLink" rel="nofollow">http://prntscr.com/dh4kxj</a><br /> <b>Example:</b> <a href="http://prntscr.com/dh4mpc" target="_blank" class="externalLink" rel="nofollow">http://prntscr.com/dh4mpc</a><br /> <br /> In the (issue) screenshot, the arrow is pointing to one of the Administrators username where it would be red everywhere else, but on the node forum it isn&#039;t. <br /> I was just wondering how to make it appear that groups username css like presented in the example screenshot.<br /> <br /> - Thank you!</span>
]]>
</content:encoded>
<slash:comments>1</slash:comments>
</item>

Is it possible to change the <link> text to the last item of the thread (https://xenforo.com/community/threads/username-css-visibility-on-nodes.123950/#post-1118460) and <content:encoded> text to the body of the last post instead?

Also, why <Author> tag always contain "invalid@example.com (author_name)"? Where is this invalid@example.com is coming?

And finally, can we change the <Author> to the last poster, rather than the OP (which is already listed as <creator>)?

I have no idea how this RSS feed works, so sorry if that makes no sense.
 
Top Bottom