Increase Recent Topics Limit in IPB Sidebar

Discussion in 'IP.Board Discussions' started by GeorgeB, Jul 21, 2013.

  1. GeorgeB

    GeorgeB Building Social Communities Since 2004

    Joined:
    Jun 28, 2013
    Messages:
    43
    Likes Received:
    17
    I cannot fathom why this isn't editable by default. Content discovery being one of the keys to a forum's success.

    Anyone know how to increase the limit from 5 to 10 or more?

    I know there are hooks that do it. Just wanted to know how I might go about doing it myself. A hook seems wasted on something that should be a default feature from the start.
     
    Brandon likes this.
  2. Superboy

    Superboy Most Likely, I'm Insane.

    Joined:
    Jun 13, 2012
    Messages:
    524
    Likes Received:
    167
    Location:
    New Jersey
    I have no idea how to do it(Sorry lol) but i didn't know you can't increase it. But if you are looking for a good hook i know one.

    WHen I used IPB, I used the hook board index face. it was a creative way to do this and you can set the amount. It was one of my favorite hooks from IPB that i miss now with XF....
     
  3. Erwin

    Erwin Regular Member

    Joined:
    Nov 3, 2009
    Messages:
    1
    Likes Received:
    0
    Location:
    France
    I guess you have to edit your hooks/boardIndexRecentTopics_*.php file and change this line:
    PHP:
    return $this->registry->getClass('class_forums')->hooks_recentTopics();
    to:
    PHP:
    return $this->registry->getClass('class_forums')->hooks_recentTopics(10);
    Not tested, but it should work. Unfortunately if you recache/reimport your hooks, you'll likely have to do the modification again.
     

Share This Page