Customizing SMF > Modifications and Packages
Recent Topics On "Recent Posts" Page
Nathaniel:
Link to Mod
Recent Topics On "Recent Posts" Page 1.2 by NathanielOverview
This mod replaces the list of recent posts/messages which are displayed for the 'Recent Posts' action with a list of recent/new topics (default) or recently updated topics. The template remains completely the same. It also changes the 'View the most recent posts on the forum.' link in the info center so that it says 'recent topics' or 'recently updated topics' instead of 'recent posts'.
This mod has two modes:
1) 'Recent/New Topics' - Displays a list of the topics which have been created recently, in order of their creation. The first message of each topic will be shown. (default)
2) 'Recently Updated Topics' - Displays a list of the topics which have been recently updated, in order of the the most recent post in each respective topic. The last or most recent message of each topic will be shown.
You can change the mode setting in the admin area:
For SMF 1.1.x: Admin -> Configuration -> Features and Options -> Layout and Options -> "Recent Topics On "Recent Posts" Page mode".
For SMF 2: Admin -> Configuration -> Modification Settings -> "Recent Topics On "Recent Posts" Page mode".
SMF Version Support
This mod is officially supported for SMF 2.0 and above only. Below is a list of available versions of this mod and the previous versions of SMF that they supported. Use them at your own risk. The mod author will not be supporting or upgrading this mod in any way for versions of SMF below 2.0.
Version 1.1: SMF 1.1.x and versions of SMF 2 below SMF 2 RC4.
Version 1.2: SMF 2 RC4 and above.
Donate
If this mod has helped you, then feel free to support the developer by Donating. Any amount of money is welcome.
Custom Themes Changes:
These edits are only necessary if your custom theme has a 'BoardIndex.template.php' file, otherwise the mod should work automatically. The edits below are applied to your 'BoardIndex.template.php' file.
--- Code: ("Find (SMF 1.1.x)") ---<a href="', $scripturl, '?action=recent">', $txt[234], '</a>
--- End code ---
--- Code: ("Find (SMF 2)") ---<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>
--- End code ---
--- Code: ("Replace") ---<a href="', $scripturl, '?action=recent">', !empty($modSettings['RecentTopicsOnRecentPostsPage_mode']) && $modSettings['RecentTopicsOnRecentPostsPage_mode'] == 'updated' ? $txt['RecentTopicsOnRecentPostsPage_updated_linktext'] : $txt['RecentTopicsOnRecentPostsPage_linktext'], '</a>
--- End code ---
Version Changes
v1.2 - 5 November 2010
Updated for SMF 2 RC4.
v1.1 - 20 November 2009
Added support for SMF 2 RC2.
Added the mode changing setting, and the new "Recently Updated Topics" mode as requested by Akyhne.
v1.0 - 18 September 2008
Original Mod release.
neil h:
Great stuff LHVWB!
Installed without a hitch.
One request for v.2 - A 'number of replies' field.
Many, many thanks,
Neil
See it working here: frameforum dot org slash forum3
Nathaniel:
I am glad that you like the mod! :D
Its not a bad suggestion, although I don't think that I will add it to the mod because it would have to change the layout of that template (which is a pain). I am however happy to help you change your template if you can tell me exactly where you want it on that page.
RoarinRow:
cool, gotta try this out 8)
neil h:
--- Quote from: LHVWB on September 23, 2008, 09:02:25 PM ---I am glad that you like the mod! :D
Its not a bad suggestion, although I don't think that I will add it to the mod because it would have to change the layout of that template (which is a pain). I am however happy to help you change your template if you can tell me exactly where you want it on that page.
--- End quote ---
I would put it just after 'Started by XXX' 'Last post by xxx'
like this:
'Started by XXX' : 'Last post by xxx' : Replies NNN
Is it possible to do this? would be cool!
Navigation
[0] Message Index
[#] Next page
Go to full version