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

VB Latest Posts

Yet another usage for box_feed which will pull latest posts from your vBulletin 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/forums/external.php?type=RSS2" />
        <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. 

In order for this to work properly, you must enable external RSS in your vBulletin Control Panel. To do so, go to: vBulletin Options -> External Data Provider -> Enable RSS Syndication set to YES.

See it in action:
http://loco.myvivvo.com/

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