![]() |
|
#21
|
|||
|
|||
|
Quote:
Have you tried using the url with one of the rss feed readers to see if you get a similar error? It seems like the site is refusing the connection based on referr or some such.
__________________
Tom Morris Porsche Boxster discussion forum. Today's Conservative discussion forum. |
|
#22
|
||||
|
||||
|
That's pretty much what I suspected. Perhaps I'll contact them.
I only tried it with my.yahoo and it said invalid feed the first time, then added it after I inserted the (same) url a second time. I did try several validator services, some said it was a valid feed others said it was invalid. I'm sorry I can't provide more useful info for you but it was about 4:30 am so my memory of specific details is kinda foggy. Thanks for taking the time to look for me. I do appreciate it and I'm still going to use it, only with different feeds. If I find out anything from them that might be useful for you in the future, I'll post it here. |
|
#23
|
|||
|
|||
|
Yea I have all the proper template references in both places.. still just spins its wheels (never loads the page)
Does that RDF feed work okay for you? |
|
#24
|
||||
|
||||
|
I just tried it and it works for me.
News From the Shacknews Supreme Commander Preview Codename: Panzers Phase Two Demo Black & White 2 Preview Game Jobs Going to India Brian Reynolds Q&A
|
|
#25
|
|||
|
|||
|
frunk
![]() can you paste your module contents here? btw im using cmps 2.0 not 1.0 |
|
#26
|
||||
|
||||
|
I'm using 1x here, I copied the 3 templates just as they were in the txt file:
adv_portal_rss adv_portal_rssbits adv_portal_rennbits There's one line in the rssfeed.php that I edited (line 25) PHP Code:
my rssmain.php looks like this: PHP Code:
|
|
#27
|
|||
|
|||
|
gotta be something in 2.0 freaking it out
![]() cache is ok... I can use the default rssmain.php file in a php module just fine which makes it frustrating |
|
#28
|
||||
|
||||
|
I'll try to install it on my local intall of cmps 2x and see if I can make it work there.
It'll be later cuz I have housework to do and I'm just a novice so I'm not making any promises. ![]() and you're abosultely sure you didn't miss a ',; or something? ' is the one that gets me every time!
|
|
#29
|
||||
|
||||
|
I got it working with that feed on my local 2x install...
Nothing different in the templates or the files though. Perhaps your selections when you created the module? I did add the module as: php file File to Include: rssmain.php (or whatever you named it to) Templates to include: adv_portal_rss, adv_portal_rssbits, adv_portal_rennbits Use Module Shell Template No
|
|
#30
|
|||
|
|||
|
Just a note... there's no need to include the adv_portal_rennbits template unless you are actually using it. I included it in the samples as just that - a sample to see how a modified version looked.
__________________
Tom Morris Porsche Boxster discussion forum. Today's Conservative discussion forum. |
|
#31
|
||||
|
||||
|
Thanks for pointing that out Tom! I wasn't sure so I figured better safe than sorry.
I'm still bound and determined to get that other feed working. I should hear back from their web team on Monday. The gal who answered couldn't tell for sure if the feed was only allowed to certain hosts or aggregators/services. She didn't think so but wasn't sure. This is gonna take a lot of reading but it'll be worth it in the long run. Thanks for getting me started!
|
|
#32
|
||||
|
||||
|
I found out why the other feed (and I suspect this could affect other feeds somewhere along the way) wasn't working.
The hosts are using the "ModSecurity" Apache Web server module which is going to block (for security reasons) any web requests that use PHP's "fopen" command. Instead we should use PHP's "libcurl" extension which is safer: http://us2.php.net/curl and http://us2.php.net/manual/en/function.curl-setopt.php I tested pulling the feed, just in a single php file with no formatting, and it was able to access it using this method. Hope this is useful to the discussion... |
|
#33
|
|||
|
|||
|
Interesting... yet shacknews worked for you?
Tom can you implement the curl change? |
|
#34
|
||||
|
||||
|
Hey x[sliver], yes Shacknews did work for me with the original rssfeed.php. It should work for you assuming that you implemented it correctly and assuming that there's not something else going on on their end.
I was hoping that you got it working when you didn't come back soon. ![]() On another note, I'm attaching the new rssfeed_with_curl.php file. That works for the feed that I wanted to get. I just added the necessary changes to the original posting and remarked out the relevant fopen calls. So you'd use it, just like you would the rssfeed.php in the original post. Tom, I hope this is ok, otherwise, I'll delete my post. I also added target="_blank" to the anchor in the adv_portal_rssbits template cuz it bugs me for it to open in the same browser window. Last edited by SomeName; 07-12-2005 at 04:43 AM. |
|
#35
|
|||
|
|||
|
I'll give it a shot tonight and report back.. thanks guys!
|
|
#36
|
|||
|
|||
|
I'm succesfully using your curl edited module.. thank you very much!
Now only for that news hack for 2.0..ugh |
|
#37
|
||||
|
||||
|
Yay!
Thanks for the update!
|
|
#38
|
|||
|
|||
|
1. Create the templates as they are listed in the install file.
2. rename rssmain.php to something descriptive for the particular feed you are pulling in my case I renamed it to espn.php. This is useful if you will be pulling multiple feeds. The file just needs to be copied, renamed and add the new url within it. Edit the file to include the URL of your feed. Set the TTL if your feed does not have it. TTL is specified in minutes. The longer you can go between refreshing the cache, the better your performance. 3. Edit rssfeed.php to include your absolute path to a cache directory (you will have to create that DIR and chmod it to 777). 4. FTP your renamed rssmain.php and rssfeed.php to your modules folder. 4. add the module in CMPS admin as php, include the templates and select your php file from the dropdown. 5. Use module shell template should be set to "NO" 6. Enjoy. Thanks to the author, this mod absolutely kicks butt. Last edited by roscoe36; 07-30-2005 at 03:24 PM. |
|
#39
|
|||
|
|||
|
Got this error when trying to install it to a CMPS2 forum, any clue?
Quote:
|
|
#40
|
|||
|
|||
|
Probably a code error. Care to post the contents?
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Webcam Feed Module | SVTOA | Add-On Modules & Modifications | 11 | 06-11-2006 01:14 PM |
| Making an RSS Feed | Glenn Sand | Troubleshooting / "How do I..." Questions | 1 | 05-02-2005 01:08 PM |
| Want to add a News Feed | C_P | Troubleshooting / "How do I..." Questions | 2 | 10-09-2004 05:39 PM |
| User customizable CMPS page | ogetbilo | Feedback & Suggestions | 1 | 05-20-2004 12:04 PM |