[2.0.6] RSS Content Syndicator

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
119
64%
Very Good
41
22%
Good
13
7%
Fair
5
3%
Poor
7
4%
 
Total votes: 185

imason
Registered User
Posts: 2
Joined: Wed Jun 15, 2005 3:47 am
Contact:

Post by imason » Wed Jun 15, 2005 3:57 am

Hi, I must say it is a great mod, but I can't get it to work with my forum.

http://www.phenforum.com

I have implemented the Able2Know SEO mods for phpBB, so I think that
might be the problem.

I get this error when I visit rss.php:

XML Parsing Error: not well-formed
Location: http://www.phenforum.com/rss.php
Line Number 5, Column 28: <title>Weight Loss Forum & Support Group</title>
---------------------------^

Here's the URL for you to test:

http://www.phenforum.com/rss.php

Has anyone else had this problem? I tried removing the title tags from
overall_header.tpl, but that didn't work.
Thanks,

Ian Mason
=================
Weight Loss Forum

Dan Atkinson
Registered User
Posts: 1
Joined: Wed Jun 15, 2005 3:24 pm
Location: East Yorkshire, England

Post by Dan Atkinson » Wed Jun 15, 2005 3:28 pm

Strangelove wrote: Is there any way to have the RSS feed only display the title of the thread on the output?

AND I want it to show up like this:


* A64 Memory Overclocking Worklog
* Apple Gives in to the Dark Side, goes Intel
* ATI finally gets a good mobility video chip
* Making an LCD projector

Any help would be mich appreciated...


Hey there.

You'll need to edit the rss_body.tpl file (in Notepad or whatever plain text editor you use).

Find the following string:
<title>{post_item.FORUM_NAME} :: {post_item.TOPIC_TITLE}</title>

Delete this string:
{post_item.FORUM_NAME}

Hey presto! Problem solved!

tomythius
Registered User
Posts: 74
Joined: Sat May 28, 2005 3:05 pm
Location: Queniborough - Leicester - UK
Contact:

Post by tomythius » Wed Jun 15, 2005 3:45 pm

imason wrote: I get this error when I visit rss.php:

XML Parsing Error: not well-formed
Location: http://www.phenforum.com/rss.php
Line Number 5, Column 28: <title>Weight Loss Forum & Support Group</title>
---------------------------^

Heres something to try, html encode the ampersand. This would change "&" to "&". The XML spec is quite strict on this I beleive.
Tom says so, QED.

NightriderXP
Registered User
Posts: 1418
Joined: Sat Oct 09, 2004 8:17 am
Location: Florida, US
Contact:

Post by NightriderXP » Fri Jun 17, 2005 9:57 am

I've got a new problem. I've had this installed on my board for quite a while and it used to work perfectly. So once it stopped working, I assumed there might be a MOD conflict. But since there are only 2 files for this MOD that are never modified by any other MOD, I am at a loss of what happened. This is what I see:

Image

You can see this train wreck in action @

http://4fxearth.net/phpBB2/rss.php

I re-uploaded the files hoping that would somehow make a difference. But it didn't help at all as I expected...

:?:

Keva
Registered User
Posts: 101
Joined: Mon Mar 28, 2005 12:21 pm
Contact:

Post by Keva » Fri Jun 17, 2005 6:55 pm

just installed the mod and its very nice :) i was wondering tho how i make it so the rss reed is availible for users in firefox to bookmark

tomythius
Registered User
Posts: 74
Joined: Sat May 28, 2005 3:05 pm
Location: Queniborough - Leicester - UK
Contact:

Post by tomythius » Fri Jun 17, 2005 8:47 pm

Just add this:

Code: Select all

<link rel="alternate" type="application/rss+xml" title="RSS feed" href="{url}">
to your overall_header.tpl in the head section.
Replace {url} with the url of your feed.
Tom says so, QED.

NightriderXP
Registered User
Posts: 1418
Joined: Sat Oct 09, 2004 8:17 am
Location: Florida, US
Contact:

Post by NightriderXP » Fri Jun 17, 2005 9:25 pm

tomythius wrote: Just add this:

Code: Select all

<link rel="alternate" type="application/rss+xml" title="RSS feed" href="{url}">
to your overall_header.tpl in the head section.
Replace {url} with the url of your feed.

If this suggestion was for me, it didn't work. My default template is Helius, so I started with it. But since the XML Parse error is reporting subSilver in the path, I added it to the subSilver overall_header.tpl too knowing that it probably wouldn't help, but it was worth a try. As expected, that didn't help either...

What could cause this on files that have never been edited and a utility that used to work perfectly???

:?:

tomythius
Registered User
Posts: 74
Joined: Sat May 28, 2005 3:05 pm
Location: Queniborough - Leicester - UK
Contact:

Post by tomythius » Fri Jun 17, 2005 9:28 pm

NightriderXP wrote: If this suggestion was for me, it didn't work.

Sorry, was for Keva.
:?
Guess I should've made that clear...
Tom says so, QED.

NightriderXP
Registered User
Posts: 1418
Joined: Sat Oct 09, 2004 8:17 am
Location: Florida, US
Contact:

Post by NightriderXP » Sat Jun 18, 2005 3:14 am

No problem. Hopefully someone will have an idea what caused my new problem too some day...

:(

tempered007
Registered User
Posts: 218
Joined: Sun Jun 27, 2004 3:21 am

Post by tempered007 » Sat Jun 18, 2005 8:28 pm

Ahhh..thank you so much for this mod..

REQUEST
Is it possible to for a new release with all of the modifications? Specifically
(1) RSS 2.0 modifications
(2) the multiple forum modifications (?f=2,4,25,50)
(3) feed validator characters modifications

THanks.

balgo
Registered User
Posts: 1
Joined: Wed Jun 22, 2005 7:25 am

Post by balgo » Wed Jun 22, 2005 8:00 am

Is there any way how to know how many people read my RSS channels?

Strangelove
Registered User
Posts: 41
Joined: Tue Mar 22, 2005 4:30 am
Contact:

Post by Strangelove » Thu Jun 23, 2005 9:34 pm

Dan Atkinson wrote: Hey there.

You'll need to edit the rss_body.tpl file (in Notepad or whatever plain text editor you use).

Find the following string:
<title>{post_item.FORUM_NAME} :: {post_item.TOPIC_TITLE}</title>

Delete this string:
{post_item.FORUM_NAME}

Hey presto! Problem solved!



Thanks m8...that did the trick!

Any idea how to get rid of the title of the forum showing up?

I.E. Removing the UGHQ on the hot forum topics?

Example: http://www.ughq.com

Mikesus
Registered User
Posts: 3
Joined: Sun Jun 05, 2005 12:22 pm

Post by Mikesus » Fri Jun 24, 2005 11:25 am

Has anyone mod'd this to work with Craven's SEO mod?

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post by afterlife_69 » Sun Jun 26, 2005 7:13 am

So this grabs RSS feeds and posts them?

User avatar
webmacster87
Former Team Member
Posts: 3758
Joined: Fri Jun 11, 2004 2:30 am
Location: San Mateo, CA
Name: Douglas Bell
Contact:

Post by webmacster87 » Tue Jun 28, 2005 11:20 pm

rss.php:

Code: Select all

//
// BEGIN Configuration
//
// Set the relative path from this file to your phpBB root folder
$phpbb_root_path = './';
// How many posts do you want to returnd (count)?  Specified in the URL with "c=".  Defaults to 15, upper limit of 50.
$count = ( isset($HTTP_GET_VARS['c']) ) ? intval($HTTP_GET_VARS['c']) : 15;
$count = ( $count == 0 ) ? 15 : $count;
$count = ( $count > 50 ) ? 50 : $count;
// Which forum do you want posts from (forum_id)?  specified in the url with "f=".  Defaults to all (public) forums.
$forum_id = ( isset($HTTP_GET_VARS['f']) ) ? intval($HTTP_GET_VARS['f']) : '';
$sql_forum_where = ( !empty($forum_id) ) ? ' AND f.forum_id = ' . $forum_id : ' ';
// Return topics only, or all posts?  Specified in the URL with "t=".  Defaults to all posts (0).
$topics_only = (isset($HTTP_GET_VARS['t']) ) ? intval($HTTP_GET_VARS['t']) : 0;
$sql_topics_only_where = '';
if ( $topics_only == 1 )
{
	$sql_topics_only_where = 'AND p.post_id = t.topic_first_post_id';
}
//
// END Configuration
//
The Author's Notes of rss.MOD.txt wrote: ## Author Notes: As noted in rdf.php, this mod was based on "RDF Content Syndicator v1.3.1"
## released as a mod for phpBB 2.0.4. My mod does something almost entirely different.
## The original RDF Syndicator exported topic titles. Mine exports posts, including post text,
## and does conversion of bbcode/smilies to make them work from the feed reader.
##
## The original configuration options; html variables "c" (for count), "f" (for forum) were kept.
## I've also added the "t" variable to list only 'start of topic' posts in the feed,
## instead of all posts. This is better for high-traffic boards. This script will generate a valid
## RSS 0.92 feed. Some feed readers still don't support features of RSS 0.92, such as entity-encoded
## html tags. If you see html tags within the post text or signature, or the RSS description field doesn't
## display at all, try a different aggregator. FeedReader (www.feedreader.com) seems to work very well.

I'm unsure how to configure rss.php to get this to work. All I want is to have an RSS feed display the last 50 posts (be they new topics or replies) from all the various forums on my board aggregated together into one RSS feed. How do I configure rss.php to get it to work?

Post Reply

Return to “[2.0.x] MOD Database Cleanup”