Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

AJAX Recent Topics

Started by live627, July 08, 2008, 07:15:38 PM

Previous topic - Next topic


The installation went well, but recents topics won't show up. I get this message:
What can be wrong? Something with the database or settings???



We use this, but after installing the instant quick reply we would like to increase the list of recent posts shown from 15 (today) to say 20.... how do we do that ?

Thanks for a great mod :)


Admin > Modifications > Recent Topics


Is there a way for page numbers to show up and be clickable on multiple page topics when recent topics are shown?

Alternatively, is there a way to make clicking the thread title go to the last post instead of the first one?


I'm having a bit of trouble because I'm new to SMF (coming from PHPbb3).  I'm looking to add an additional button beside the "last unread post" icon for the actual last reply.  My users miss the function in PHPbb3 that allowed them to skip to the very end of the topic.

I found this bit in "Recent.template.php"

               <td align="center" style="border-bottom: 1px solid rgb(204, 204, 204);"><a href="', $topic['lastPost']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a></td>

I've tried all different variations with a href=", $topic['lastPost'] by just changing the reference to say 'newPost' or something to that effect, but I've been unable to figure out which variable to use.

I've done a tone of Google searching and haven't come across what I need... can someone help please?

iain sherriff

I have a group of members that can only see a verification board/topics.
Is there a way they can see the Recent topics list showing all topics (not just ones the specific group can see) to be a taster of what is available after verification

SMF 2.0.12


I have a problem, navigation bar is displayed two times, do you know how to fix it?

Link: [nofollow]




Is it possible to exclude a board from the results?


Is it possible to modify this to bring up recent posts instead of just topics?

Jade Elizabeth

Hey I just installed this and it gave me the fatal errors for redeclaring as well on the recent.php and managesettings.php files. For some reason the steps were duplicated. Could it possibly be a mod thing? I was on 2.0.9 at the time, but I can't see anything duplicated with the SMF parser....but the fact that people are getting it on the same files does raise some questions :). It also didn't remove the duplications.

EDIT: Also duplicated the templates...I will have to look through all the files and make sure they're ok...

EDIT 2: It duplicated on all changes. The package file seems to be okay, don't know why this is happening to some of us.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.


Thank you for this mod!

Here is a Norwegian translation.
// Version: 2.0; Modifications
// AJAX Recent Topics
$txt['recent_topics'] = 'Siste emner';
$txt['minutes_ago'] = ' minutter siden';
$txt['number_recent_topics_interval'] = 'Tidsforsinkelse (i sekunder) mellom sjekk for oppdaterte emner.';
$txt['number_recent_topics_interval_desc'] = 'Ikke for lavt, 5-10 sekunders forsinkelse er passe.';
$txt['number_recent_topics'] = 'Emner som skal vises på siden for Siste emner';

Forum-junkie and still a newbie in the world of administrating php etc... Volunteers in reproductive rights.


There seems to be an issue with the install on 2.0.12.

subs.php modification

find                       'mlist' => array(
            'title' => $txt['members_title'],


For some reason even copying the complete snippet and searching manually results in 0.

Searching for the two individually shows code is accurate, and I can find boths lines no problem.

Here's the thought. There is only one     'mlist' => array(     In subs.php   so why not search for that in the xml, only, for the add before...

'recenttopics' => array(
            'title' => $txt['recent_topics'],
            'href' => $scripturl . '?action=recenttopics',
            'show' => true,
            'sub_buttons' => array(

I have installed other packages with no problems. but this one threw an error on install.

I did the manual changes and the package works. Just thought maybe someone would like to update this. Of course... I am not even sure if the new beta has this available in the core... ???? So maybe I'm just wasting my time. lol


I am having the same double nav error vkmaxx at the top of the ?action=recenttopics described above.  Does anybody know the fix for this.  I really like this mod, but I would really like to remover that double instance of the navigation links.  I'd appreciate any help/guidance.



I have clean SMF 2.0.15 forum. And when I want to install this modification, I get an error:

QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Execute Modification > ./Sources/Subs.php > Test failed
Add Before > ./Sources/Subs.php > Test failed

Code: (Find)

'mlist' => array(
'title' => $txt['members_title'],

Code: (Add Before)

'recenttopics' => array(
'title' => $txt['recent_topics'],
'href' => $scripturl . '?action=recenttopics',
'show' => true,
'sub_buttons' => array(

Why is this happening?


Quote from: vkmaxx on June 08, 2014, 10:52:12 AM
I have a problem, navigation bar is displayed two times, do you know how to fix it?

In Recent.template.php delete code:

echo '
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<td>', theme_linktree(), '</td>


Fork for 2.1. Ноокs only.

Edit by Gary: attachment removed for license violation
а нас
за що?