Jump to content

Recent topics hook

Featured Replies

Posted

Adds a list of recent topics to the board index

In this list shouldn't be included topics from Trash can (or some other unwanted categories). My one admin deleted some posts and they were moved into trash can. Now I see 4 "new topics" which are actually deleted posts. It's really useless.

Set up of Recent Topics hook should depends on

Select the forums you don't wish to search for new posts when using either the 'get active topics' or 'view new posts' links. You may select more than one.

Recent Topics


View New Posts: Block Forums


It's really easy to fix it :)

Open: ./hooks/boardIndexRecentTopics_064a4f27500f09efa4fdba1c301b88d5.php

Find:



Hope this helps :)

$this->registry->class_localization->loadLanguageFile( array( 'public_topic', 'forums' ) );


Add below:


$this->settings = $this->registry->fetchSettings();


Find:


		foreach( $this->registry->getClass('class_forums')->forum_by_id as $forumID => $forumData )

		{


Add below:


			if ( $forumData['id'] == $this->settings['forum_trash_can_id'] )

			{

				continue;

			}
  • Author

No... doesn't work... still the same :(

Well, it should. Works fine for me.

Try importing this:

hook.xml

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.