Code: Select all
($type != 'atom') ? rss_prepare_message($row['post_text']) : '';
Code: Select all
function parse_message($row, $bbcode_options, $bbcode_uid, $bbcode_bitfield)
{
global $board_url;
$row = html_entity_decode(generate_text_for_display($row, $bbcode_uid, $bbcode_bitfield, $bbcode_options));
($type != 'atom') ? rss_prepare_message($row) : '';
// smilies contain relative URL, we need it to be absolute
return str_replace('<img src="./', '<img src="' . $board_url . '/', $row);
}
Code: Select all
// only topic first post
if ($topics_only == 1)
This is the error i recieve:Tom Keels wrote:I finally got this to work the way I wanted in phpBB3 Gold. This is similar to how another PHPBB2 rss mod I had before. Here is the way it worked and how I liked it.
Showed the last 30 active Topics - Title Only
Link in the reader takes you to the last post in the topic, not the first post as is in this mod.
Here's what needs changing:
FindFind InlineCode: Select all
$sql = 'SELECT p.poster_id, p.post_subject,
Before AddCode: Select all
p.poster_id
Code: Select all
t.topic_last_post_id, p.post_id,
FindReplace withCode: Select all
'LINK' => append_sid("$board_url/viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']), 'IDENTIFIER' => append_sid("$board_url/viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']),
This may not be the way you want it to work, but it works for me and it's how I like it.Code: Select all
'LINK' => append_sid("$board_url/viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']. '&p=' . $row['post_id'] .'#p' . $row['topic_last_post_id']), 'IDENTIFIER' => append_sid("$board_url/viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']. '&p=' . $row['post_id'] .'#p' . $row['topic_last_post_id']),
Enjoy!
General Error
SQL ERROR [ mysqli ]
Unknown column 't.topic_last_post_id' in 'field list' [1054]
SQL
SELECT t.topic_last_post_id, p.post_id, p.poster_id, p.post_subject, p.post_text, p.bbcode_uid, p.bbcode_bitfield, p.topic_id, p.forum_id, p.post_time, f.forum_name, f.forum_desc_options, u.username FROM phpbb3_posts as p, phpbb3_forums as f, phpbb3_users as u WHERE (u.user_id = p.poster_id) AND p.post_approved = 1 AND (f.forum_id = p.forum_id) ORDER BY post_time DESC LIMIT 30
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()
FILE: includes/db/mysqli.php
LINE: 185
CALL: dbal_mysqli->sql_query()
FILE: includes/db/dbal.php
LINE: 157
CALL: dbal_mysqli->_sql_query_limit()
FILE: syndication2.php
LINE: 134
CALL: dbal->sql_query_limit()
Code: Select all
Unknown column 't.topic_last_post_id' in 'field list' [1054]
SQL
SELECT t.topic_last_post_id, p.post_id, p.poster_id, p.post_subject, p.post_text, p.bbcode_uid, p.bbcode_bitfield, p.topic_id, p.forum_id, p.post_time, f.forum_name, f.forum_desc_options, u.username FROM phpbb3_posts as p, phpbb3_forums as f, phpbb3_users as u WHERE (u.user_id = p.poster_id) AND p.post_approved = 1 AND (f.forum_id = p.forum_id) ORDER BY post_time DESC LIMIT 30
Lets hear from You Angelside.angelside wrote:MOD Title: simple syndication
MOD Description: phpBB 3.0 rss/atom content syndicator
MOD Version: 1.1.1b
MOD Download: http://downloads.sourceforge.net/canver ... .1b.tar.gz
Demo Board: http://www.phpbbturkiye.net/syndication.php?fid=20&t=1
changelog from 1.0.0b
* fix minor error
* add new parameter for show topic only first post
Updated on: 2007-06-20 - Version 1.1.1b