Log in

View Full Version : HTML code not converting to BBCode


Agentus
09-30-2008, 06:06 PM
Hello...

Using the RSS Feed Manager, the HTML coming from an RSS feed is not properly converting to BBCode. It worked fine for several days and now no longer works on current feeds or any new feeds that are created. I end up with a jumble of HTML code without the < > brackets so it clogs the RSS story up.

Any ideas what would be causing it?

Digital Jedi
09-30-2008, 06:30 PM
Check the HTML of the feed itself. I've had this happen when the website I'm getting feeds from is using badly constructed code. Also, do you have any modifications which affect posts installed?

Agentus
09-30-2008, 06:36 PM
Check the HTML of the feed itself. I've had this happen when the website I'm getting feeds from is using badly constructed code. Also, do you have any modifications which affect posts installed?

The feeds appear fine when viewed through a regular RSS reader. They were also doing fine earlier in the week. Not sure what changed. I am using vBadvanced CMPS, but was doing that before. Only other change I can think of is the style of the board. But switching to the Default Style doesn't help either - even though it worked fine with the new style too.

I can't think of any mods that are installed other than that.... if there is a way to import an RSS xml file that is confirmed "correct" to test, I would like to try that, but I don't know one off the top of my head and am not savvy enough to create one with ease.

Digital Jedi
09-30-2008, 06:39 PM
I meant check the actual source code of the feeds. HTML will still convert sometimes even when constructed badly, but when vBulletin converts the HTML to BBCode, it can't convert the bad stuff. Things like redundant tags or improperly nested tags can show up poorly and wreck the layout completely upon conversion. Not sure about a import process.

Agentus
09-30-2008, 06:40 PM
Also, if I turn off the "Convert HTML to BBCode" setting, it doesn't change the way the import happens. It still appears to import the RSS feed without the < and > around the HTML codes.

SEOvB
09-30-2008, 06:41 PM
is the code simplying being cut off from a limiation in the number of characters the feed is giving your site.

Agentus
09-30-2008, 06:42 PM
here is a snippet of one of the xml files being imported:

<item rdf:about="http://www.shacknews.com/onearticle.x/55007">
<title>Demigod Screenshots Get Angry, Smash Things</title>

<description>Gas Powered Games' strategy RPG Demigod (PC) has gained five new screenshots. Here, the player-controlled giant hero can be seen taking on hordes of enemies just like Defense of the Ancients, the Warcraft III modification said to inspire the game.
&lt;/p&gt;&lt;p&gt;
Now in &lt;a href=&quot;http://www.shacknews.com/onearticle.x/54794&quot;&gt;beta testing&lt;/a&gt; for paying pre-order customers, Demigod is set to land in February 2009.


&lt;/p&gt;&lt;p&gt;
&lt;div class=&quot;focalbox&quot;&gt;&lt;a href=&quot;/screenshots.x?gallery=10780&amp;game_id=4929&amp;id=126441 &quot;&gt;&lt;img src=&quot;/images/sshots/Screenshot/10780/10780_48e27b0eea2a9_thumbnail.jpg&quot;&gt;&lt;/a&gt;&lt;a href=&quot;/screenshots.x?gallery=10780&amp;game_id=4929&amp;id=126439 &quot;&gt;&lt;img src=&quot;/images/sshots/Screenshot/10780/10780_48e27af8b07ee_thumbnail.jpg&quot;&gt;&lt;/a&gt;&lt;/div&gt;</description>

<link>http://www.shacknews.com/onearticle.x/55007</link>
<dc:date>2008-09-30T14:22-06:00</dc:date>
</item>


--------------- Added 1222803804 at 1222803804 ---------------

is the code simplying being cut off from a limiation in the number of characters the feed is giving your site.

Doesn't appear that way - it is removing the < and > tags from the HTML as it is imported from the RSS xml file.

Digital Jedi
09-30-2008, 06:45 PM
Mind if we see the feed link?

SEOvB
09-30-2008, 06:47 PM
Mind if we see the feed link?

http://feed.shacknews.com/shackfeed.xml

Agentus
09-30-2008, 06:47 PM
Mind if we see the feed link?

sure: http://feed.shacknews.com/shackfeed.xml

--------------- Added 1222804120 at 1222804120 ---------------

if you would like to see the site - it's http://www.geeklockdown.com

Digital Jedi
10-01-2008, 04:22 AM
sure: http://feed.shacknews.com/shackfeed.xml

--------------- Added 1222804120 at 1222804120 ---------------

if you would like to see the site - it's http://www.geeklockdown.com
I just test ran some of your feeds, and while I get a couple of badly formed tags, I don't get anything as near as bad as what I'm seeing on your site. Have you tried re-uploading the php files that handle feeds. (I forget the relevant files, but I'm sure they're listed here somewhere.)

Agentus
10-01-2008, 09:50 PM
I just test ran some of your feeds, and while I get a couple of badly formed tags, I don't get anything as near as bad as what I'm seeing on your site. Have you tried re-uploading the php files that handle feeds. (I forget the relevant files, but I'm sure they're listed here somewhere.)

no, but would you know what those file(s) would be? is one of them functions_wysywig.php?

not sure even what to search on to find those files.

--------------- Added 1222901620 at 1222901620 ---------------

also - it looks like the &lt; and &gt; items in the feed are not parsing correctly... this not happening = weird issues once it writes the feed