We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

changing items per page on forum and group topic views | Forum

dave Leader
dave Feb 9 '14
When you pull up a group or a forum topic view i noticed that the group is default to 3 and the forum to 13  but nowhere did i find a setting in admin to change the pagination items per page.  


So i went to the code and here is the strange part. 


I could not find anything in the forum plugin for 13 at all so i have no clue where it gets that number, and nothing in groups for 13 either. 


But there is a function that exists in 3 different files and this is kinda strange. 


When i change this one if fixes the groups pagination (i changed it to 10 and now there are 10 topics showing)


 ow_plugins/forum/components/latest_topics_widget.php            



    public static function getSettingList()

    {

        $settingList = array();


        $settingList['topicCount'] = array(

            'presentation' => self::PRESENTATION_NUMBER,

            'label' => OW::getLanguage()->text('forum', 'cmp_widget_forum_topics_count'),

            'value' => 3

        );


        return $settingList;

    }


the other two the same function name are in groups plugin 


groups_widget.php

user_groups_widget.php


and both set to 3  but they do not appear to change anything... 


Whats up with this?  Also how to change the 13 forum topics to 10?  


Thanks 



The Forum post is edited by dave Feb 9 '14
Daisy Team
Daisy Mar 11 '14
Dave, you can change the number of topics on the Froum topics list or posts in this file: /ow_plugins/forum/bol/forum_service.php
Search for the getTopicPerPageConfig or getPostPerPageConfig functions

For the group topics list: you should go to Admin Area > Plugins > Groups > find the Forum widget >> click the Edit icon and change the Number of topics to show value.
dave Leader
dave Mar 11 '14
Thanks Daisy your a wiz :) appreciate the feedback