The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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! |
|
#2
|
||||
|
||||
|
Bump. Does anyone know? I've seen a few similar threads on .org and .com, and they've all been sitting unanswered for months.
|
|
#3
|
||||
|
||||
|
|
#4
|
|||
|
|||
|
Is it possible insert the html or php code in the sidebar block to retrive an external feed rss?
|
|
#5
|
|||
|
|||
|
To Cyburbia, did you ever figure it out. I haven't tried it but I think in your code SOMETHING would be "!empty($rss_description)" and SOMETHING ELSE would be rss_description.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|