mtlurb Posted November 23, 2020 Posted November 23, 2020 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,
Morrigan Posted November 23, 2020 Posted November 23, 2020 Â Members > Reputation & Reactions > Leaderboard
mtlurb Posted November 23, 2020 Author Posted November 23, 2020 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.
Morrigan Posted November 23, 2020 Posted November 23, 2020 (edited) 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, 2020 by Morrigan
mtlurb Posted November 23, 2020 Author Posted November 23, 2020 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,
Adriano Faria Posted November 23, 2020 Posted November 23, 2020 The number of users is hardcoded in a php file.
mtlurb Posted November 24, 2020 Author Posted November 24, 2020 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,
Adriano Faria Posted November 24, 2020 Posted November 24, 2020 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; } Â
mtlurb Posted November 24, 2020 Author Posted November 24, 2020 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:
Adriano Faria Posted November 24, 2020 Posted November 24, 2020 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.
mtlurb Posted November 24, 2020 Author Posted November 24, 2020 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 🙂
Recommended Posts