- Moderated by:
- Support
-
- rank:
-
Helper
- registered:
- December 1969
- Status:
- offline
- last visit:
- 26.02.06
- Posts:
- 236
I've got a problem with PN 0.714. I want to create a RSS headline of my Wiki's recent changes. This URL is http://www.debianhel…le=index&format=rss.
But when I create the block, the field PN gives me to input the URL only allows up to http://www.debianhelp.org/modules.php?op=modload&name=phpWiki&file=index&pagename=RecentChanges&op=modload&name=phpWiki&file=ind -- almost enough, but not quite.
I've put an entry directly into the database and tried the other RSS headline alternative (rss2), but I get an error when trying to run it.
Can anyone offer some advice on this? TIA. -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
intnsred
I've got a problem with PN 0.714. I want to create a RSS headline of my Wiki's recent changes. This URL is http://www.debianhel…le=index&format=rss.
But when I create the block, the field PN gives me to input the URL only allows up to http://www.debianhelp.org/modules.php?op=modload&name=phpWiki&file=index&pagename=RecentChanges&op=modload&name=phpWiki&file=ind -- almost enough, but not quite.
I've put an entry directly into the database and tried the other RSS headline alternative (rss2), but I get an error when trying to run it.
Can anyone offer some advice on this? TIA.
Two things spring to mind here without looking at the code itself.
The first is a workaround - If the feed is on your site then you should be a ble to shorten the URL by omitting the domain. So the URL becomes modules.php?op=modload&name=phpWiki&file=index&pagename=RecentChanges&op=modload&name=phpWiki&file=index&format=rss
Second if your entering data directly into the DB then a mysql string will be something similar to s:<your string="string"> where is the length of the string <your string="string">. Maybe you altered the string itself but didn't alter the length.
Still the proper solution will be to fix the length of string problem. I'll look at the code sometime this evening if someone else hasn't by then.
-Mark</your></your> -
- rank:
-
Helper
- registered:
- December 1969
- Status:
- offline
- last visit:
- 26.02.06
- Posts:
- 236
I should have thought of cutting the host/domain off and using a shortened URL. How stupid of me (and thanks for the tip!).
I've done that change, but it didn't help. I can fit the full field in, but I get the same error when using the rss2 type of block.
When using the regular rss type of block, I get nothing displayed but the block border. What's odd is that there is an asterisk appended to the title of the block each time I edit it.
My assumption is that the phpWiki's RSS which is generated isn't compatible with the PN RSS viewing functions. -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
intnsred
I should have thought of cutting the host/domain off and using a shortened URL. How stupid of me (and thanks for the tip!).
I've done that change, but it didn't help. I can fit the full field in, but I get the same error when using the rss2 type of block.
When using the regular rss type of block, I get nothing displayed but the block border. What's odd is that there is an asterisk appended to the title of the block each time I edit it.
My assumption is that the phpWiki's RSS which is generated isn't compatible with the PN RSS viewing functions.
You can check the output from the phpwiki by putting the RSS URL direct into the browser. I believe the RSS block will read RSS up to version 0.91 of the spec..
The code for the length of the RSS URL is lines 155 and 156 of rss.php in includes/rss.php (in .722). I don't have .714 handy to check the location in this version.
Code
// RSS URL
$output .= '<tr><td class="pn-normal">RSS File URL:</td><td>'
."<input type=\"text\" name=\"rssurl\" size=\"64\" maxlength=\"128\" value=\"$args[rssurl]\">";
Change the value of the maxlength parameter to something higher.
-Mark -
- rank:
-
Helper
- registered:
- June 2002
- Status:
- offline
- last visit:
- 25.07.05
- Posts:
- 281
http://www.issho.org/modules.php?op=modload&name=phpWiki&file=index&pagename=WikipnRss
first, you need to make sure your feed is valid, or adjust it so that it is.
second, PN can't handle it, as is.
there is a way to conver that Wiki feed to RSS 0.91 (which PN understands
better), but this still does not allow PN to correctly handle it (looks close
though).
new code is needed.
--
irc://irc.freenode.net/issho
talking.to/tony
-
- rank:
-
Helper
- registered:
- June 2002
- Status:
- offline
- last visit:
- 25.07.05
- Posts:
- 281
The rss feed generated by the phpWiki module can be made to display in an rss block on a PostNuke site, but it is not valid.
Check:
http://xrl.us/w3n
--
irc://irc.freenode.net/issho
talking.to/tony
