Jump to content

Recommended Posts

  • Administrators
Posted

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;
}
Posted

Nice. I noticed something was different with the board, I just couldn't make out what. It's funny that I used the recent topics to find this thread too haha!

  • 1 year later...
  • Administrators
Posted

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;
}

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.

×
×
  • Create New...