• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Sidebar News

Sidebar News 1.2

No permission to download

AndyB

Well-known member
#1
AndyB submitted a new resource:

Sidebar News - Adds a RSS news feed to your sidebar.

Description:

Adds a RSS news feed to your sidebar.

(Example of Sidebar News)

View attachment 121885

(Example of Options page)

View attachment 121886

Installation:
  1. Download sidebarnews_v1.0.zip and unzip it.
  2. Upload the Andy folder to your server. The correct location is library/Andy.
  3. From your Admin Control Panel, go to the "Install Add-on" page.
  4. Upload the addon-SidebarNews_v1.0.xml file
  5. Click the Install Add-on button.
...
Read more about this resource...
 

Chris D

XenForo developer
Staff member
#2
Just an FYI:

PHP:
// addslashes to make database safe
$pubdate = addslashes($pubdate);
This absolutely is not sufficient to make something "database safe".

You should be using prepared statements - just like XF does.
 
#4
It would be awesome if this plugin allow to mix feeds. It usefull if forum is used by several external projects with their custom feeds. In my case except the forum I have worpress feed and new wiki articles feed, so I should use something like rssmixer.com before install your plugin. Thanks.
 
#5
@AndyB, is it possible to install it without 2 additional addons? I've tried put this code at ad_sidebar_below_visitor_panel template, but loop result is empty.

Code:
<div class="section">
            <div class="secondaryContent statsList" id="boardStats">
                <h3>{xen:phrase sidebarNews}</h3>
                <div class="pairsJustified"><ul>
<xen:if is="{$sidebarNewsResults}">
    <xen:foreach loop="$sidebarNewsResults" value="$result">               

<li>
        <div class="sidebar_news_title"><a href="{$result.link}" target="_blank">{$result.title}</a></div>

        <div class="sidebar_news_date">{$result.sidebar_news_date}</div>

        <div class="sidebar_news_desc">{xen:raw $result.description}</div>
</li>

    </xen:foreach>
</xen:if>

                </ul></div>
            </div>
</div>
I have run Cron Entry. Thanks!
 
#6
This is a great add on, but I'm having trouble getting it to display on pages other than the home page.

For example, I've added the sidebar to the forum_view and thread_view pages, and I specifically included the extra content block with the RSS feed. Like this:

Code:
<xen:sidebar>
<xen:include template="andy_sidebar_extra_one" />
</xen:sidebar>
The result is that I see the heading (so it's doing something), but the rest of the section block isn't populated. I only see an RSS feed on the home page.