Looks really weird...
I wonder why

Been looking over the mod a few times now, i see no wrong koding at all

That's easy to doG.I. Suck wrote:How hard would it be to change the feed from
{{Topic}}
to
{{Topic}} - {{Forum it's located in}}
Code: Select all
/**
* get actual data about topics or posts
*/
function get_content_data($content, &$feed_data, $start, $end)
{
global $global, $number_items, $board_url, $config, $phpEx, $db;
switch ($content)
{
case 'posts':
case 'topic_posts':
if ($content == 'posts')
{
global $forum_ids;
$where_sql = $db->sql_in_set('p.forum_id', $forum_ids);
}
else
{
global $topic_id;
$where_sql = 'topic_id = ' . $topic_id;
}
$sql = 'SELECT topic_id, p.forum_id, forum_name, post_id, post_text, post_username, post_time, post_subject, bbcode_bitfield, bbcode_uid, enable_bbcode, enable_smilies, enable_magic_url, username
FROM ' . POSTS_TABLE . ' p, ' . USERS_TABLE . ' u, ' . FORUMS_TABLE . " f
WHERE $where_sql
AND f.forum_id = p.forum_id
AND p.poster_id = u.user_id
AND post_approved = 1
ORDER BY post_time DESC";
$result = $db->sql_query_limit($sql, $end, $start, $config['syndication_ttl']);
while ($row = $db->sql_fetchrow($result))
{
$link = ($global) ? "{$board_url}/viewtopic.$phpEx?f={$row['forum_id']}&t={$row['topic_id']}" : "{$board_url}/viewtopic.$phpEx?f={$row['forum_id']}&t={$row['topic_id']}";
$feed_data['items'][] = array(
'author' => (!empty($row['post_username'])) ? $row['post_username'] : $row['username'],
'time' => $row['post_time'],
'link' => $link . '#p' . $row['post_id'],
'identifier' => $link . '#p' . $row['post_id'],
'title' => $row['post_subject'] . ' - ' . $row['forum_name'],
'text' => parse_message($row)
);
}
$db->sql_freeresult($result);
break;
case 'topics':
global $forum_ids;
$sql = 'SELECT t.topic_id, t.forum_id, forum_name, topic_title, topic_first_poster_name, topic_time, post_text, bbcode_uid, bbcode_bitfield, enable_bbcode, enable_smilies, enable_magic_url
FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p, ' . FORUMS_TABLE . ' f
WHERE ' . $db->sql_in_set('t.forum_id', $forum_ids) . '
AND p.post_id = t.topic_first_post_id
AND p.post_approved = 1
AND t.topic_approved = 1
AND t.topic_moved_id = 0
ORDER BY post_time DESC';
$result = $db->sql_query_limit($sql, $end, $start, $config['syndication_ttl']);
while ($row = $db->sql_fetchrow($result))
{
$link = ($global) ? "{$board_url}/viewtopic.$phpEx?f={$row['forum_id']}&t={$row['topic_id']}" : "{$board_url}/viewtopic.$phpEx?f={$row['forum_id']}&t={$row['topic_id']}";
$feed_data['items'][] = array(
'author' => $row['topic_first_poster_name'],
'time' => $row['topic_time'],
'link' => $link,
'identifier' => $link,
'title' => $row['forum_name'] . ' - ' . $row['topic_title'],
'text' => parse_message($row)
);
}
$db->sql_freeresult($result);
break;
case 'pm':
global $folder;
$sql = 'SELECT p.msg_id, message_text, p.author_id, message_time, message_subject, bbcode_bitfield, bbcode_uid, enable_bbcode, enable_smilies, enable_magic_url, u.username
FROM ' . PRIVMSGS_TABLE . ' p, ' . PRIVMSGS_TO_TABLE . ' t, ' . USERS_TABLE . " u
WHERE p.author_id = u.user_id
AND t.msg_id = p.msg_id
AND t.folder_id = $folder
AND t.folder_id != " . PRIVMSGS_NO_BOX . '
AND t.folder_id != ' . PRIVMSGS_HOLD_BOX . '
ORDER BY message_time DESC';
$result = $db->sql_query_limit($sql, $end, $start, $config['syndication_ttl']);
while ($row = $db->sql_fetchrow($result))
{
$link = "{$board_url}/ucp.$phpEx?i=pm&mode=view&f=$folder&p={$row['msg_id']}";
$feed_data['items'][] = array(
'author' => $row['username'],
'time' => $row['message_time'],
'link' => $link,
'identifier' => $link,
'title' => $row['message_subject'],
'text' => parse_message($row, true)
);
}
$db->sql_freeresult($result);
break;
}
}
This error message says that there is some whitespace in /language/en/common.php on the first line which is not allowed to be there. Check if you have any spaces or new lines before the "<?php" tag in this file. The login issue you experience is a consequence of this because setting cookies fails under this condition.canitb wrote:phpBB Debug] PHP Notice: in file /includes/functions.php on line 4230: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
Adding RSS 1.0 support is not a big deal, it only requires a new template in RSS 1.0 format and adding few lines to the included files. Up to now, I didn't include RSS 1.0 as I thought it wouldn't be used any more, but if there is still demand for it, I can add it.musikgoat wrote:only supports rss1.0 and hasn't been updated since 05)
Your observations are correct, this is currently not possible. But you can change the source code to fit your needs if you would like to have a different behaviour.myquealer wrote:Is this a feature that the Syndication Suite does not currently have, or am I overlooking something?
Code: Select all
AND t.topic_moved_id = 0
We took care of it on our back end, the feeds are working great. unless others need it, its not a big deal for us.Schumi wrote:Adding RSS 1.0 support is not a big deal, it only requires a new template in RSS 1.0 format and adding few lines to the included files. Up to now, I didn't include RSS 1.0 as I thought it wouldn't be used any more, but if there is still demand for it, I can add it.musikgoat wrote:only supports rss1.0 and hasn't been updated since 05)
^^small typoTime for caching contents of a syndiation feed:
Contents of posts or topics will not be retrieved more than once until this time frame has expired.
there is a caching timer you can turn lower:JKeats wrote:okay... i have everything working, and i can add the rss to my google reader, but it's not displaying any new posts when they're made.
Code: Select all
'T_THEME_DATA' => (!$user->theme['theme_storedb']) ? '' : $user->theme['theme_data'],
'SITE_LOGO_IMG' => $user->img('site_logo'))
);