The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
poll voters.. grab the ip and display on 'who voted'
poll voters.. grab the ip and display on 'who voted'.
Woundering if anyone has done somethign like this yet? |
#2
|
||||
|
||||
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 "); 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 "); 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>"; } 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>"; } 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"; } 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 |
#3
|
|||
|
|||
how would I get a unregeistered user ip who voted?
|
#4
|
||||
|
||||
I am afraid that would be impossible without some sort of storage system for unregistered user's ips...
Satan |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|