Jump to content

Welcome to DevFuse Forums

Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
Guest Message by DevFuse

Tutorial info Visit support topic

  • Added on: Jul 06 2010 05:01 AM
  • Date Updated: Nov 03 2010 09:42 AM
  • Views: 3940

Adusting the number of Recently Added Topics

How to adjust the number of recent topics displayed in the board index hook on IP.Board 3.1

Posted by AndyF on Jul 06 2010 05:01 AM
To adjust the number of Recently Added Topics displayed on the index sidebar hook on IP.Board 3.1, a small file edit is required.

Connect via FTP.

Look in \admin\applications\forums\sources\classes\forums\

3.1.2 / 3.1.1 :Edit class_forums.php, around line 2495, find...
$_topics = array_slice( $topicIDs, 0, 5 );

3.1.3 :Edit class_forums.php, around line 2350, find...
public function hooks_recentTopics( $topicCount=5, $output=true )

Adjust the 5 there to what you require (3 or 10 seems to be popular choices, although setting this too high can cause performance issues) and save, taking care not to disturb any other lines or the syntax.

Powered by Tutorials 1.5.1 © 2017, by Michael McCune