Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 07-09-2012, 08:19 PM
Bioman2k Bioman2k is offline
 
Join Date: Dec 2003
Location: France
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 07-09-2012, 08:41 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #3  
Old 07-10-2012, 11:31 AM
Bioman2k Bioman2k is offline
 
Join Date: Dec 2003
Location: France
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 07-10-2012, 12:47 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:33 PM.


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.08019 seconds
  • Memory Usage 2,182KB
  • 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
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete