Axel Wers Posted July 13, 2009 Share Posted July 13, 2009 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 Link to comment Share on other sites More sharing options...
Mert Posted July 13, 2009 Share Posted July 13, 2009 It's really easy to fix it :) Open: ./hooks/boardIndexRecentTopics_064a4f27500f09efa4fdba1c301b88d5.phpFind: 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; } Link to comment Share on other sites More sharing options...
Axel Wers Posted July 13, 2009 Author Share Posted July 13, 2009 No... doesn't work... still the same :( Link to comment Share on other sites More sharing options...
Mert Posted July 13, 2009 Share Posted July 13, 2009 Well, it should. Works fine for me. Try importing this:hook.xml Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.