vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   RSS posting question marks (https://vborg.vbsupport.ru/showthread.php?t=269194)

CClements 08-26-2011 07:24 PM

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!

CClements 08-28-2011 10:21 PM

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?

kh99 08-28-2011 11:16 PM

Can you post the feed that's giving you problems (or PM me if you don't want to post it in public)?

CClements 08-30-2011 04:54 AM

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 :D

kh99 08-30-2011 01:03 PM

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?

CClements 08-30-2011 09:42 PM

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:

https://vborg.vbsupport.ru/external/2011/08/4.jpg

kh99 08-30-2011 10:13 PM

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).

CClements 08-30-2011 10:18 PM

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.

kh99 08-30-2011 11:23 PM

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?

CClements 08-31-2011 01:05 AM

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 :D


All times are GMT. The time now is 01:13 PM.

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.01021 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete