Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted November 23, 20204 yr Hello, The leaderboard page /leaderboard/ can let you select a start and end date to show top contributors... But it doesn't let you select how many Top x users you want to see in the list... currently limited to only 4! Can it be customized to show Top 10 for example? Thanks,
November 23, 20204 yr Author 13 minutes ago, Morrigan said: Members > Reputation & Reactions > Leaderboard You're better than the tech support that directed me here!!! Wow thanks!!! Hello I spoke too fast... that already set at 10. I changed it to 9 and saved just to force an update... but it doesn't work.
November 23, 20204 yr I would personally categorize that as a bug because when you are on the Leaderboard and filter it, it should show the bottom number of people. You may want to go back to IPS and show them the setting you have set and have them investigate. Tagging Brandon just in case. @bfarber Edit: The setting might only work with the "Top" list and not the actual "Leaderboard" but that setting isn't clear. Actually neither of them seem to affect the actual "Leaderboard" page which is a little odd to me. Edited November 23, 20204 yr by Morrigan
November 23, 20204 yr Author Thanks alot for the help, I will reopen my support ticket to get this going 🙂 Maybe a legit bug. Can this be queried by SQL on the backend in the time being,... I am running a contest and would love to give gifts to my members 🙂 Thanks,
November 24, 20204 yr Author 4 hours ago, Adriano Faria said: The number of users is hardcoded in a php file. Hello Adriano, Would you mind telling me where exactly and I'll be able to change and test it out 🙂 Thanks,
November 24, 20204 yr 16 hours ago, mtlurb said: Hello Adriano, Would you mind telling me where exactly and I'll be able to change and test it out I haven't tested but you can find it on \IPS\core\modules\front\discover\popular::leaderboard() foreach( \IPS\Db::i()->select( 'themember, rep', array( $innerQuery, 'in' ), NULL, 'rep DESC', 4 )->setKeyField('themember')->setValueField('rep') as $member => $rep ) { $topContributors[ $member ] = $rep; }
November 24, 20204 yr Author 1 hour ago, Adriano Faria said: I haven't tested but you can find it on \IPS\core\modules\front\discover\popular::leaderboard() foreach( \IPS\Db::i()->select( 'themember, rep', array( $innerQuery, 'in' ), NULL, 'rep DESC', 4 )->setKeyField('themember')->setValueField('rep') as $member => $rep ) { $topContributors[ $member ] = $rep; } Hello Adriano, I am on 4.5.x and I don't see that hierarchy of templates:
November 24, 20204 yr 22 hours ago, Adriano Faria said: The number of users is hardcoded in a php file. It's a PHP file. You have to download it via FTP, edit and upload.
November 24, 20204 yr Author 20 minutes ago, Adriano Faria said: It's a PHP file. You have to download it via FTP, edit and upload. Done it, it works! Great job! Now thats a custom plugin that could be done by someone who thinks its worth it 🙂