Guide Category

134

Latest BE Forum posts in main

In this tutorial we will show you how to display the latest posts from Bullet Energy Forum to display in Datalife Engine main page. This will be very helpful for many websites that want to display the recent forum activities in main page. The forum provides for the withdrawal of the latest messages on the site, which would bring the latest posts have to do the following steps.
dlestarter
Latest BE Forum posts in main In this tutorial we will show you how to display the latest posts from Bullet Energy Forum to display in Datalife Engine main page. This will be very helpful for many websites that want to display the recent forum activities in main page. The forum provides for the withdrawal of the latest messages on the site, which would bring the latest posts have to do the following:

Open the file index.php

Find:

require_once ROOT_DIR . '/engine/init.php';

Add AFTER: (* Where 5 is the last 5 posts from forum)

$apiBullet->getLastPost(array('count' => 5));

Find:

$tpl->load_template('main.tpl');

Add AFTER:

$tpl->set('{forumPost}', $tpl->result['last_topic_box']);

- After that, the main.tpl template, you can add tag {forumPost} to the location you want the latest forum posts to display
- The number of messages can be changed by changing the number 5 is the right for you.

Related Tutorials

Review/Leave Comment

comments powered by Disqus