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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-25-2010, 06:53 PM
DesignWerks DesignWerks is offline
 
Join Date: Apr 2009
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default RSS Widget with thumbnail/description

Prior to the 4.0.2 upgrade, I had an RSS Widget installed which called the feed at http://eqquest.com/marketplace_test/rss_featured.php

The result looked like http://www.eqquest.com/proofs/Widget.jpg

The vbcms_widget_rss_page template code was as follows:
Code:
<div class="cms_widget">
<div class="block">
<!-- Rss Header -->
<div class="cms_widget_header">
<h3><img src="/marketplace/media/icons/Feed_16x16.png" alt="RSS" /><a href="{vb:raw rsslink}">&nbsp;{vb:var rsstitle}</a></h3>
</div>

<!-- Rss Data -->
<div class="cms_widget_content">
<vb:comment>
{vb:raw rssdescription}
</vb:comment>
<vb:each from="details" key="id" value="detail">
<div class="cms_widget_post_bit">
<h4 class="cms_widget_post_header_rss"><a href="{vb:raw detail.link}">{vb:raw detail.title}</a></h4>
{vb:raw detail.summary}
{vb:raw detail.author}
</div>
</vb:each>
</div>
<vb:comment>
- feed_count is number of records shown
- more_data is whether there are more records.
- rsstitle is the title pulled from rss
- widgettitle is the title of the widget
</vb:comment>
<vb:comment>
<vb:if condition="$more_data">
<a href="{vb:raw rssurl}">{vb:rawphrase read_more}</a>
</vb:if>
</vb:comment>
</div>
</div>
<br />
With the 4.0.2 Update the template changed to the following:
Code:
<div class="cms_widget">
	<div class="block">

	<!-- Rss Header -->
	<div class="cms_widget_header">
		<h3><img src="{vb:stylevar imgdir_cms}/widget-rss.png" alt="RSS Widget" /> <a href="{vb:raw rss_link}"> &nbsp;{vb:raw rss_title}&nbsp; RSS</a></h3>
	</div>

	<!--  Rss Data  -->
	<div class="cms_widget_content">
		<!-- {vb:raw rss_description} -->

		<vb:each from="rss_items" key="id" value="item">
			<div class="cms_widget_post_bit">
				<h4 class="cms_widget_post_header"><a href="{vb:raw item.link}">{vb:raw item.title}</a></h4>

				<!--   
				{vb:raw item.summary} <br />
				{vb:raw item.author} <br />
				-->
			</div>
		</vb:each>


	</div>

<vb:comment>
	<vb:if condition="$rss_more">
		<a href="{vb:raw rss_url}">{vb:rawphrase read_more}</a>
	</vb:if>
</vb:comment>

</div>
</div>

Uncommenting the
Code:
{vb:raw rss_description}
and

Code:
<vb:if condition="$rss_more">
		<a href="{vb:raw rss_url}">{vb:rawphrase read_more}</a>
	</vb:if>
successfully displays that information, but uncommenting the
Code:
{vb:raw item.summary} <br />
	    {vb:raw item.author} <br />
no longer displays anything - just <br> <br>. I tried using the code from the older template to no avail

Code:
<vb:each from="details" key="id" value="detail">
<div class="cms_widget_post_bit">
<h4 class="cms_widget_post_header_rss"><a href="{vb:raw detail.link}">{vb:raw detail.title}</a></h4>
{vb:raw detail.summary}
{vb:raw detail.author}
</div>
</vb:each>
then I tried a support ticket on vb.com which was not helpful as all they did was give me the 4.0.1 template code (which no longer displays anything) and tell me that the vbcms_widget_rss_page template was changed to solve this bug http://www.vbulletin.com/forum/proje...?issueid=34407. I am more of a designer than a developer and trying my best to learn (sorry if it is something obvious). I was so pleased before that I had this working it's a real bummer now. It's an important feature to my site which is tying in a classifieds program. Any suggestions?
Reply With Quote
  #2  
Old 05-05-2010, 02:01 AM
redhawk89 redhawk89 is offline
 
Join Date: Dec 2008
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump, this would be epic to have now.
Reply With Quote
  #3  
Old 05-17-2010, 04:53 PM
TROLL TROLL is offline
 
Join Date: Aug 2005
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would also love to see this working. I have the same issue.
Reply With Quote
  #4  
Old 12-08-2010, 12:56 AM
reimelss reimelss is offline
 
Join Date: Nov 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any luck with this?
Reply With Quote
  #5  
Old 06-23-2011, 08:12 PM
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 895
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks like something I am trying to achieve with a site I am working on
Reply With Quote
  #6  
Old 12-10-2011, 11:04 AM
Cadellin's Avatar
Cadellin Cadellin is offline
 
Join Date: Jan 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone found a solution to this? For me RSS links in the description are being sanitized rather than being parsed.
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 03: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.04704 seconds
  • Memory Usage 2,216KB
  • 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
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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