redbull254 hat geschrieben:Leider bekomme ich immer eine Fehlermeldung:...
... dann hast Du aber auch kein 3.0.11 Board.
Finde in dem von Dir geposteten Code:
oder besser noch (falls vorhanden): finde in Deiner
viewtopic.php
davor füge ein (also nur einmal):
Code: Alles auswählen
if (!function_exists('poll_voters_names')) include_once($phpbb_root_path . 'includes/functions_display.' . $phpEx);
finde in dem von Dir geposteten Code:
Code: Alles auswählen
else
{
$template->assign_block_vars('poll_option', array(
'POLL_OPTION_ID' => $poll_option['poll_option_id'],
danach füge ein:
Code: Alles auswählen
'POLL_OPTION_NAMES' => poll_voters_names($topic_data['topic_id'], $poll_option['poll_option_id']),
Der von Dir gepostete Code könnte dann also so aussehen:
Code: Alles auswählen
if (!function_exists('poll_voters_names')) include_once($phpbb_root_path . 'includes/functions_display.' . $phpEx);
if($s_hide_results)
{
$template->assign_block_vars('poll_option', array(
'POLL_OPTION_ID' => $poll_option['poll_option_id'],
'POLL_OPTION_NAMES' => poll_voters_names($topic_data['topic_id'], $poll_option['poll_option_id']),
'POLL_OPTION_CAPTION' => $poll_option['poll_option_text'],
'POLL_OPTION_RESULT' => '?',
'POLL_OPTION_PERCENT' => '?',
'POLL_OPTION_PCT' => round($option_pct * 0),
'POLL_OPTION_IMG' => $user->img('poll_center', '?', round($option_pct * 0)),
'POLL_OPTION_VOTED' => (in_array($poll_option['poll_option_id'], $cur_voted_id)) ? true : false)
);
}
else
{
$template->assign_block_vars('poll_option', array(
'POLL_OPTION_ID' => $poll_option['poll_option_id'],
'POLL_OPTION_NAMES' => poll_voters_names($topic_data['topic_id'], $poll_option['poll_option_id']),
'POLL_OPTION_CAPTION' => $poll_option['poll_option_text'],
'POLL_OPTION_RESULT' => $poll_option['poll_option_total'],
'POLL_OPTION_PERCENT' => $option_pct_txt,
'POLL_OPTION_PCT' => round($option_pct * 100),
'POLL_OPTION_IMG' => $user->img('poll_center', $option_pct_txt, round($option_pct * 250)),
'POLL_OPTION_VOTED' => (in_array($poll_option['poll_option_id'], $cur_voted_id)) ? true : false)
);
}
}
Cache leeren nicht vergessen.
Gruss, Miriam.
Ich schmeiß' alles hin und...
... lasse es liegen