MyBB Community Forums

Full Version: RSS Syndication to include private threads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I do not use the RSS Syndication, but some people on my forum do.

I just got a comment from one of the members and here is what it had:

The RSS feeds are coming in just fine, but still only the public threads, the threads that are not public are not showing.

Is there any way to change this for the users to view private threads as well as public threads in their RSS Syndication?

Thanks in advance.
You can open syndication.php and change:
// Get the forums the user is not allowed to see.
$unviewableforums = get_unviewable_forums(true);
$inactiveforums = get_inactive_forums();

$unviewable = '';

// If there are any, add SQL to exclude them.
if($unviewableforums)
{
	$unviewable .= " AND fid NOT IN($unviewableforums)";
}

if($inactiveforums)
{
	$unviewable .= " AND fid NOT IN($inactiveforums)";
}
to:
$unviewable = '';

Keep in mind that all users will be able to see threads from all forums then.
Great! I will try this.

Thank you so much! Smile
Actually, that allowed the user to view not only the public and private threads, but also the Admin's threads that he didn't need to see. *oops* No harm done, though.

Anyways, thanks for the help!
That's exactly what I told you..

(2014-06-05, 09:57 PM)Destroy666 Wrote: [ -> ]Keep in mind that all users will be able to see threads from all forums then.

Moreover, admin forums are not public so they match your description in first post, be more specific next time.

If you want to exclude them, use:
$unviewable = ' AND fid NOT IN(1,2,3)';
Replace 1,2,3 with forum IDs which should be always blocked.