[ABD] Recent Posts - Last Active Post Show phpBB3 Mod

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
TimeZone
Registered User
Posts: 52
Joined: Mon Jul 23, 2007 8:35 pm

[ABD] Recent Posts - Last Active Post Show phpBB3 Mod

Post by TimeZone » Mon Dec 17, 2007 3:45 am

Modification name: (Recent Posts) Last Active Post Show
Author: TimeZone
Modification description: Displays the LAST POST posted on index. It can be integrated anywhere in the phpbb3 so easy.
Modification version: 1.9.1
Installation Level: Very Easy (Only you must modify 4 lines)

Mod Last Active Post Show RC1 - 1.9.1: Download Mod

Demo Site: View
'Demo show the avatar slide version of my mod'
Demo data:
- User: test
- Password: tester

- Template Changes

*Time
- 5 Minutes

Added:
* SubSilver2 style support
* Two version for ProSilver
- Normal Last Active Post show
- Slide Last Active Post show
* Best depured code
* ACP Module

Added Version 1.5.0
* Fix vars
* New Slide Version (Fix IE with javascript)

Added Version 1.7.0
* New template that show the avartar of creator and last post creator (Prosilver & SubSilver2)
* Best depured code
* Color name of post change if you didn't read the post yet

Added Version 1.9.0
* Re-write code
* Fix errors
* ACP Module Added
* New Templates
* Easier to install

Adeed Version 1.9.1
* Installer bugs corrections
* ACP Changes

Thank you for the trust placed in me!

TimeZone
Last edited by TimeZone on Fri Dec 12, 2008 6:30 pm, edited 11 times in total.

User avatar
WhiteWolfSix
Registered User
Posts: 258
Joined: Sun May 15, 2005 5:43 am

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by WhiteWolfSix » Tue Dec 18, 2007 10:06 am

I am missing subsilver2 modification for this MOD.
Image
WhiteWolfSix (WW6)

TimeZone
Registered User
Posts: 52
Joined: Mon Jul 23, 2007 8:35 pm

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by TimeZone » Tue Dec 18, 2007 1:42 pm

Tomorrow it will redesign for subsilver. Although there is only if such a hurry to change a little file vielast_post.html. It is the creator of the hearing for the post recently.

I am doing a panel of administration mod from acp. From which will be able to select which you want them to appear in the mod.

Thank you for contact me.

TZ!

User avatar
*Capmaster*
Registered User
Posts: 159
Joined: Tue Mar 20, 2007 5:00 pm
Location: Albuquerque, NM
Contact:

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by *Capmaster* » Tue Dec 18, 2007 8:27 pm

I installed it in Prosilver and Odyssey (prosilver-based) and it worked like a charm 8-)

I also have subsilver2 and etechgreen (subsilver2-based) and it didn't draw the table correctly.

I await the subsilver2 template file and edits for this mod. It's a very nice mod - few edits, nice final appearance. It looks much more polished than this mod:
http://www.phpbb.com/community/viewtopi ... 0&t=628545

and looks like it belongs, instead of a kluge add-on.

Nice work, TimeZone!! 8-)

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by stokerpiller » Tue Dec 18, 2007 8:52 pm

Got this error:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 38: Undefined variable: CFG
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 62: Undefined variable: recent_where
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 74: Undefined variable: CFG
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 74: Undefined variable: CFG
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 74: Undefined variable: CFG
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 74: Undefined variable: CFG
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 74: Undefined variable: CFG
Also some lang is missing
I am done with phpBB

TimeZone
Registered User
Posts: 52
Joined: Mon Jul 23, 2007 8:35 pm

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by TimeZone » Tue Dec 18, 2007 11:13 pm

stokerpiller wrote:Got this error:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 38: Undefined variable: CFG
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 62: Undefined variable: recent_where
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 74: Undefined variable: CFG
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 74: Undefined variable: CFG
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 74: Undefined variable: CFG
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 74: Undefined variable: CFG
[phpBB Debug] PHP Notice: in file /includes/last_post.php on line 74: Undefined variable: CFG
Also some lang is missing
Do you do everything as it indicates tutorial mod? Or something changed? It should not fail!

TZ!

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by stokerpiller » Tue Dec 18, 2007 11:32 pm

I did follow the mod install text. It is quite easy :)
I was wondering if it could have anything to do with me having the Last topic titles mod installed?
I am done with phpBB

TimeZone
Registered User
Posts: 52
Joined: Mon Jul 23, 2007 8:35 pm

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by TimeZone » Wed Dec 19, 2007 1:15 am

stokerpiller wrote:I did follow the mod install text. It is quite easy :)
I was wondering if it could have anything to do with me having the Last topic titles mod installed?
If you can be looking for where this data by consulting the other mod, because it can refer to both the data produces the same mistake!

If we can not seek temporarily disable another mod. And tell me about your experience.

Sorry for my english!

TZ!

TimeZone
Registered User
Posts: 52
Joined: Mon Jul 23, 2007 8:35 pm

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by TimeZone » Wed Dec 19, 2007 1:33 am

Sorry for double post...

stokerpiller:


Do not change anything just changes the original mod files for which there is inside the compressed file. I reduced and delete unnecessary code.

modification: MOD

Test it and tell me about the functioning of the mod

TZ!

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by stokerpiller » Wed Dec 19, 2007 6:44 am

TimeZone wrote:Sorry for double post...

stokerpiller:


Do not change anything just changes the original mod files for which there is inside the compressed file. I reduced and delete unnecessary code.

modification: MOD

Test it and tell me about the functioning of the mod

TZ!
Now it works just fine :D
Thanks for this Timezone. I have been looking for this.

2 questions:
Is the login switch really nessacary?
I have a customized page. Can You help me with implementing this mod to it?
I have tried myself, but the text on the page gets bigger when i fo it.
I am done with phpBB

TimeZone
Registered User
Posts: 52
Joined: Mon Jul 23, 2007 8:35 pm

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by TimeZone » Wed Dec 19, 2007 9:57 am

If you want that isn't necesary the login you must find this in de /template/index_body.html:

Code: Select all

<!-- IF S_USER_LOGGED_IN -->
	<!-- INCLUDE viewlast_post.html -->
<!-- ENDIF -->
and replace with

Code: Select all

<!-- INCLUDE viewlast_post.html -->
Please give me your site adresss. And I see what you need change to costumize the mod to your page.

Sorry for my english.

TZ!

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by stokerpiller » Wed Dec 19, 2007 10:58 am

My english isnt to good either :D

It is just a custom made page. I use it as a Portal but it is not a real portal.

portal.php code:

Code: Select all

<?php
/** 
*
* @package phpBB3
* @version $Id: faq.php,v 1.36 2007/07/26 15:49:44 acydburn Exp $
* @copyright (c) 2005 phpBB Group 
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
//-- mod : AJAX Chat ----------------------------------------------------
//-- add
include($phpbb_root_path . 'shout.' . $phpEx);
//-- fin mod : AJAX Chat ------------------------------------------------

$mode = request_var('mode', '');

// Lets build a page ...

page_header($user->lang['PORTALEN']);
include($phpbb_root_path . 'includes/functions_wwh.' . $phpEx);

$template->set_filenames(array(
	'body' => 'portal_body.html')
);
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
 
page_footer();

?>
portal_body.html code:

Code: Select all

 <!-- INCLUDE overall_header.html -->
<h2 style="color: black;">Stoker Pro Portal</h2>
<table style="text-align: left; width: 100%;"
 border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="vertical-align: top;"><div class="forabg"><div class="inner"><span
 class="corners-top"><span></span></span>
 <ul class="topiclist">
				<li class="header">
                                            <dl class="icon">
						<dt>Portalen</dt>
                                              </dl>
				</li>
			</ul>
                        <ul class="topiclist forums">
			<li>
<div style="width: auto; height: 500px; font-weight: bold; padding: 10px;">
<div style="text-align: center;"><img style="width: 400px; height: 110px;"
 alt="Stoker Pro Forum - Danmarks største stoker forum"
 src="images/stokerproforum.png" /></div>

<p>Vores Forum og Portal er for ejere af Stokerfyr eller Træpillebrændere. Kommende ejere, forhandlere og producenter samt dem der blot er interesseret i emnet biobrændsel og alt det der hører til, er selvfølgelig også velkomne.</p>
<p>Brug forumet til at give eller få hjælp til de problemer der kan opstå når man er til biobrændsel.
Vi behandler alle emner. Både spørgsmål om de forskellige stokerfyr, samt spørgsmål til kvaliteten af træpiller og alt andet biobrændsel.</p>
<p>Stoker Pro Forum startede 9. december 2006. På knapt et år blev vi Danmarks største og mest brugte Stoker Forum.</p><p>
Vi har løbende konkurrencer hvor man kan vinde "varme" gevinster. Indtil videre har vi udloddet træpiller, brænde, tørvepiller og Nitro-X.<br />
Derudover har vi haft gang i et par rabatordninger, alle er afsluttet. Men vi forventer at vende tilbage med nye i den nærmeste fremtid.</p>
<p>Brug menuen i højre side til at navigere hen til de forskellige sider.</p>
<p>Denne del af forumet, Portalen, er stadig under udarbejdelse.</p>
</div><span></span>
</li>
			</ul>
<span class="corners-bottom"><span></span></span></div></div>
</td><td
 style="width: 205px; text-align: left; vertical-align: top; padding-left: 5px;"><!-- INCLUDE navmen_body.html --></td></tr></tbody></table>

    <!-- INCLUDE jumpbox.html -->
    <!-- IF S_DISPLAY_ONLINE_LIST -->
	<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
	<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
	<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
	<h3>{L_WHO_WAS_HERE}</h3>
	<p><!-- IF WHO_WAS_HERE_LIST2 -->{WHO_WAS_HERE_LIST2}<br />{WHO_WAS_HERE_RECORD}<!-- ELSE -->{L_WWH_UPDATE_NEED}<!-- ENDIF --></p>
<!-- ENDIF --> 
    <!-- INCLUDE overall_footer.html -->
If a link is needed I can send it in a PM.
I dont give it in public.
I am done with phpBB

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by stokerpiller » Wed Dec 19, 2007 11:06 am

Hey, I solved it myself.
Just added the code from Your install Guide and it works perfect 8-)

But it didn't when I use the ordinary files included.
It only Works with i REDUCE MOD files.

This is a really great MOD and it works GREAT :D
Thanks for this TimeZone.


I earlier wrote something about lang variables not showing up.
It is because of to many spaces:

Code: Select all

$lang = array_merge($lang, array(
	'LP_TITLE'				=> 'Last Active Post',
	'LP_CREATED_BY'			=> 'Created by',
	'LP_POSTEDON'			=> 'on',
	'LP_REPLY_TITLE'		=> 'Replies',
	'LP_REPLY	'			=> 'Re:',
	'LP_BY'					=> 'by',
	));
should be:

Code: Select all

$lang = array_merge($lang, array(
	'LP_TITLE'				=> 'Last Active Post',
	'LP_CREATED_BY'			=> 'Created by',
	'LP_POSTEDON'			=> 'on',
	'LP_REPLY_TITLE'		=> 'Replies',
	'LP_REPLY'			=> 'Re:',
	'LP_BY'					=> 'by',
	));
Spaces here: 'LP_REPLY' => 'Re:',
is removed
I am done with phpBB

TimeZone
Registered User
Posts: 52
Joined: Mon Jul 23, 2007 8:35 pm

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by TimeZone » Wed Dec 19, 2007 2:13 pm

Yes I see the error in the lang file but late. Sorry.

We stayed very good mod on the site! Thank you for using my mod! And thanks for the compliments! jeje!!

For what you need, I am here! Just I complete the new version of the mod, I public in this forum!

TZ!

User avatar
WhiteWolfSix
Registered User
Posts: 258
Joined: Sun May 15, 2005 5:43 am

Re: [Release] Recent Posts - Last Active Post Show phpBB3 Mod

Post by WhiteWolfSix » Wed Dec 19, 2007 2:21 pm

Still waitin' for a subsilver2 modification of this MOD. 8-)
Image
WhiteWolfSix (WW6)

Locked

Return to “[3.0.x] Abandoned MODs”