Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top 5 players showing support players #43

Closed
tarantonio opened this issue Apr 18, 2014 · 6 comments · Fixed by #49
Closed

Top 5 players showing support players #43

tarantonio opened this issue Apr 18, 2014 · 6 comments · Fixed by #49

Comments

@tarantonio
Copy link
Contributor

It's better not to show staff on ranks

@felipetmartini
Copy link

i think you can configure it at config.php

@tarantonio
Copy link
Contributor Author

$config['highscore'] = array(
'rows' => 100,
'rowsPerPage' => 20,
'ignoreGroupId' => 2, // Ignore group id higher than this (staff)

You can configure highscores, but no top5 widget

@felipetmartini
Copy link

hmm so thats a but cause it need to respect the same rule

@tarantonio
Copy link
Contributor Author

Well, not in my case. I cloned this git today and it shows staff on top5 widget but not on highscores.

@felipetmartini
Copy link

replace your file /layout/widgets/topplayer.php

with this it will be the same of the scores config to ignore group id configured at config.php

http://pastebin.com/kQmsgGv7

this fix your probleman

@felipetmartini
Copy link

@tarantonio

e00dan added a commit to e00dan/ZnoteAAC that referenced this issue Apr 20, 2014
…idget will be hidden when theirs group_id is higher than specified in config("config.highscore.ignoreGroupId - Ignore group id higher than this (staff)"). Same in Highscore subpage. Also fixed undefined index `page` in Highscore. This resolves Znote#43 issue.
@Znote Znote closed this as completed in #49 Apr 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants