vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   RSS {feed:content} problem (https://vborg.vbsupport.ru/showthread.php?t=285369)

Bioman2k 07-09-2012 07:19 PM

RSS {feed:content} problem
 
Hi guys,

I would like to add a new RSS Feed onto my board but I have a problem.
First of all, this is my feed :
http://eu.battle.net/wow/fr/feed/news


My RSS Feed doesn't have any tag like this :
{feed:content:encoded} or {feed:description}

I have only these tags : {feed:content} and {feed:title} and others but I don't care.
My question is how can I replace content by content:encoded or content by description ?

Thank you all for your help.

KR
Camille

kh99 07-09-2012 07:41 PM

I'm not sure what you're asking - is that link you posted a link to your site, or is it a site that you want to get the feed from?

You are asking about {feed:content:encoded} and {feed:description}, those are tags you use when you add a feed in the "RSS Feed Manager", so you can use whichever tags you need. (Probably I don't understand the question).

Bioman2k 07-10-2012 10:31 AM

Yes, you don't understand the question :)

I would like to add this RSS Feed :
http://eu.battle.net/wow/fr/feed/news

I would like to catch every titles and content for every articles in this feed.

If you look forward in this link you'll see this arborescence :

HTML Code:

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr-fr">
  <author>
      <name></name>
  </author>
  <title></title>
  <id></id>
  <updated></updated>
  <entry>
      <title></title>
      <published></published>
      <updated></updated>
      <id></id>
      <summary></summary>
      <content></content>
  </entry>
</feed>

I need only 2 tags for my board :

HTML Code:

<entry>
      <title></title>
      <content></content>
</entry>

Unfortunately, when I go in Admincp > RSS Feed Manager > Add new RSS Feed the result when I configure everything was not good.

In title model field I put : {feed:title} => It works !

But when I add {feed:content} in body model field => Doesn't work !

More info here : http://i.imgur.com/nDnpJ.jpg

The problem might by the attribute because Vbulletin allows only these followings :
  • title
  • description
  • link
  • id
  • date
  • enclosure_href
  • content:encoded

You see, in my RSS Feed I have {feed:content} but not {feed:content:encoded}.

How can I force vB to use {feed:content} instead of {feed:content:encoded} ?

Thank you

kh99 07-10-2012 11:47 AM

Ok, I think I see the problem but I don't know what to do about it. It seems that if a feed is going to contain some html (of a forum article, for instance), then there are two basic ways it can be in the feed - as CDATA, in which case it's just a string to the xml parser, or else it can be part of the xml document, since html tags can be parsed like xml (I guess this is called xhtml). This second way is what's in your feed as the <content>, but I don't think the vbulletin feed reader can handle that option (or if it can, there's something about your feed that isn't working right). The result is that the value of feed:content is a big array containing the html data, and the rss poster doesn't know how to display that.

Sorry, I know this isn't very helpful. I might have more time to look for a solution later, if no one else comes up with anything.


All times are GMT. The time now is 11:25 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.01563 seconds
  • Memory Usage 1,723KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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