Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Randem on June 02, 2018, 07:39:48 PM

Title: Recent Posts (1, 3, 7 Days)
Post by: Randem on June 02, 2018, 07:39:48 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=4177)

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Randem Systems "Recent Posts" Installation Instructions version 2.1.x
// SMF mod package for use with the Simple Machines Forum versions 2.0.19 & 2.1.4, PHP
// For more information and support.
//
// Author - Randem (http://www.simplemachines.org/community/index.php?action=profile;u=384160)
//
// Randem Systems Website: http://randemsystems.com
// Recent Posts Support: https://randemsystems.support/
//
// Copyright (C) 2018 - 2024 Randem Systems
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the Boost Software License.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// License.txt file for more details
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

What is Recent Posts:

Allows a user to see all the recent posts in a formatted structure.

How It Works:

Recent Posts will create a tree structure of the most recent post in a helpful readable format.
The selections are 1, 3 and 7 Days. The selections are to be found in SMF versions 2.0.19 & 2.1.4 in the main menu.

Limitations:

None.

Installation Instructions:

Installs via the Package Manager that is included with the SMF software.
Title: Re: Recent Posts (1, 3, 7 Days)
Post by: -Rock Lee- on June 02, 2018, 09:32:37 PM
First congratulations on the mod, I leave the translation to the Latin Spanish...

<file name="$languagedir/index.spanish_latin.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[

$txt['recent_view_1'] = '&Uacute;ltimas 24 horas';
$txt['recent_view_2'] = '&Uacute;ltimos 3 d&iacute;as';
$txt['recent_view_3'] = '&Uacute;ltimos 7 d&iacute;as';

$txt['recent_days_1'] = '-1 d&iacute;a';
$txt['recent_days_2'] = '-3 d&iacute;a';
$txt['recent_days_3'] = '-7 d&iacute;a';
$txt['messages'] = 'Mensajes';

$txt['most_recent'] = 'Publicaciones m&aacute;s recientes en el &uacute;ltimo: ';
]]></add>
</operation>
</file>

<file name="$languagedir/index.spanish_latin-utf8.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[

$txt['recent_view_1'] = 'Últimas 24 horas';
$txt['recent_view_2'] = 'Últimos 3 días';
$txt['recent_view_3'] = 'Últimos 7 días';

$txt['recent_days_1'] = '-1 día';
$txt['recent_days_2'] = '-3 día';
$txt['recent_days_3'] = '-7 día';
$txt['messages'] = 'Mensajes';

$txt['most_recent'] = 'Publicaciones más recientes en el último: ';
]]></add>
</operation>
</file>


...and at the time of testing it in local me the following error: (I attach it).


Regards!

Title: Re: Recent Posts (1, 3, 7 Days)
Post by: Gryzor on June 13, 2018, 05:51:16 AM
Is there a screenshot or a demo somewhere? :)
Title: Re: Recent Posts (1, 3, 7 Days)
Post by: mattizzy on June 13, 2018, 11:54:57 PM
I installed this but nothing happened
Title: Re: Recent Posts (1, 3, 7 Days)
Post by: Biology Forums on June 14, 2018, 01:24:16 PM
Thanks... will implement soon!
Title: Re: Recent Posts (1, 3, 7 Days)
Post by: Kiriakos GR on July 14, 2019, 05:06:07 AM
Quote from: Gryzor on June 13, 2018, 05:51:16 AM
Is there a screenshot or a demo somewhere? :)

I have also the same question ...   So far unregistered members has access to Recent Posts (SMF default function) , and NOT the registered ones.
Therefore I am interested of this Mod and to see a screenshot of where this icon? / menu?  will be placed.

Title: Re: Recent Posts (1, 3, 7 Days)
Post by: Shades. on July 09, 2021, 10:06:00 AM
Just installed this on 2.0.18 with a few minor edits. Link is yourforum.com/index.php?action=recent

Screenshot attached...

Edits are ins Sources/display.php

Replace:
m.smileys_enabled, m.poster_name, m.poster_email, m.approved,

With:
m.smileys_enabled, m.poster_name, m.poster_email, m.approved, poster_time,

Replace:
ORDER BY id_msg' . (empty($options['view_newest_first']) ? '' : ' DESC'),

With:
ORDER BY poster_time ' . (empty($options['view_newest_first']) ? '' : ' DESC'),

Also move all the images from Themes/default/images/icons/icons to Themes/default/images/icons