Well, i thin it is not possible. Than you would need a own feed for every user and you would need the last log in time of him/her....polle wrote:Hi, can someone point me in how to call it to make it display just the topics that have a new reply and not always the last X number of topics that have or not replies ?
Thanks.
Cant the feed just feed when it has a reply ?pussaya wrote:Well, i thin it is not possible. Than you would need a own feed for every user and you would need the last log in time of him/her....polle wrote:Hi, can someone point me in how to call it to make it display just the topics that have a new reply and not always the last X number of topics that have or not replies ?
Thanks.
It is a pity but I think we have to accept it!
The feed is generated when it is requested. There's no way to tell when something was replied to... it just grabs the last X posts and sticks them into the feed... I guess you could make sure they are nor from the same topic... but then if two people post you're going to miss one in the feed. To determine if something is "new" you have to be logged in... and the feed doesn't have any way to do that... (although it does register if you are already logged in...) It probably is possible... but outside of the scope of simple syndication.polle wrote:Cant the feed just feed when it has a reply ?
Just as all feeds work, if it has something new it shows up, if not it doesnt.
Because having the same feed always no matter if it has replies or not doesnt have sense.
The feed reads what its new, not the same 10 last topics all the time as if they are new when they are not.
Or am I mising something ?
Thanks.
Code: Select all
<div align="center"><a href="http://www.website.com/forum/syndication.php?t=1&fid=4&count=50" target="_blank"><img src="/images/icons/icon_feed.gif" alt="" width="16" height="16" border="0" align="absmiddle"></a><br /><br>
</div>
Hmm, I assume then all websites in the world with feeds make magic just showing the feed when it has something new ?Drakkim wrote:The feed is generated when it is requested. There's no way to tell when something was replied to... it just grabs the last X posts and sticks them into the feed... I guess you could make sure they are nor from the same topic... but then if two people post you're going to miss one in the feed. To determine if something is "new" you have to be logged in... and the feed doesn't have any way to do that... (although it does register if you are already logged in...) It probably is possible... but outside of the scope of simple syndication.polle wrote:Cant the feed just feed when it has a reply ?
Just as all feeds work, if it has something new it shows up, if not it doesnt.
Because having the same feed always no matter if it has replies or not doesnt have sense.
The feed reads what its new, not the same 10 last topics all the time as if they are new when they are not.
Or am I mising something ?
Thanks.
-Drakkim
Agree!Hmm, I assume then all websites in the world with feeds make magic just showing the feed when it has something new ?
Actually I had it that way in phpbb2, the correct way for a feed to work is show the feed when it has something new, lets hope someone knows how to fix this.
Code: Select all
$template->assign_block_vars('item', array(
'AUTHOR' => $row['username'],
'TIME' => format_date($row['post_time']),
'LINK' => "$board_url/viewtopic.$phpEx". '?f=' . $row['forum_id'] . '
&t=' . $row['topic_id'],
'IDENTIFIER' => "$board_url/viewtopic.$phpEx". '?f=' . $row['forum_id'] . '&t='
. $row['topic_id'],
'TITLE' => $row['post_subject'],
'TEXT' => parse_message($row['post_text'], $row['forum_desc_options']
, $row['bbcode_uid'], $row['bbcode_bitfield']),
Sure it´s possble.... Just change the ´1´ ot ´0´ in syndication.php, like this:pussaya wrote:Well, i thin it is not possible. Than you would need a own feed for every user and you would need the last log in time of him/her....polle wrote:Hi, can someone point me in how to call it to make it display just the topics that have a new reply and not always the last X number of topics that have or not replies ?
Thanks.
It is a pity but I think we have to accept it!
Code: Select all
// only topic first post
if ($topics_only == 0)
{
Dont work for me.negative-entropy wrote:Hello, good mod, it is however slightly buggy, as building the identification using append_sid WILL result in a different item identification at each call for aggregators, thus breaking feeders that count on it to avoid duplicates, as it makes identification, guid and like absolutely useless. most systems try to identify on the link also, but then, same piece of code in this mod, resulting in the same problem.
syndication.php mofified to:hope this helps,Code: Select all
$template->assign_block_vars('item', array( 'AUTHOR' => $row['username'], 'TIME' => format_date($row['post_time']), 'LINK' => "$board_url/viewtopic.$phpEx". '?f=' . $row['forum_id'] . ' &t=' . $row['topic_id'], 'IDENTIFIER' => "$board_url/viewtopic.$phpEx". '?f=' . $row['forum_id'] . '&t=' . $row['topic_id'], 'TITLE' => $row['post_subject'], 'TEXT' => parse_message($row['post_text'], $row['forum_desc_options'] , $row['bbcode_uid'], $row['bbcode_bitfield']),
ciao,
/JM
This does not work for me, it shows just the first post of each topic, not the reply itself and also just when the topics have a reply as it should work. But Thanks.ndss wrote:Sure it´s possble.... Just change the ´1´ ot ´0´ in syndication.php, like this:pussaya wrote:Well, i thin it is not possible. Than you would need a own feed for every user and you would need the last log in time of him/her....polle wrote:Hi, can someone point me in how to call it to make it display just the topics that have a new reply and not always the last X number of topics that have or not replies ?
Thanks.
It is a pity but I think we have to accept it!
Code: Select all
// only topic first post if ($topics_only == 0) {
Code: Select all
$template->assign_block_vars('item', array(
'AUTHOR' => $row['username'],
'TIME' => format_date($row['post_time']),
'LINK' => "$board_url/viewtopic.$phpEx". '?f=' . $row['forum_id'] . '
&t=' . $row['topic_id'],
'IDENTIFIER' => "$board_url/viewtopic.$phpEx". '?f=' . $row['forum_id'] . '&t='
. $row['topic_id'],
'TITLE' => $row['post_subject'],
'TEXT' => parse_message($row['post_text'], $row['forum_desc_options']
, $row['bbcode_uid'], $row['bbcode_bitfield']),