|
When you change any of these settings, you have the option to recalculate all the ratings on your site to make the changes ''fair''.
|
|
-all values are normalised to 100 regardless of your settings. this means that all of the above calculations can be done on the fly using the history and returning an accurate value.
|
+All values are normalised to 100 regardless of your settings. This means that all of the above calculations can be done on the fly using the history and returning an accurate value. This also means that someone might want to develop a package that ties in with StarsPackage and uses the ratings to trigger something. |
|
-! ToDo
|
+!! Changing Stars Icon |
+It is easy to use your own icon for stars. Here i will describe the steps needed to use your own icon without replacing the original: |
+# Copy the sample icon from __stars/icons/stars_small.gif__ to __themes/force/stars/stars.gif__ (please note that the icon was renamed from stars_small.gif to stars.gif). |
+# Go to the stars admin panel (/kernel/admin/index.php?page=stars) and enter the following icon sizes: __width:10__ and __height:10__. |
+# You're already done! |
+Placing the icon in themes/force will override all themes in bitweaver. This is recommended since the icon settings are used system wide as well. If you prefer, you can place the icon in your custom themes: themes/styles/<custom_theme>/stars/stars.gif |
+ |
+! Future? |
After some time and testing of the weighting (karma) calculations, we can add a feature by which badly rated content can be hidden or even removed from the site. This is done quite easily using our setup, but we first need to get the package tested for a while to evaluate the weighting algorithm.
|
|
-the current calculation is as follows:
|
-{code}
|
+{code title="Current karma user weighting calculations"} |
round( log( $age * $permission * $activity, 2 ) )
|
-// where
|
+// where the following is true: |
$age = ( age of user ) / ( age of site ) * ( age weight preference )
|
$permission = ( number of user permissions ) / ( total number of permissions ) * ( permission weight preference )
|
$activity = ( number of content created by user ) / ( total content count ) * ( activity weight preference )
|
{/code}
|
-$activity will probably be changed to take the history into account as well. |
+ |
+# $activity might be changed to take the history into account as well. |
+# perhaps add a permission for rating if wanted. |
+ |