View Full Version : [Module] Customizable RSS feed module
Pages :
1
2
3
4
[
5]
6
7
8
9
10
11
12
13
schford
02-23-2006, 11:46 AM
Could someone help me out with this.....I am guessing javescipt to keep it spinning maybe?
Great RSS feed by the way - love it :-)
I've installed this once and it worked great, but I had problems with some cmps tables so I've removed cmps and re-installed.
When trying to re-install the module I get this:
Database error in vBulletin 3.5.4:
Invalid SQL:
INSERT INTO vb_phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_portal_rss_iconid_title', 'Icon ID to use', 5000);
MySQL Error : Duplicate entry 'setting_portal_rss_iconid_title-0-5000' for key 2
Error Number : 1062
I've tried deleting the module, removing the tmeplates and the php before installing it again, but the thing happens
Any ideas how I cna fix it to reinstall again.
Thanks
Stuart
Tom M
02-24-2006, 02:52 PM
I've installed this once and it worked great, but I had problems with some cmps tables so I've removed cmps and re-installed.
<snip>
I've tried deleting the module, removing the tmeplates and the php before installing it again, but the thing happens
Any ideas how I cna fix it to reinstall again.
Since CMPS won't allow an overwrite there are only 2 choices -
1) Modify the CMPS module installation code to continue after the error
2) Manually delete the table entries from the DB using mysql or phpmyadmin
The latter is probably the easiest. If you need help PM me with the necessary info for Cpanel or vb admin access and I can take care of it.
schford
02-25-2006, 03:37 PM
Hello again :-)
Could I trouble you to help with a quick mod of this code....
the current code is
$rss_item['DESCRIPTION'] = substr($rss_item['DESCRIPTION'], 0, strrpos(substr($rss_item['DESCRIPTION'], 0, 200), ' ')) . ' ......... ' ;
In an ideal world I would love any images that get brought up to be shown really small eg 150 by 100 or failing that not to show them at all.
Many thanks if you get the time to help out with this, as alas I am a bit of a stumbling fool when it comes to code!
Stuart
Tom M
02-25-2006, 04:08 PM
Hello again :-)
Could I trouble you to help with a quick mod of this code....
the current code is
$rss_item['DESCRIPTION'] = substr($rss_item['DESCRIPTION'], 0, strrpos(substr($rss_item['DESCRIPTION'], 0, 200), ' ')) . ' ......... ' ;
In an ideal world I would love any images that get brought up to be shown really small eg 150 by 100 or failing that not to show them at all.
Many thanks if you get the time to help out with this, as alas I am a bit of a stumbling fool when it comes to code!
Stuart
Creating custom code to modify a feed can be fairly complex as it really depends on the contents of the feed being used. If you really need this kind of support feel free to PM me and we can discuss it.
schford
02-25-2006, 04:12 PM
Pm sent - thanks.
Stuart
redlabour
03-06-2006, 05:02 AM
Thx .. but i wonder why this is still not a default Module in vbAdvanced.
redlabour
03-07-2006, 06:37 AM
If you examine the feed you'll see that it also doesn't meet the requirements.
You can read about file formats here (http://blogs.law.harvard.edu/tech/rss) and here (http://en.wikipedia.org/wiki/RSS_(protocol)).
Basically, the application supports the RSS 2.* branch and not the RSS 1.* formats.
???
I can not use my whole RSS Feeds i used before with all other online RSS Readers :
http://www.islaminstitut.de/32.100.html
http://www.netzeitung.de/export/news/rss/titelseite.xml
http://focus.msn.de/fol/XML/rss_folnews.xml
http://www.tagesschau.de/newsticker.rdf
.................
When will it be fixed ? As now it is useless to the most Feeds. :(
Tom M
03-07-2006, 11:15 AM
???
I can not use my whole RSS Feeds i used before with all other online RSS Readers :
http://www.islaminstitut.de/32.100.html
http://www.netzeitung.de/export/news/rss/titelseite.xml
http://focus.msn.de/fol/XML/rss_folnews.xml
http://www.tagesschau.de/newsticker.rdf
.................
When will it be fixed ? As now it is useless to the most Feeds. :(Based on the 4 feeds you listed there doesn't seem to be anything that needs to be fixed as the module works fine with all 4 of the above feeds. If you are having difficulty using the module you might post exactly what that problem is.
redlabour
03-07-2006, 11:59 AM
No Errormessages - nothing appears. :(
After reading the whole Thread i thought they are not compatible.
Tom M
03-07-2006, 12:02 PM
No Errormessages - nothing appears. :(
After reading the whole Thread i thought they are not compatible.If nothing appears and there are no error messages then there are 2 likley causes.
1. The module is not marked as 'Active'.
2. The module is not selected to show on the page.
b6gm6n
03-09-2006, 08:06 PM
Tom this mod is finally AWESOME!...started a fresh, new CMPS and your new RSS mod... all installed and worked like a charm, thankyou! :)
redlabour
03-10-2006, 02:13 AM
2. The module is not selected to show on the page.
I do not see any Checkbox like this .....
Tom M
03-10-2006, 03:32 AM
I do not see any Checkbox like this .....It's under the 'Edit Page' section for CMPS in the ACP.
axelerator
03-10-2006, 10:07 AM
This is going to sound like a broken record but here goes:
1. Using VB3.5.3 CMPS 2.1.0
2. The module is marked as 'Active'.
3. The module is selected to show on the page.
4. Permissions on cache directory is 777
5. Cache file appears using sample XML media-cyber.law.harvard.edu-blogs-gems-tech-rss2sample.xml.cache
But No output or error message on my page.
What's the best way to debug this?
Axel
Tom M
03-10-2006, 11:20 AM
This is going to sound like a broken record but here goes:
1. Using VB3.5.3 CMPS 2.1.0
2. The module is marked as 'Active'.
3. The module is selected to show on the page.
4. Permissions on cache directory is 777
5. Cache file appears using sample XML media-cyber.law.harvard.edu-blogs-gems-tech-rss2sample.xml.cache
But No output or error message on my page.
What's the best way to debug this?
Axel
Thanks for all the details. Does the cache file have a size of 0? If not then I'd start by putting print statements in the php file to see what's happening.
Alternatively, you can try the CURL version of the php file that's attached to this post. Upload it to your modules folder and point the RSS feed module to it instead of rss_cmps2.php. The only change is that it uses CURL to access the remote feed and fopen to access the local files instead of fopen for everything.
axelerator
03-11-2006, 04:04 PM
Does the cache file have a size of 0? If not then I'd start by putting print statements in the php file to see what's happening.
.
Yes the file is non zero and contains the valid XML file from the remote site.
The bad news:
Its not working on my development platform FC4 using PHP4.4.1.
The good news:
Its working at my ISP using FC3 and PHP4.3.1.
Its possible that I am missing some prerequesite PHP libraries....:rolleyes:
Tom M
03-11-2006, 04:23 PM
Yes the file is non zero and contains the valid XML file from the remote site.
The bad news:
Its not working on my development platform FC4 using PHP4.4.1.
The good news:
Its working at my ISP using FC3 and PHP4.3.1.
Its possible that I am missing some prerequesite PHP libraries....:rolleyes:
Well it's not PHP by itself as I'm on 4.4.1 as well and it works fine. You could try removing the comment from line 225 and run as admin to see if it's at least going through the loop and trying to process the file. Since the xml file is known to be good about the only thing that could cause a problem would be if the xml routines weren't working for some reason. To test that you could try and comment out line 197 and remove the comments from 199-201.
axelerator
03-13-2006, 04:09 AM
Well it's not PHP by itself as I'm on 4.4.1 ..
Agreed.
After debugging rss_cmp2.php line by line discovered that everything worked except near the end at the final template inclusions (line 275). $rssbits turned up empty.
unticked "Clean File Output" and now it works. :)
I had this unticked initially but then forgot about this when trying other selectable permutations. :rolleyes:
Thanks for all the feedback
redlabour
03-13-2006, 01:24 PM
The Data qualification code may be used to filter out individual feed items if desired. Use the text box to enter the appropriate php code to evaluate the $rss_item data and return a 'true' or 'false' value according to whether the item should be displayed.
Please post a example. I do not understand what this Code has to look like.
I want to only display the Title in one of my Feeds.
Tom M
03-13-2006, 01:30 PM
Please post a example. I do not understand what this Code has to look like.
I want to only display the Title in one of my Feeds.If you only want to display the title and not the description then you want to use the Data modification area. All you should need to do is add$rss_item['DESCRIPTION'] = '';The above will remove the description from all the items in a given feed.
jaybolt
03-14-2006, 03:58 AM
Installed and works great. I have allowed scroll bars BUT I only want them to scroll vertically. How can I fix the width to the with of the module?
Cheers.
redlabour
03-14-2006, 06:30 AM
Same question here.
dc1pop
03-22-2006, 01:13 PM
Hi guys, ive just changed host and getting these errors:
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /modules/rss_cmps2.php on line 221
Warning: file_get_contents(http://home.skysports.com/rss/1/2.xml): failed to open stream: Success in /modules/rss_cmps2.php on line 221
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /modules/rss_cmps2.php on line 221
Warning: file_get_contents(http://home.skysports.com/rss/1/2.xml): failed to open stream: Success in /modules/rss_cmps2.php on line 221
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /modules/rss_cmps2.php on line 221
Warning: file_get_contents(http://home.skysports.com/rss/1/2.xml): failed to open stream: Success in /modules/rss_cmps2.php on line 221
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /modules/rss_cmps2.php on line 221
Warning: file_get_contents(http://home.skysports.com/rss/1/2.xml): failed to open stream: Success in /modules/rss_cmps2.php on line 221
Domain is: http://www.footballtalk.org/
I have tried various feeds which i know work and did work before the change so im not sure.
Any help appricated, Thanks.
Tom M
03-22-2006, 01:22 PM
Hi guys, ive just changed host and getting these errors:
<snip>
Domain is: http://www.footballtalk.org/
I have tried various feeds which i know work and did work before the change so im not sure.
Any help appricated, Thanks.This looks like the permissions on your "new" cache directory aren't set to 777. That, or your new host doesn't allow fopen() to be used with external feeds. If it winds up being the latter I've got a version that uses CURL instead.
dc1pop
03-22-2006, 02:08 PM
This looks like the permissions on your "new" cache directory aren't set to 777. That, or your new host doesn't allow fopen() to be used with external feeds. If it winds up being the latter I've got a version that uses CURL instead.
The permissions are set fine accorinding to cPanel and FTP so il email them about fopen.
Thanks :)
jaybolt
03-23-2006, 01:44 PM
Tom - the feed I am displaying is showing some unwanted characters, namely "Â" which I am assuming is a carriage return on the blog site. The RSS is UTF-8 encoded.
You can see the RSS on the right hand column here (http://www.yorkshire-divers.com). One idea would be to simply remove the character from the stream? If that is possible, then what do I need to do?
Cheers
Tom M
03-23-2006, 02:05 PM
Tom - the feed I am displaying is showing some unwanted characters, namely "Â" which I am assuming is a carriage return on the blog site. The RSS is UTF-8 encoded.
You can see the RSS on the right hand column here (http://www.yorkshire-divers.com). One idea would be to simply remove the character from the stream? If that is possible, then what do I need to do?
CheersDo you have a link to the raw feed?
If all you want to do is strip certain characters from the feed add the appropriate code to the Code modification section to remove those characters from the description.
As an example, if I wanted to remove all of the letter 'X' from the feed I would do$rss_item['DESCRIPTION'] = str_replace('X', '', $rss_item['DESCRIPTION']);
jaybolt
03-23-2006, 03:43 PM
Perfect Tom - thanks very much.
VVIper
04-07-2006, 10:17 PM
i get nothing, no errors and nothing is displayed any ideas?
I have made a directory in the root of the public html folder called cache and made it 777.
Any help would be appreciated
Tom M
04-07-2006, 11:12 PM
i get nothing, no errors and nothing is displayed any ideas?
I have made a directory in the root of the public html folder called cache and made it 777.
Any help would be appreciatedFrom an earlier response to a similar question...
If nothing appears and there are no error messages then there are 2 likely causes.
1. The module is not marked as 'Active'.
2. The module is not selected to show on the page.
It's also helpful if you can post a link to the site in question.
VVIper
04-07-2006, 11:28 PM
Yes you where right thankyou.
now i get an error
Fatal error: file_put_contents cannot write in file. in /modules/rss_cmps2.php on line 125
I changed that file to 777 but it makes no difference.
Tom M
04-07-2006, 11:34 PM
Yes you where right thankyou.
now i get an error
Fatal error: file_put_contents cannot write in file. in /modules/rss_cmps2.php on line 125
I changed that file to 777 but it makes no difference.If you have the cache directory set up with 777 permissions this may mean that your host doesn't allow fopen() to be used with remote sites. If that's the case I do have an identical version except for the fact that it CURL to access the rss feed instead of fopen(). Let me know if this is the case with your host and I'll see you get a copy of it and that should clear up the problem.
VVIper
04-08-2006, 04:11 AM
Thanks for the reply, i am unsure what te command fopen() is or whether it is offered from my host. Is there any whay of checking maybe via phpinfo?
Tom M
04-08-2006, 09:47 AM
Thanks for the reply, i am unsure what te command fopen() is or whether it is offered from my host. Is there any whay of checking maybe via phpinfo?The simplest thing to do if you are unsure is to ask the support staff of your host.
ColossusCH
04-18-2006, 08:36 PM
Hi Tom, Hi to everybody,
i'm new in vBadvanced, but i like it,
your beautiful module is perfect for my, but i have one problem,
i can't see german letter like "ä ö ü"
the feed is utf8
from here http://wow.gamona.de/rss/news.php,but wat i see in your module is: "Wöchentliche Wartungsarbeiten und Zwischenpatch"
instad of: "Wöchentliche..."
my HP is http://www.colossus.li
thank you for your module, and thank you for your help.
Best regardes:
Thomas
Tom M
04-18-2006, 09:50 PM
the feed is utf8Someone had a similar problem a while ago and their solution can be found here. If you have the right library loaded on the server I would think that it should work for you as well.
TeddyKGB
04-25-2006, 09:03 PM
Phew 8 pages later and I found a few people with my same problem but no answers.
Idownloaded the file on page 1 - check
use the download/upload module to upload rssfeed.module - check
configure setting to mark active - check
insert rss feed - check; used http://www.theclemsonboard.com/external.php?type=rss2
insert cache address and set to 777 - check used /kunden/homepages/12/d158571244/htdocs/test/rsscache
But nothing appears on my homepage, not even a blank module box. What am I doing wrong?
Tom M
04-25-2006, 09:37 PM
Phew 8 pages later and I found a few people with my same problem but no answers.
<snip>
But nothing appears on my homepage, not even a blank module box. What am I doing wrong?
The standard questions are...
Did the cache file get created and does it have data in it?
Did you check to make sure the module is checked off on the page that's used?
redlabour
04-25-2006, 11:22 PM
But nothing appears on my homepage, not even a blank module box. What am I doing wrong?
You do not have to check it only "active" at the Modulsettings.
Make sure you have activate it at your Pagesettings too.
I am one of the Guys who did not found it for the first Time too. :cool:
Golab
04-28-2006, 04:40 PM
Can anybody help my, my question is way do the RSS Module only show on vB standard skin? when i us skin i haw ordered from the net the Module don't show on the new skin :,-(
Tom M
04-28-2006, 06:32 PM
Can anybody help my, my question is way do the RSS Module only show on vB standard skin? when i us skin i haw ordered from the net the Module don't show on the new skin :,-(
Do you have a link to check things out?
Golab
04-28-2006, 08:55 PM
Do you have a link to check things out?
my page http://www.smartpocket.org/index.php
i haw tryd meny skins non of then can show ur module only the standard skin
// Sorry About My Spelling Im Dyslectic //
Tom M
04-28-2006, 10:12 PM
i haw tryd meny skins non of then can show ur module only the standard skinThe problem is that the templates used by the module are only in the default style. If the other styles were made children of the default style it should work. The other way to deal with it is to copy the templates that the module uses into each of the custom styles.
GuaRRand
05-23-2006, 03:51 AM
The other way to deal with it is to copy the templates that the module uses into each of the custom styles.
I dont get what ur trying to say...
I have a multitude of templates/styles, but when i upload/install this, i can only choose one style to implement it in. How do i get it on my other styles also?
(some small description maybe please??)
Tom M
05-23-2006, 01:19 PM
I have a multitude of templates/styles, but when i upload/install this, i can only choose one style to implement it in. How do i get it on my other styles also?The templates must exist in each style that can be shown. This most often happens when the styles are 'children' of the default style and they get inherited automatically. If, on the other hand, each style is completely stand-alone then you will need to add the templates to each style yourself. This is best done not by uploading the module multiple times but by simply copying the templates from one style to the next. If you have 20 styles that are separate then you will need to copy the templates 20 times. This would be true for any module you add that has its own templates.
TXphi592
05-30-2006, 05:26 PM
wow, this worked like a charm! Thanks tom!
Sierus
05-31-2006, 03:32 PM
Very nice module Tom, thank you!
tbradham
06-07-2006, 11:09 AM
I know this has been asked a hundred times, but I really can't figure it out.
Site: www.usjeeps.com
I am getting the: Fatal error: file_put_contents cannot write in file. in /modules/rss_cmps2.php on line 125
I know it is a problem with the cache file permissions, but I am just not sure what it is. I think I am having trouble identifying the true path.
My VB 3.5 is installed in /public_html/upload and my cmps_index.php file is in /public_html
I have put cache folders all over the place and I still can't get it to work. Is there a way to definitively figure out the path?
For example, I created a folder called cache in /public_html, changed permissions to 777 both through my ftp client and through the cpanel.
What’s the right path for that folder?
TIA
Tom M
06-07-2006, 11:26 AM
The other problem might be that your host doesn't allow fopen() to be used with remote sites. Check with them and see if that's the case. If it is I do have a version that makes use of CURL that you could use.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.