Open admin/thread.php
Find:
Code:
$votes = $DB_site->query("
SELECT pollvote.*, user.username
FROM pollvote
LEFT JOIN user ON(user.userid=pollvote.userid)
WHERE pollid='$pollid' ORDER BY voteoption, username ASC
");
Replace with:
Code:
$votes = $DB_site->query("
SELECT pollvote.*, user.username, user.ipaddress
FROM pollvote
LEFT JOIN user ON(user.userid=pollvote.userid)
WHERE pollid='$pollid' ORDER BY voteoption, username ASC
");
Now find:
Code:
if ($vote['username']=="") {
$username = "<font size='1'>Guest</font>";
} else {
$username = "<a href=\"../member.php?s=$session[sessionhash]&action=getinfo&userid=$vote[userid]\" target=\"_blank\">$vote[username]</a>";
}
Add below:
Code:
if ($vote['ipaddress']=="") {
$ipaddress = "<font size='1'>No IP</font>";
} else {
$ipaddress = "<a href=\"/user.php?s=$session[sessionhash]&action=doips&username=$vote[username]\" target=\"_blank\">$vote[ipaddress]</a>";
}
Now find:
Code:
if ($lastoption != $vote['voteoption']) {
$option = $options[($vote['voteoption']-1)];
echo "</td></tr>\n<tr class='".getrowbg()."'><td><b>$option</b></td><td>\n";
echo "$username \n";
} else {
echo "$username \n";
}
Replace with:
Code:
if ($lastoption != $vote['voteoption']) {
$option = $options[($vote['voteoption']-1)];
echo "</td></tr>\n<tr class='".getrowbg()."'><td><b>$option</b></td><td>\n";
echo "$username ($ipaddress) \n";
} else {
echo "$username ($ipaddress) \n";
}
Satan