|
@@ -40,6 +40,47 @@ settings_fixtures = (
|
|
|
'name': _("Display avatars on threads list"),
|
|
|
'description': _("Unlike basic user data, avatars are not cached - turning this option on will cause one extra query on threads lists."),
|
|
|
}),
|
|
|
+ ('thread_ranking_size', {
|
|
|
+ 'value': 10,
|
|
|
+ 'type': "integer",
|
|
|
+ 'input': "text",
|
|
|
+ 'extra': {'min': 0,'max': 30},
|
|
|
+ 'separator': _("Thread Popularity Ranking"),
|
|
|
+ 'name': _('Threads on "Popular Threads" list'),
|
|
|
+ 'description': _('Enter number of threads to be displayed on "Popular Threads" list on board index or 0 to don\'t display any threads there.'),
|
|
|
+ }),
|
|
|
+ ('thread_ranking_refresh', {
|
|
|
+ 'value': 60,
|
|
|
+ 'type': "integer",
|
|
|
+ 'input': "text",
|
|
|
+ 'extra': {'min': 0},
|
|
|
+ 'name': _('Ranking Update Frequency'),
|
|
|
+ 'description': _('Enter minimum of number of minutes between ranking updates or zero to update ranking on every request - strongly discouraged for active forums.'),
|
|
|
+ }),
|
|
|
+ ('thread_ranking_initial_score', {
|
|
|
+ 'value': 30,
|
|
|
+ 'type': "integer",
|
|
|
+ 'input': "text",
|
|
|
+ 'extra': {'min': 0},
|
|
|
+ 'name': _('Initial Thread Score'),
|
|
|
+ 'description': _("Initial Thread Score helps new threads overtake old threads in ranking."),
|
|
|
+ }),
|
|
|
+ ('thread_ranking_reply_score', {
|
|
|
+ 'value': 5,
|
|
|
+ 'type': "integer",
|
|
|
+ 'input': "text",
|
|
|
+ 'extra': {'min': 0},
|
|
|
+ 'name': _('New Reply Score'),
|
|
|
+ 'description': _("Only replies visible to all members increase thread inflation."),
|
|
|
+ }),
|
|
|
+ ('thread_ranking_inflation', {
|
|
|
+ 'value': 20,
|
|
|
+ 'type': "integer",
|
|
|
+ 'input': "text",
|
|
|
+ 'extra': {'min': 0, 'max': 99},
|
|
|
+ 'name': _('Score inflation'),
|
|
|
+ 'description': _("Thread popularity system requires inflation to be defined in order to be effective. updatethreadranking task will lower thread scores by percent defined here on every launch. For example, yf you enter 5, thread scores will be lowered by 5% on every update. Enter zero to disable inflation."),
|
|
|
+ }),
|
|
|
('post_length_min', {
|
|
|
'value': 5,
|
|
|
'type': "integer",
|