Umfrageabstimmende anzeigen
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
-
- Mitglied
- Beiträge: 400
- Registriert: 16.04.2011 11:29
Umfrageabstimmende anzeigen
Hallo gibt es einen Mod mit dem man als Administrator sehen kann, wer bei einer Umfrage was abgestimmt hat?
- DreamPromise
- Mitglied
- Beiträge: 3793
- Registriert: 27.01.2004 17:56
Re: Umfrageabstimmende anzeigen
Öffne viewtopic.php
suche:
#########################################################################################################################
$poll_info[$i]['poll_option_text'] = bbcode_nl2br($poll_info[$i]['poll_option_text']);
$poll_info[$i]['poll_option_text'] = smiley_text($poll_info[$i]['poll_option_text']);
#########################################################################################################################
danach einfügen
#########################################################################################################################
/* Begin 'Show voters' MOD by Ernst Vaarties */
$sql_voters = '
SELECT username, vote_user_id
FROM ' . POLL_VOTES_TABLE . ', ' . USERS_TABLE . '
WHERE topic_id = ' . $topic_id . '
AND poll_option_id = ' . $poll_info[$i]['poll_option_id'] . '
AND ' . POLL_VOTES_TABLE . '.vote_user_id = ' . USERS_TABLE . '.user_id
ORDER BY username ASC, vote_user_id ASC';
$results_voters = $db->sql_query($sql_voters);
$voters_total = 0;
$voters_string = "";
// Add all voters to a string.
while ($row_voters = $db->sql_fetchrow($results_voters))
{
$voters_total = $voters_total + 1;
$voters_string = $voters_string . ", " . $row_voters['username'];
}
// Is the total nr of voters <> the nr of votes for the poll? Add this to the same string.
if ($voters_total <> $poll_info[$i]['poll_option_total'])
{
$voters_string = $voters_string . ", <> " . ($poll_info[$i]['poll_option_total'] - $voters_total);
}
$voters_string = ltrim($voters_string, ", ");
// Add the string to the list.
$poll_info[$i]['poll_option_voters'] = $voters_string;
$db->sql_freeresult($results_voters);
/* End 'Show voters' MOD by Ernst Vaarties */
#########################################################################################################################
suche:
#########################################################################################################################
'POLL_OPTION_VOTED' => (in_array($poll_option['poll_option_id'], $cur_voted_id)) ? true : false)
#########################################################################################################################
davor einfügen:
#########################################################################################################################
'POLL_OPTION_VOTERS' => $poll_option['poll_option_voters'],
#########################################################################################################################
ÖFFNE viewtopic_body.html
SUCHE:
#########################################################################################################################
<!-- ELSE -->{poll_option.POLL_OPTION_PERCENT}<!-- ENDIF -->
#########################################################################################################################
Ersetze mit:
#########################################################################################################################
<!-- ELSEIF U_ACP -->
{poll_option.POLL_OPTION_PERCENT}
<dd class="resultbar">
{poll_option.POLL_OPTION_VOTERS}
</dd>
<!-- ENDIF -->
suche:
#########################################################################################################################
$poll_info[$i]['poll_option_text'] = bbcode_nl2br($poll_info[$i]['poll_option_text']);
$poll_info[$i]['poll_option_text'] = smiley_text($poll_info[$i]['poll_option_text']);
#########################################################################################################################
danach einfügen
#########################################################################################################################
/* Begin 'Show voters' MOD by Ernst Vaarties */
$sql_voters = '
SELECT username, vote_user_id
FROM ' . POLL_VOTES_TABLE . ', ' . USERS_TABLE . '
WHERE topic_id = ' . $topic_id . '
AND poll_option_id = ' . $poll_info[$i]['poll_option_id'] . '
AND ' . POLL_VOTES_TABLE . '.vote_user_id = ' . USERS_TABLE . '.user_id
ORDER BY username ASC, vote_user_id ASC';
$results_voters = $db->sql_query($sql_voters);
$voters_total = 0;
$voters_string = "";
// Add all voters to a string.
while ($row_voters = $db->sql_fetchrow($results_voters))
{
$voters_total = $voters_total + 1;
$voters_string = $voters_string . ", " . $row_voters['username'];
}
// Is the total nr of voters <> the nr of votes for the poll? Add this to the same string.
if ($voters_total <> $poll_info[$i]['poll_option_total'])
{
$voters_string = $voters_string . ", <> " . ($poll_info[$i]['poll_option_total'] - $voters_total);
}
$voters_string = ltrim($voters_string, ", ");
// Add the string to the list.
$poll_info[$i]['poll_option_voters'] = $voters_string;
$db->sql_freeresult($results_voters);
/* End 'Show voters' MOD by Ernst Vaarties */
#########################################################################################################################
suche:
#########################################################################################################################
'POLL_OPTION_VOTED' => (in_array($poll_option['poll_option_id'], $cur_voted_id)) ? true : false)
#########################################################################################################################
davor einfügen:
#########################################################################################################################
'POLL_OPTION_VOTERS' => $poll_option['poll_option_voters'],
#########################################################################################################################
ÖFFNE viewtopic_body.html
SUCHE:
#########################################################################################################################
<!-- ELSE -->{poll_option.POLL_OPTION_PERCENT}<!-- ENDIF -->
#########################################################################################################################
Ersetze mit:
#########################################################################################################################
<!-- ELSEIF U_ACP -->
{poll_option.POLL_OPTION_PERCENT}
<dd class="resultbar">
{poll_option.POLL_OPTION_VOTERS}
</dd>
<!-- ENDIF -->
-
- Mitglied
- Beiträge: 400
- Registriert: 16.04.2011 11:29
Re: Umfrageabstimmende anzeigen
Das werde ich bald mal ausprobieren. Erst mal warten bis die Serverprobleme bei meinem Anbieter vorbei sind und, dann kann ich mich arum kümmern. Ich wollte sowieso den Annieter wechseln.



Re: Umfrageabstimmende anzeigen
Hallo,
hat das nun einer mal getestet?
Wenn das funktioniert,würde ich das bei mir auch einbauen.
Gruß EagleEye
hat das nun einer mal getestet?
Wenn das funktioniert,würde ich das bei mir auch einbauen.
Gruß EagleEye
- DreamPromise
- Mitglied
- Beiträge: 3793
- Registriert: 27.01.2004 17:56
Re: Umfrageabstimmende anzeigen
klar hab ich das bei mir eingebaut .. funktioniert super.
-
- Mitglied
- Beiträge: 400
- Registriert: 16.04.2011 11:29
Re: Umfrageabstimmende anzeigen
Gut, ich bin gerade im Urlaub und kann nur auf das IPad zugreifen. Das mache ich, dann zu Hause, da muss ich mir keine Gedanken machen.