Board/Heat
Board / HeatThe SCT forum supports calculation of the 'heat' of a thread. This can be used to display special icons for "hot threads".
1. Configuration
The following SPH SETTINGS variables are available to define the behavior of this feature:
- board_heat_days: If this value is 30 it defines that only posts of the last 30 days are considered when counting the number of threads
- board_heat_calculator: Declares the method (including package) which is used to calculate the heat of a thread. the default is 'sphene.sphboard.models.calculate_heat'
- board_heat_post_threshold: Used by the default heat calculator - The threshold when a thread starts to be declared as 'hot'. (the number of posts in the last board_heat_days days.)
- board_heat_view_threshold: Used by the default heat calculator - The threshold when a thread starts to be declared as 'hot'. (by day - view count / age)
2. Custom Function
The function declared in 'board_heat_calculator' receives the following arguments:
- thread - The ThreadInformation object.
- postcount - The number of posts in the last board_heat_days days.
- viewcount - The total number of views.
- age - The age of the thread in days.
Last Modified: 2007-08-12 19:53:38 by Herbert Poul - [ Snip Changes ] [ Wiki History ]
0 Comments
No comments yet.
Please login to create a new thread.