Rate this article
3.67
Browsing: Home » Articles » Videos & Tutorials

Invision Powerboard Latest Posts

Yet another usage for box_feed which will pull latest posts from your IPB forum to Vivvo pages via RSS feed. You can easily customize it by changing the URL parameter.

Code:

<vte:box module="box_feed">
    <vte:params>
        <vte:param name="url" value="http://www.vivvo.net/ipb/index.php?act=rssout&id=2" />
        <vte:param name="limit" value="10" />
        <vte:param name="time" value="2" />
    </vte:params>
    <vte:template>
        <div class="box">
            <div class="box_title_holder">
                <div class="box_title">
                    Vivvo forum
                </div>
            </div>
            <div class="box_body">
                <div class="box_content">
                    <ul>
                        <vte:foreach item="feed" from="{feed_list}">
                            <li>
                                <a href="{feed.get_link}" target="_blank">
                                    <vte:value select="{feed.get_title}" />
                                </a>
                            </li>
                        </vte:foreach>
                    </ul>
                </div>
            </div>
        </div>
    </vte:template>
</vte:box>

Make sure to replace the bolded URL in line 3 with your actual website URL. 

To create RSS feed in IPB go to IPB's Admin Control Panel and choose Managment >> RSS Export Manager. Then click on the button in the right panel and choose Create New RSS Export Stream from the popup menu. Fill in the form and submit it. You should be returned to RSS Export Manager screen with your new feed stream added.

Now go to your forum index and look for the feed url (this information depends on browser you use), put link in url parameter of the box_feed module and that's it.

For more information on box_feed check out developer's documentation:
http://wiki.vivvo.net/devdoc/modules/box_feed

Share on: Add to your del.icio.us del.icio.us | Digg this story Digg | Add to Facebook Facebook