Last Post on Every Page

Started by GL700Wing, September 09, 2022, 12:48:51 AM

Previous topic - Next topic

GL700Wing

Link to the mod



Last Post on Every Page for SMF 2.1
By GL700Wing
(Based on Last Post from Previous Page mod by Dougiefresh)



Introduction
This mod makes changes to the forum so that the last post from the previous page in that thread is displayed as the first post on the next page.  So if the forum only shows 10 posts per page, then page 1 has 10 posts (posts 1 thru 10), the page 2 and above will have 11 (posts 10 thru 20, 20 thru 30, etc)....

Admin Settings
There are five settings for this mod under Admin -> Configuration -> Modification Settings.  They are:
o Show last post from previous page?
o Dim last post from previous page by:
o Undim the post by hovering the cursor over it?
o Remove images in last post from previous page?
o Remove functionality from last post from previous page?

Related Discussions
o Last post on each page (Original Request)
o Last post on each page (Split Topic)

Translations Courtsey of:
o French UTF8 translation by TourFL
o Portuguese Brazilian translations by DSystem
o Spanish Latin translations by -Rock Lee-

Compatibility Notes
This mod was tested on SMF 2.1.2 but should work on later versions.
For SMF 2.0 use the Last Post from Previous Page mod.
SMF 1.x is not and will not be supported.


Change Historys
v1.0 - 01-Sep-22
o Initial release
(Based on Last Post from Previous Page mod by Dougiefresh)

v1.1 - 10-Jun-23
o Updated mod to not show attachments below the message body if the setting 'Remove images in last post from previous page?' is enabled.


License
Copyright (c) 2016-2019, Douglas Orend, 2022-2023 Kathy Leslie
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Life doesn't have to be perfect to be wonderful ...

Steve

Thank you GL! This was one of the last two remaining mods I needed updating most.  ;D
DO NOT pm me for support!

GL700Wing

Quote from: Steve on September 09, 2022, 05:10:28 AMThank you GL! This was one of the last two remaining mods I needed updating most.  ;D
You're welcome - 'twas easy enough to adapt from the SMF 2.0 mod (and that mod package included an early SMF 2.1 version).
Life doesn't have to be perfect to be wonderful ...

Steve

Now all I have to do is sweet talk someone into doing the last one I need.  :P  :D
DO NOT pm me for support!

GL700Wing

Quote from: Steve on September 09, 2022, 05:59:33 AMNow all I have to do is sweet talk someone into doing the last one I need.  :P  :D
Is that also one of @dougiefresh's mods?
Life doesn't have to be perfect to be wonderful ...

Steve

No, it's this one: https://custom.simplemachines.org/index.php?mod=4003

And I wasn't hinting that you might do it but ...  :P

And this topic's mod is working perfectly. :)
DO NOT pm me for support!

GL700Wing

Quote from: Steve on September 09, 2022, 07:14:39 AMNo, it's this one: https://custom.simplemachines.org/index.php?mod=4003

And I wasn't hinting that you might do it but ...  :P
Hmm - the mod author hasn't posted anything for more than six years but the mod description says it can be modified if a link to the original author is retained.  Looks like a job for next week ...  ;)

QuoteAnd this topic's mod is working perfectly. :)
Good to know!
Life doesn't have to be perfect to be wonderful ...

Steve

DO NOT pm me for support!

-Rock Lee-

Do I have time jumps again? I don't remember translating this mod... I'm finishing my career thesis and things happen to me. But it's great you will update it @GL700Wing  good job :D


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

GL700Wing

Quote from: -Rock Lee- on September 09, 2022, 08:47:28 PMDo I have time jumps again? I don't remember translating this mod... I'm finishing my career thesis and things happen to me. But it's great you will update it @GL700Wing  good job :D
I used your translations for the SMF 2.0 version of the mod which you did a long time ago - no time jumps!
Life doesn't have to be perfect to be wonderful ...

-Rock Lee-

Ah just time passed now I realized I translated it as in 2016/17, who would say I'm still going and improving day by day :D
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Steve

Quote from: -Rock Lee- on September 09, 2022, 09:57:21 PMI'm still going and improving day by day
Meaning you're getting older and wiser.  :P

Okay, we should get back on topic.  ;D
DO NOT pm me for support!

GL700Wing

#12
v1.1 - 10-Jun-23
o Updated mod to not show attachments below the message body if the setting 'Remove images in last post from previous page?' is enabled.
Life doesn't have to be perfect to be wonderful ...

Advertisement: