Tags
Rate this article
5.00
  • Email to a friend
  • Print version
  • Plain text
Browsing: Home » How-Tos

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

See Also:
vBulletin bridge, vBulletin bridge manual

Comments (2 posted):

Chris Boyce on February 08, 2008
the demo link is dead
Milorad Topalovic on February 12, 2008
@ Chris Boyce
Works fine for me.

You must be registered member of Vivvo.net to post a comment.