MOD Description:
This mod is to show a table of latest posts at the top of index page for PROSILVER style. Actually, it's a table uses 'div' tags.
MOD Version: 1.0.0
PhpBB Version: PhpBB 3.0.x
Release Date: 2007/12/22
Features:
Show a table of latest posts
Available languages: English
Screenshots:
MOD Download: Download here
MOD Demo: Demo board
The guide:
How specify the name for a column:
Open: language\en\common.php
How to specify which forums belong to a column:// For latest posts
'lp_title_0' => 'The Latest Posts',
//This is the name of 1st column
'lp_title_1' => 'Category 1',
//This is the name of 2nd column
'lp_title_2' => 'Category 2',
//This is the name of 3rd column
'lp_title_3' => 'Category 3',
'lp_topic' => 'Topic',
'lp_forum' => 'Forum',
'lp_poster' => 'Poster',
'lp_posted_dttm' => 'Posted on',
'lp_replies' => 'Replies',
'lp_views' => 'Views',
Open: includes\functions_display.php
How to specify numbers of column/**
* Display Latest Posts
*/
function display_latest_posts()
{
global $db, $user, $template, $phpEx;
//Latest Posts config
$LP_NUM_COLS = 3;
$LP_NUM_TOPICS_IN_ACOL = 10;
$latest_posts = array();
$latest_posts['col_1']['title'] = $user->lang['lp_title_1'];
//Enter here forum's IDs for 1st column
$latest_posts['col_1']['forums'] = '1,2,3';
$latest_posts['col_2']['title'] = $user->lang['lp_title_2'];
//Enter here forum's IDs for 2nd column
$latest_posts['col_2']['forums'] = '4,5,6';
$latest_posts['col_3']['title'] = $user->lang['lp_title_3'];
//Enter here forum's IDs for 3rd column
$latest_posts['col_3']['forums'] = '7,8,9';
Open: includes\functions_display.php
Open: language\en\common.php/**
* Display Latest Posts
*/
function display_latest_posts()
{
global $db, $user, $template, $phpEx;
//Latest Posts config
//Here is the numbers of column, I have replaced 3 by 4
$LP_NUM_COLS = 4;
//Here is the numbers of posts in a column
$LP_NUM_TOPICS_IN_ACOL = 10;
$latest_posts = array();
$latest_posts['col_1']['title'] = $user->lang['lp_title_1'];
//forum's IDs for 1st column
$latest_posts['col_1']['forums'] = '1,2,3';
$latest_posts['col_2']['title'] = $user->lang['lp_title_2'];
//forum's IDs for 2nd column
$latest_posts['col_2']['forums'] = '4,5,6';
$latest_posts['col_3']['title'] = $user->lang['lp_title_3'];
//forum's IDs for 3rd column
$latest_posts['col_3']['forums'] = '7,8,9';
//Add more 2 lines below to specify which forums is for 4th column
$latest_posts['col_4']['title'] = $user->lang['lp_title_4'];
$latest_posts['col_4']['forums'] = '10,11,12';
// For latest posts
'lp_title_0' => 'The Latest Posts',
//Name of 1st column
'lp_title_1' => 'Category 1',
//Name of 2nd column
'lp_title_2' => 'Category 2',
//Name of 3rd column
'lp_title_3' => 'Category 3',
//Add name for 4th column
'lp_title_4' => 'Category 4',
'lp_topic' => 'Topic',
'lp_forum' => 'Forum',
'lp_poster' => 'Poster',
'lp_posted_dttm' => 'Posted on',
'lp_replies' => 'Replies',
'lp_views' => 'Views',