Jump to content

Customize the Leaderboard


mtlurb

Recommended Posts

Posted

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,

Posted
13 minutes ago, Morrigan said:

image.png.05adc5d5670323c197b945a0afcceded.png

 

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.

Posted (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 by Morrigan
Posted

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,

Posted
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,

Posted
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;
		}

 

Posted
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:

image.thumb.png.291479f83fe0fab66833851ca4075466.png

image.png

Posted
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 🙂

image.thumb.png.b99682436fa12dea9a19288aa3206cdf.png

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...