Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-26-2011, 07:24 PM
CClements CClements is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default RSS posting question marks

Hi all,

I configured vb4 to pull RSS feeds from a website and post them to the forum. However, when the bot posts them, the post has question marks and asterisks replacing apostrophes and other punctuation. The formatting looks off and the article is hard to read. Is there something I'm doing wrong? Or is there a way to fix this? Thanks in advance!
Reply With Quote
  #2  
Old 08-28-2011, 10:21 PM
CClements CClements is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems this issue is due to pulling RSS feed from XML sites. When the site has .rss, it works fine, but most of the sites I want to pull from are XML. Anyone know a way to format XML sites properly so question marks and asterisks aren't being inserted throughout the feed when it's posted to the forums?
Reply With Quote
  #3  
Old 08-28-2011, 11:16 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you post the feed that's giving you problems (or PM me if you don't want to post it in public)?
Reply With Quote
  #4  
Old 08-30-2011, 04:54 AM
CClements CClements is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi kh99,

This is the feed I'm trying to pull from

http://www.marines.mil/tnsw/_layouts...9-1f50498cee99

It's a news feed from the Marines.mil site. For some reason, when the RSS posts the feed in the forums, it seems like it replaces characters with question marks and asterisks. I'm not really sure why, but if you could help me figure out a way to clean it up and format it correctly, I'd be eternally grateful
Reply With Quote
  #5  
Old 08-30-2011, 01:03 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see a few '*' in there. This seems to be caused by the "non-breaking space" character (160) being listing in "Blank Character Stripper" under "Censorship Options" in the adminCP. For some strange reason, the characters you list there are replaced with the censoring character '*'. (It seems like it would be a better idea to just use a space, but maybe there's a reason for it being the way it is).

I don't see any '?' in the feed you gave me. Can you maybe point out a specific article?
Reply With Quote
  #6  
Old 08-30-2011, 09:42 PM
CClements CClements is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi kh99,

Of course after I say something, the Marines.mil feed doesn't seem to be doing it right now. Here's one from the NRA that I just started using:

http://www.nraila.org/xml/RSS.aspx

Here's a screenshot of what it's producing. You can see the question marks and asterisks in the feed:

Reply With Quote
  #7  
Old 08-30-2011, 10:13 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, sorry I have to ask another question but: how do you get the full article like that? I'm only getting the first sentence or two (which may be why I wasn't seeing the '?'s in the other feed).
Reply With Quote
  #8  
Old 08-30-2011, 10:18 PM
CClements CClements is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi kh99,

I was using these guys to pull the full feed:

http://fulltextrssfeed.com/

I've tried using the straight feed which pulled the first couple sentences, and I've tried using these guys to pull the full article. It's adding the question marks and asterisks on both accounts.
Reply With Quote
  #9  
Old 08-30-2011, 11:23 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, after all this I'm not sure I'm going to be able to help, because I don't get any question marks. Like I mentioned above, I can get rid of the '*'s by removing 160 from "Blank Character Stripper" in the "Censorship Options". Do you know if you've changed the character set your site is using? When you created the feed, did you choose anything other than the default options?
Reply With Quote
  #10  
Old 08-31-2011, 01:05 AM
CClements CClements is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't change anything from the default options for the RSS feed. After I couldn't figure out how to get rid of the ? and * originally, I tried changing to utf-8 for the character set, which is still what I have it set to. I'll try the blank character stripper trick you mentioned. Maybe I can figure something else out.

Thanks for giving me a hand with this kh99! I might not find a solution to this anytime soon, but I can't thank you enough for helping me try to find one
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 02:02 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09486 seconds
  • Memory Usage 2,239KB
  • Queries Executed 11 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete