Ning Developer Docs

Hi
I was wondering how easy it would be to change the settings so that the members sections shows 40 members per page as opposed to 20?

Presumably it just a case of changing a value somewhere from 20 to 40...but I'm not sure on what page that code sits - can anyone help?
Thanks
Oliver

Views: 4

Replies to This Discussion

Hi Oliver,

We don't recommend raising that value because this can affect performance of your network, but if you want to, the file is /widgets/profile/controllers/EmbedController.php, around line #184, inside the action_embed1activeMembers, this lines:

        if ($this->embed->get('rowsSet') > 5) { $this->embed->set('rowsSet', 5); }
        $rows_numbers = array(0,1,2,3,4,5);

What this code says is: you cannot have more than 5 rows, and your options are 0,1,2,3,4,5. So, if you want to allow more rows, lets say, 10, it would become:

        if ($this->embed->get('rowsSet') > 10) { $this->embed->set('rowsSet', 10); }
        $rows_numbers = array(0,1,2,3,4,5,10);
Hi Fabricio

Thanks for the input on this. I tried that amend and something seemed to go wrong with it leading to the network going down with a php error as the cause, but I had a backup which got it working again. I wonder if you could have a quick glance over that code above to see if there is any reason why that might have generated an error?
Cheers
Oliver
do you remember what was the error? or the network url + date of the error?
Is this something I can add directly to the Analytics box? If so, how? Thanks!!

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service