Seite 1 von 4

[RC1] Show poll voters names

Verfasst: 23.11.2012 23:18
von Miriam
Modifikations Name:
  • Show poll voters names
Author: Modifikations Beschreibung:
  • Eine Modifikation, die die Benutzer befähigt, mit Namen zu wählen oder anonym.
Modifikations Version:
  • [RC] 1.0
phpBB3 Version: 3.0.11

Funktionen:
  • Der Umfrageersteller gibt vor, ob mit Namen gewählt werden kann,
  • Der Umfrageteilnehmer, kann dann selbst wählen, ob er im Verlauf der Stimmabgabe von dieser Möglichkeit Gebrauch machen möchte oder nicht,
  • die Benutzer werden dann entsprechend ihrer Wahl bei der Ergebnisanzeige angezeigt oder nicht,
  • Installation mit AutoMod
Modifikation Download:

Re: [RC1] Show poll voters names

Verfasst: 23.11.2012 23:23
von AYYILDIZLAR
Hallo,

Da wird sich aber jemand über die Mod von dir Miriam ganz dolle freuen. Finde ich persönlich klasse, tolle Sache.


Grüße

Re: [RC1] Show poll voters names

Verfasst: 23.11.2012 23:24
von Miriam
Was tut man nicht alles *grin*
Ich sehe gerade, dass eine neue UMIL Version raus ist... Also ich packe die jetzt nicht nochmal neu ein :-?

Re: [RC1] Show poll voters names

Verfasst: 23.11.2012 23:56
von BNa
Coole Sache *thumbs up

Re: [RC1] Show poll voters names

Verfasst: 24.11.2012 15:19
von Miriam
So, jetzt ist das Teil sogar AutoMOD 1.0.1 kompatibel 8) ... Und die neue UMIL Bibliothek ist auch drin.

Re: [RC1] Show poll voters names

Verfasst: 26.11.2012 02:58
von redbull254
Hallo Mariam,
ich bekomme 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

Re: [RC1] Show poll voters names

Verfasst: 26.11.2012 10:00
von Miriam
redbull254 hat geschrieben:Leider bekomme ich immer eine Fehlermeldung:...
... dann hast Du aber auch kein 3.0.11 Board. 8)

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.

Re: [RC1] Show poll voters names

Verfasst: 26.11.2012 11:24
von Secretly
Hm... ich wollte mal testen aber:
Der ausgewählte Dateianhang existiert nicht mehr.

Re: [RC1] Show poll voters names

Verfasst: 26.11.2012 12:15
von Miriam
Probier mal nochmal :-P

Re: [RC1] Show poll voters names

Verfasst: 26.11.2012 12:47
von Secretly
Danke :D Dann probiere ich es nachher mal :)

edit: Klappt super :)