in file functions2.php
Code: Select all
if ($limit > 0) {
$limit_query_part = "LIMIT " . $limit;
}
+if ($view_mode == "zero_score") {
+ $view_query_part = " score = 0 AND ";
+ }
in file index.php
Code: Select all
<option value="has_note"><?php echo __('With Note') ?></option>
+ <option value="zero_score"><?php echo __('Zero Score') ?></option>
PS : Sorry . Forgot to ask question.
How can i create plug-in which delete automatically all articles with 0 score after 1 day or week ? May be i asking stupid question but i am not a programmer . May be somebody can help me from what to start.