[BETA] CPLatestPosts

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
tuannq
Registered User
Posts: 4
Joined: Sat Jan 19, 2008 3:34 am

[BETA] CPLatestPosts

Post by tuannq »

MOD Title: CPLatestPosts
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:
Image

Image

MOD Download: Download here

MOD Demo: Demo board

The guide:

How specify the name for a column:
Open: language\en\common.php
// 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',
How to specify which forums belong to a column:
Open: includes\functions_display.php
/**
* 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';
How to specify numbers of column
Open: includes\functions_display.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';
Open: language\en\common.php
// 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',
Last edited by tuannq on Fri May 23, 2008 5:02 am, edited 3 times in total.
User avatar
Kostenloses-Forum
Registered User
Posts: 47
Joined: Wed Nov 08, 2006 8:19 pm
Location: Hannover, Germany
Contact:

Re: [BETA] CPLatestPosts

Post by Kostenloses-Forum »

Great, but can you add the Latest Posts config values into adminpanel, to change values over adminpanel?
naushadhassam
Registered User
Posts: 506
Joined: Wed Aug 15, 2007 9:57 pm
Contact:

Re: [BETA] CPLatestPosts

Post by naushadhassam »

great mod but is there a limit on how many posts we want to have?

so example you can see 10 recent posts

if we edit

Code: Select all

$LP_NUM_TOPICS_IN_ACOL = 10;
to

Code: Select all

$LP_NUM_TOPICS_IN_ACOL = 100;
this will basially fill in all of the index page with 100 topics, posts of the board :S
Free Hosting - Here
Sports Entertainment Online ( A PS3 Online Gaming Community ) - Here
FREE UNLIMITED HOSTING FOR PHPBB MOD MAKERS - PM ME FOR MORE INFO ( MY WAY ON DONATING TO PHPBB )
moustafamin
Registered User
Posts: 230
Joined: Thu Aug 30, 2007 8:10 am

Re: [BETA] CPLatestPosts

Post by moustafamin »

nice mod i need it
Janet007
Registered User
Posts: 4
Joined: Sun Jan 29, 2006 10:19 pm
Location: NL

Re: [BETA] CPLatestPosts

Post by Janet007 »

Good mod, but I tried to use this for subsilver2, didnt have any luck, please tell me how can I use this mod for subsilver2?
tuannq
Registered User
Posts: 4
Joined: Sat Jan 19, 2008 3:34 am

Re: [BETA] CPLatestPosts

Post by tuannq »

Updated for subsilver2 style
naushadhassam wrote:great mod but is there a limit on how many posts we want to have?

so example you can see 10 recent posts

if we edit

Code: Select all

$LP_NUM_TOPICS_IN_ACOL = 10;
to

Code: Select all

$LP_NUM_TOPICS_IN_ACOL = 100;
this will basially fill in all of the index page with 100 topics, posts of the board :S
I think that is in your control
spongejohn
Registered User
Posts: 9
Joined: Fri Oct 28, 2005 1:11 am
Location: The Netherlands
Contact:

Re: [BETA] CPLatestPosts

Post by spongejohn »

Nice mod, thanks! Only thing is that is also shows posts made in forums a user should not be able to see. Any way I could fix that quickly? :)
stanleyd
Registered User
Posts: 14
Joined: Sat Dec 22, 2007 5:14 pm

Re: [BETA] CPLatestPosts

Post by stanleyd »

The thing didn't work, having purged the cache, but later I purged the cache again, and it worked okay.
stanleyd
Registered User
Posts: 14
Joined: Sat Dec 22, 2007 5:14 pm

Re: [BETA] CPLatestPosts

Post by stanleyd »

I only want one column with the 10 most recent posts. That was easy to achieve.
But I'd like to include the date of the last post, as well as the name of whoever made the last post in the topic. Would that be a difficult modification to do?
babywon
Registered User
Posts: 17
Joined: Tue Feb 12, 2008 12:52 pm

Re: [BETA] CPLatestPosts

Post by babywon »

if after installed it saw like messy stuff, just go to acp->style-> and refresh those style structure, .....sorry i dont have english in my phpbb3. may be i call it wrong...

and by the way, how to center the header of the latestpost...?
necer_cheniki
Registered User
Posts: 118
Joined: Sat Oct 06, 2007 10:45 am

Re: [BETA] CPLatestPosts

Post by necer_cheniki »

it is verry good Mod but i hope to add more thinks in the table like last 5 registers and active members and active topics and ....
:D
Hatake Ryuuzaki
Registered User
Posts: 48
Joined: Thu Nov 22, 2007 11:59 pm

Re: [BETA] CPLatestPosts

Post by Hatake Ryuuzaki »

I want to show the latest posts in my site, but no in the top of my forum, Can you explain how to do it?

Thanks,
Sorry for my english.
User avatar
DBM
Registered User
Posts: 159
Joined: Tue Oct 25, 2005 10:29 pm
Contact:

Re: [BETA] CPLatestPosts

Post by DBM »

tuannq, I have this up and running on my forum and it's working perfectly. It was one of the easiest mods I've had to install too. Excellent work. 8-)
rajshar
Registered User
Posts: 25
Joined: Wed Feb 20, 2008 4:05 am

Re: [BETA] CPLatestPosts

Post by rajshar »

i did everything and it works fine but i didnt get da part where u have to enter forum ID....how do u know what are da forum ID's ...cud u explain me tht part again...
thnks

it wud also be gud instead of manually editing files..you cud make a module for it in admin cp..
User avatar
nguyencongminh
Registered User
Posts: 107
Joined: Thu Jul 10, 2008 1:38 pm
Contact:

Re: [BETA] CPLatestPosts

Post by nguyencongminh »

I am using this MOD on style proChristmas, but I can't split it to 2 or more columns topic.

Image

How to fix this error? Thank for reading my post.
Creating Communities
Locked

Return to “[3.0.x] MODs in Development”