Verfasst: 30.01.2003 16:57
Wenns möglich ist auch so 1/4, 1/3, 1/2 sterne ((:-)))
Grüße Jason
Grüße Jason
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Ich nahm an genauso meinte saerdnaer das1 Stern, 1 1/2 Sterne, 2 Sterne usw. --> 5 Sterne
Dem schliess ich mich anIch weiss net ob das machbar ist oder ob das zuviel Arbeit kostet, würde mich wenn aber auch irgendwie erkenntlich zeigen wollen...
Code: Alles auswählen
$sql = "ALTER
TABLE " . FORUMS_TABLE . "
ADD `auth_rate` TINYINT(2) NOT NULL default -1";
$sql = "CREATE TABLE " . $table_prefix . "rate_results (
`user_id` MEDIUMINT UNSIGNED NOT NULL,
`topic_id` MEDIUMINT UNSIGNED NOT NULL,
`rating` MEDIUMINT UNSIGNED NOT NULL,
PRIMARY KEY (`user_id`, `topic_id`)
)";
$sql = "CREATE
TABLE " . $table_prefix . "rate_config (
config_name varchar(255) NOT NULL default '',
config_value varchar(255) NOT NULL default '',
PRIMARY KEY (config_name)
) TYPE=MyISAM";
Code: Alles auswählen
'FOLDER_ANNOUNCE_NEW_IMG' => $images['folder_announce_new'],
Code: Alles auswählen
'RATE_IMG' => $images['rate_graphic'],
'RATE_IMG_HEIGHT' => $board_config['rate_graphic_height'],
Code: Alles auswählen
'TOPIC_RATE' => (((int)($rating_stats['average']*10)) * 0.1 ),
Code: Alles auswählen
'TOPIC_RATE_P' => round( ($board_config['rate_graphic_length']/$rate_config['max_rating']) * $rating_stats['average']),
Code: Alles auswählen
?>
Code: Alles auswählen
$board_config['rate_graphic_length'] = 55;
$board_config['rate_graphic_height'] = 25;
$images['rate_graphic'] = "$current_template_images/rate_graphic.gif";
Code: Alles auswählen
{topicrow.TOPIC_RATE}
Code: Alles auswählen
<table width="{topicrow.TOPIC_RATE_P}" cellspacing="0" cellpadding="0" border="0"><tr><td background="{RATE_IMG}"><img src="images/spacer.gif" width="{topicrow.TOPIC_RATE_P}" heigt="{RATE_IMG_HEIGHT}" border="0" alt="{topicrow.TOPIC_RATE}" title="{topicrow.TOPIC_RATE}" /></td></tr></table>