Back to vBulletin 3.5 Add-ons

Latest blog in postbit - magpierss
Mod Version: 1.00, by vauge

This modification is in the archives.
vB Version: 3.5.0 RC2 Rating: (0 vote - 0 average) Installs: 9
Released: 02 Aug 2005 Last Update: Never Downloads: 108
Not Supported Uses Plugins Template Edits  

For this hack, we are using magpierss - simple and GPL.
===========================================================
MagpieRSS provides an XML-based (expat) RSS parser in PHP.

MagpieRSS is compatible with RSS 0.9 through RSS 1.0. Also parses RSS 1.0's modules, RSS 2.0, and Atom. (with a few exceptions)

http://magpierss.sourceforge.net/
===========================================================
Idea came from DigitalPoint. I have actually been using this for several months on my forum.
But with the new plugin system, it's even easier to share.

Install instructions:

Step 1)
Magpierss

Download & Install: http://magpierss.sourceforge.net/

Create a "cache" directory or make sure path is ok in: MAGPIEDIR/rss_cache.inc

Step 2)
Create a new profile field for the Blog - Note the field#
The example below is field 7.

Step 3)
Edit magpierss.xml
1. include your full path to magpierss/rss_fetch.inc
2. Change field 7 to applicable field.

PHP Code:
<?xml version="1.0" encoding="ISO-8859-1"?>



<plugins>
    <plugin active="1" product="vbulletin">
        <title>Magpierss_include</title>
        <hookname>global_start</hookname>
        <phpcode><![CDATA[require_once '/Full Path to/magpierss/rss_fetch.inc';]]></phpcode>
    </plugin>
    <plugin active="1" product="vbulletin">
        <title>Magpierss_Get_Blog</title>
        <hookname>postbit_display_start</hookname>
        <phpcode><![CDATA[if ($post['field7']){
$rss = fetch_rss( $post['field7'] );
foreach ($rss->items as $item) {
        $blogLink = $item[0]['link'];
        $blogTitle = $item[0]['title'];
    }
}]]></phpcode>
    </plugin>
</plugins>
Step 4)
Import magpierss.xml

Step 5)
In your postbit template add the following (note field #!):

PHP Code:
            <if condition="$post['field7']">
            <
div class="smallfont">Recent Blog: <a href="$blogLinktarget="_blank">$blogTitle</a></div>
                        </if> 
===============================================
Attached files: 2
Template Edits: 1
Simplicity: Easy
Time: < 30 mins, 5 mins for advanced users

Attached is a screen from another nevetS's Blog Feed parser using Carp - it is just as relivant.
Latest Blog Feed in Postbit using Carp RSS

Download

This modification is archived and cannot be downloaded.

Screenshots

 

Similar Mods

Mini Mods Display latest blog post in postbit using Magpie RSS vBulletin 3.6 Add-ons
Latest Blog Feed in Postbit using Carp RSS vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024