Jump to content

Recent Topic Hook 3.x and Prior


Recommended Posts

  • Administrators

Out of the box with IP.Board you cannot change the amount of recent topics it shows.  It defaults to 5.

 

Here's an edit that gives you 10 and has a scroll bar to help save on space.

 

Lookup the file /admin/applications/forums/sources/classes/forums/class_forums.php

 

Around line 5519 change:

public function hooks_recentTopics( $topicCount=5, $output=true )

to

public function hooks_recentTopics( $topicCount=10, $output=true )

You now will see 10 recent topics instead of 5.  Now on to making it look pretty.

Open up your ipb_styles.css file in your look and feel editor in the adminCP. Scroll down and add this to the end of file.

.__xXrecent20topics ._sbcollapsable{
overflow-y: scroll;
height: 270px;
overflow-x: hidden;
}
Link to comment
Share on other sites

  • 1 year later...
  • Administrators

Updating this for 4.x version of IP.Board.

 

The code edit in the php file is still the same, however the CSS needs be modified some to this:

.ipsWidget.ipsWidget_vertical.ipsBox:nth-of-type(1){
overflow-y: scroll;
height: 412px;
overflow-x: hidden;
}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...