Sidebar News

Sidebar News 1.2

No permission to download

AndyB

Well-known member
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...
 
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.
 
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.
 
@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!
 
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.
 
AndyB updated Sidebar News with a new update entry:

See description

On Nov 16, 2015 version 1.1 of this add-on was released to address an exploitable SQL injection vulnerability. If you are still using a version of this add-on which is below 1.1 or released before Nov 16, 2015 then it is essential that you update to the latest version of the add-on as soon as possible to fix this security issue. If you have any further questions, please ask.

Read the rest of this update entry...
 
Top Bottom