Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-14-2008, 05:26 PM
David LeBow David LeBow is offline
 
Join Date: Aug 2008
Location: Switzerland
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default RSS Feed in vB 3.7.4

I'm trying to add an RSS feed to my site which will then populate a forum thread. The feed is here:
http://www.swissinfo.ch/eng/rss/business/index.xml
Unfortunately, when I preview the feed, I get the following message:
Warning: fsockopen() [function.fsockopen]: unable to connect to www.swissinfo.ch:80 (Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht ordnungsgem?? reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat. ) in [path]\includes\class_rss_poster.php on line 98
Warning: Unable to fetch RSS Feed in [path]\includes\class_rss_poster.php on line 231
The German is roughly: the connection attempt failed because the opposing side didn't answer correctly within the given time or the connection was faulty because the connected host didn't respond.

I can imagine that there may be some required setting at the server, but could anyone point me in the general direction so that I can let them know where to look?

Thanks.
Reply With Quote
  #2  
Old 12-15-2008, 02:00 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Most likely, there may be a firewall in place on the server blocking such connections.
Reply With Quote
  #3  
Old 12-19-2008, 01:39 AM
newguy's Avatar
newguy newguy is offline
 
Join Date: Nov 2007
Location: USA
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Most likely, there may be a firewall in place on the server blocking such connections.
Would a firewall mess with the RSS feed in any other way? I am not getting the feed posted like it is from the source.
Reply With Quote
  #4  
Old 12-19-2008, 02:34 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

View the RSS feed in a RSS feed viewer, see if that matches whats posted in your forum
Reply With Quote
  #5  
Old 12-19-2008, 02:54 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by newguy View Post
Would a firewall mess with the RSS feed in any other way? I am not getting the feed posted like it is from the source.
No, a firewall should either allow something, or block something. It should not alter it.
Reply With Quote
  #6  
Old 12-19-2008, 07:27 AM
David LeBow David LeBow is offline
 
Join Date: Aug 2008
Location: Switzerland
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to wrap up my question: it turns out that the hoster was blocking access of this sort back out through the firewall. They've enabled access for the feeds I was after and it seems to work fine.

The problem above ("something not formatted correctly") might be related to something I saw once the feed worked. The default body template which is provided when creating a new feed needed a bit of work. Default is this:

PHP Code:
{feed:description}

[
url={feed:link}]More...[/url
I added quotation marks so that the [url] tag didn't show up as [url] in the feed.

PHP Code:
{feed:description}

[
url="{feed:link}"]More...[/url
Reply With Quote
  #7  
Old 12-20-2008, 10:33 AM
newguy's Avatar
newguy newguy is offline
 
Join Date: Nov 2007
Location: USA
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
No, a firewall should either allow something, or block something. It should not alter it.
Mine is getting altered.

Quote:
Originally Posted by David LeBow View Post
Just to wrap up my question: it turns out that the hoster was blocking access of this sort back out through the firewall. They've enabled access for the feeds I was after and it seems to work fine.

The problem above ("something not formatted correctly") might be related to something I saw once the feed worked. The default body template which is provided when creating a new feed needed a bit of work. Default is this:

PHP Code:
{feed:description}

[
url={feed:link}]More...[/url
I added quotation marks so that the [url] tag didn't show up as [url] in the feed.

PHP Code:
{feed:description}

[
url="{feed:link}"]More...[/url
I will try this and report back...
Reply With Quote
  #8  
Old 12-20-2008, 10:59 AM
David LeBow David LeBow is offline
 
Join Date: Aug 2008
Location: Switzerland
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I am not getting the feed posted like it is from the source.
Maybe you could post the nature of the changes.

Keep in mind, if you view the source, it often comes with a DTD which adds formatting information which is rendered by your viewer or browser. Your forum post won't interpret that. It's all about the template and whatever you do with that in the RSS Manager. You can basically count on the text content (is it correct?) but the formatting's up to you.
Reply With Quote
  #9  
Old 12-21-2008, 09:17 AM
newguy's Avatar
newguy newguy is offline
 
Join Date: Nov 2007
Location: USA
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The text is correct, but all links are typed in and showing http:// what ever the link is and they are not links. Just plain text... All links are plain text.

If you were to type a URL in notepad that is what all RSS posts look like for me.

Here is a post by my RSS account.....That is what was actually posted. When I look at the feed in IE from the source all is fine with it. But the result is below.

Quote:
Marcus Dairy, Inc. - Danbury, CT has an immediate opening for Class B CDL. Teamster union salary and benefits pkg. Apply in person 3 Sugar Hollow Road, Danbury... br From HotJobs - a href="http://www.indeed.com/job/ROUTE-DELIVERY-at-MARCUS-DAIRY-in-Danbury,-CT-61d3cc3b19fbf214"save job, email, more.../a
I have been testing and the {feed:description} & {feed:title} is working correctly. The problem I have is in the body template.
Reply With Quote
  #10  
Old 12-21-2008, 09:26 AM
David LeBow David LeBow is offline
 
Join Date: Aug 2008
Location: Switzerland
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok... I might have the answer for you. I had the same problem. I had thought that it was the quotes in the template (see above). I'm now fairly convinced that it had to do with the forum definition. Check the forum definitions for

Allow BB Code

I'm pretty sure you want it set to yes. Otherwise the links come in as [url].

Another question - the template only expands a small set of codes. Does your RSS feed have a <link> element? If it's called something else, the {feed:link} tag (see sample above) won't find it.

If the BB Code doesn't solve the problem, you'd need to post a sample item from your feed.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06246 seconds
  • Memory Usage 2,273KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete