Re: [RC] phpBB Statistics v1.0.0
Verfasst: 23.07.2009 13:27
Also für die nächste Version habe ich schon etwas an der Funktion die diesen Fehler verursacht verändert. Weshalb weiß ich zwar jetzt nicht mehr, aber vielleicht hilft es dir ja:
Öffne statistics/includes/functions.php
Finde:
Ersetze durch:
Wenn das nicht hilft wäre es noch schön zu wissen ob du zur Zeit Umfragen auf deinem Board hast. Wenn nicht, dann könnte es helfen eine zu erstellen.
Öffne statistics/includes/functions.php
Finde:
Code: Alles auswählen
//get the poll option texts
$sql = 'SELECT poll_option_text, poll_option_id, topic_id FROM ' . POLL_OPTIONS_TABLE . '
WHERE ' . $db->sql_in_set('topic_id', $topic_ids);
$result = $db->sql_query($sql);
while ($current_option = $db->sql_fetchrow($result))
{
$return_ary[$current_option['topic_id']][] = '(' . $current_option['poll_option_id'] . ') ' . $current_option['poll_option_text'];
}
$db->sql_freeresult($result);
return $return_ary;
Code: Alles auswählen
//get the poll option texts
$sql = 'SELECT po.poll_option_text AS poll_option_text, po.poll_option_id AS poll_option_id, po.topic_id AS topic_id, p.bbcode_uid AS bbcode_uid, p.bbcode_bitfield AS bbcode_bitfield
FROM ' . POLL_OPTIONS_TABLE . ' po, ' . POSTS_TABLE . ' p, ' . TOPICS_TABLE . ' t
WHERE ' . $db->sql_in_set('po.topic_id', $topic_ids) . '
AND po.topic_ID = t.topic_id
AND t.topic_first_post_id = p.post_id';
$result = $db->sql_query($sql);
while ($current_option = $db->sql_fetchrow($result))
{
$current_text = '';
$current_text = generate_text_for_display($current_option['poll_option_text'], $current_option['bbcode_uid'], $current_option['bbcode_bitfield'], 7);
$return_ary[$current_option['topic_id']][] = '(' . $current_option['poll_option_id'] . ') ' . $current_text;
}
$db->sql_freeresult($result);
return $return_ary;
Wenn das nicht hilft wäre es noch schön zu wissen ob du zur Zeit Umfragen auf deinem Board hast. Wenn nicht, dann könnte es helfen eine zu erstellen.