Seite 2 von 2

Re: Abstimmung wahlweise Anonym oder Namentlich durchführen

Verfasst: 26.11.2012 02:47
von redbull254
Leider bekomme ich immer eine Fehlermeldung:

Code: Alles auswählen

Fatal error: Call to undefined function poll_voters_names() in C:\xampp\htdocs\phpbb3\viewtopic.php on line 977

Hier ein Abschnitt aus der Datei:

Code: Alles auswählen

		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_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)
		);
		}
	}

Re: Abstimmung wahlweise Anonym oder Namentlich durchführen

Verfasst: 26.11.2012 09:58
von Miriam
Ich mach mal hier drüben weiter -> Klick