Код: Выделить всё
#################################################################
## MOD Title: Topic and Post Rating Modification
## MOD Author: enginemike < N/A > (Michael) < N/A >
## MOD Description:
## This modification adds the functionality to rate topics and posts to
## the phpBB forum software. The rating score for a topic and post is
## indicated by a graphic associated with each entry. The rating score
## is the running average of all rating submissions
Довольно интересное решение по оценке тем и сообщений. Но есть на мой взгляд один недостаток. Не выводит картинку во viewforum об оценке топика. Рейтинг топика виден когда зайдешь в него после его названия, сверху.
Как бы реализовать графический вывод во viewforum типа как у воблы, т.е с права от название топика?
Заранее спасибо за помошь.
Сразу приведу замеченные ошибки, видимо по небрежности автора. Места ошибок подчеркнуты:
includes/prune.phpALTER TABLE phpbb_users ADD user_credit_action TINTINT(1) NOT NULL DEFAULT '0'
----
ALTER TABLE phpbb_users ADD user_credit_action TINYINT(1) NOT NULL DEFAULT '0'
templates/subSilver/viewtopic_body.tpl//begin KK rating mod
$sql = "DELETE FROM " . RATE_TABLE . "
WHERE rate_topic_id IN ($sql_topics))";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete topic rate records during prune', '', __LINE__, __FILE__, $sql);
}
-----
//begin KK rating mod
$sql = "DELETE FROM " . RATE_TABLE . "
WHERE rate_topic_id IN ($sql_topics)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete topic rate records during prune', '', __LINE__, __FILE__, $sql);
}
<!-- begin KK rating mod -->
<!-- BEGIN switch_rate_topicImage -->
{I_RATING_TOPIC_IMG}
<!-- END switch_rate_topicImage} -->
<!-- end KK rating mod -->
-----
<!-- begin KK rating mod -->
<!-- BEGIN switch_rate_topicImage -->
{I_RATING_TOPIC_IMG}
<!-- END switch_rate_topicImage -->
<!-- end KK rating mod -->