The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
RSS widget using widget description for title
I'm finding that a lot of RSS feeds have titles that are much longer than the name of the site itself. Sometimes, they include HTML. Thus, I get feed widgets that look like this:
What I'd like to do is have the option of making the widget description the title if it is provided. From what little I know, I think that means doing some kind of if-else conditional. Thus, in vbcms_widget_rss_page (4.1.7), I'd replace ... Code:
<div class="cms_widget_header"> <h3><a href="{vb:raw rss_link}" target="_blank">{vb:raw rss_title}</a></h3> </div> Code:
<div class="cms_widget_header"> <vb:if condition="(SOMETHING)"> <h3><a href="{vb:raw rss_link}" target="_blank">{vb:(SOMETHING ELSE)}</a></h3> <vb:else /> <h3><a href="{vb:raw rss_link}" target="_blank">{vb:raw rss_title}</a></h3> </vb:if> </div> Thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|