1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- from misago.utils.fixtures import load_settings_fixture, update_settings_fixture
- from misago.utils.translation import ugettext_lazy as _
- settings_fixture = (
- # Users Ranking Settings
- ('ranking', {
- 'name': _("Members Ranking"),
- 'description': _("Those settings control mechanisms of members activity ranking which allows you to gamificate your forum."),
- 'settings': (
- ('ranking_inflation', {
- 'value': 5,
- 'type': "integer",
- 'input': "text",
- 'extra': {'min': 0, 'max': 99},
- 'separator': _("Basic Ranking Settings"),
- 'name': _("Ranking Inflation"),
- 'description': _("Enter size of ranking scores inflation in percent. Scores inflation is important mechanism that allows ranking self-regulation, punishing inactivity and requiring users to remain active in order to remain high in ranking."),
- }),
- ('ranking_positions_visible', {
- 'value': True,
- 'type': "boolean",
- 'input': "yesno",
- 'name': _("Don't Keep Users Ranking Positions Secret"),
- 'description': _("Changing this to yes will cause forum to display user position in ranking on his profile page."),
- }),
- ('ranking_scores_visible', {
- 'value': True,
- 'type': "boolean",
- 'input': "yesno",
- 'name': _("Don't Keep Users Scores Secret"),
- 'description': _("Changing this to yes will cause forum to display user score on his profile page."),
- }),
- ('score_reward_new_thread', {
- 'value': 50,
- 'type': "integer",
- 'input': "text",
- 'separator': _("Posting Rewards"),
- 'name': _("New Thread Reward"),
- 'description': _("Score user will receive (or lose) whenever he posts new thread."),
- }),
- ('score_reward_new_post', {
- 'value': 100,
- 'type': "integer",
- 'input': "text",
- 'name': _("New Reply Reward"),
- 'description': _("Score user will receive (or lose) whenever he posts new reply in thread."),
- }),
- ('score_reward_new_post_cooldown', {
- 'value': 180,
- 'type': "integer",
- 'input': "text",
- 'extra': {'min': 0},
- 'name': _("Reward Cooldown"),
- 'description': _("Minimal time (in seconds) that has to pass between postings for new message to receive karma vote. This is useful to combat flood."),
- }),
- ('score_reward_karma_positive', {
- 'value': 20,
- 'type': "integer",
- 'input': "text",
- 'extra': {'min': 0},
- 'separator': _("Karma System"),
- 'name': _("Upvote Reward"),
- 'description': _("Score user will receive every time his post receives upvote."),
- }),
- ('score_reward_karma_negative', {
- 'value': 10,
- 'type': "integer",
- 'input': "text",
- 'extra': {'min': 0},
- 'name': _("Downvote Punishment"),
- 'description': _("Score user will lose every time his post receives downvote."),
- }),
- ),
- }),
- )
- def load():
- load_settings_fixture(settings_fixture)
- def update():
- update_settings_fixture(settings_fixture)
|