PDA

View Full Version : IP of every person that replies


BigJohnson
06-01-2003, 05:54 PM
I want to create a hack where the IP to everyone that replies to a thread will show to only the creator of the thread in the first post as a list.

I want it to work only in forum ids 13, 16, 18, 19

Can someone please help me out. Thanks.

BigJohnson
06-02-2003, 08:02 PM
bump

BigJohnson
06-11-2003, 10:04 PM
BUMP. SOMEONE PLEASE HELP.

Chris M
06-11-2003, 10:11 PM
This is a Security & Privacy risk, and therefore should not be coded:(

Satan

BigJohnson
06-15-2003, 08:55 PM
I don't understand how this shouldn't be coded.

I can have it in VB options to show everyones ip address to everyone. How come this is now a security and privacy risk?

I hope someone can please me out with this one.

BigJohnson
06-15-2003, 09:39 PM
I have modified a hack to look like this.

1. Run the following query:

ALTER TABLE thread ADD useridviews TEXT NOT NULL AFTER views;


2. In showthread.php, find:

if ($noshutdownfunc) {
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
}

After that, add:

// make sure not to have redundancy in the view list, so get who's viewed it
// first (and do nothing for invisible users)
$thisthread = $DB_site->query_first("SELECT useridviews FROM thread
WHERE threadid = $threadid");
$useridviews = explode(" ", $thisthread['useridviews']);
if (!$bbuserinfo['invisible'])
{
if (!empty($thisthread['useridviews']))
{
if (!in_array($bbuserinfo['userid'], $useridviews))
{
$DB_site->query("
UPDATE thread
SET useridviews = CONCAT(useridviews, \" \", \"" .
$bbuserinfo['userid'] . "\")
WHERE threadid = $threadid");
}
}
else
{
$DB_site->query("UPDATE thread
SET useridviews = \"" . $bbuserinfo['userid'] . "\"
WHERE threadid = $threadid");
}
}

// now...who's viewed this thread? (will include $bbuserinfo if he's not invis)
if (empty($thisthread['useridviews']))
{
$thread['viewers'] = "nobody";
}
else
{
$result = $DB_site->query("SELECT userid, ipaddress FROM user
WHERE userid IN (" . implode(", ", $useridviews) . ")");
$viewers = array();
while ($user = $DB_site->fetch_array($result))
{
array_push($viewers, "<a target=\"_blank\" href=\"member.php?s=" .
$session['sessionhash'] . "&action=getinfo&userid=" .
$user['userid'] . "\">" . htmlspecialchars($user['ipaddress']) .
"</a>");
}
$thread['viewers'] = implode(", ", $viewers);
}


3. In showthread, find:

$poll

Before that, add:

<smallfont>Already viewed or currently viewing this thread:</b> $thread[viewers]</smallfont><br>

I think this will work but one thing.

How do I make it so that ONLY the person who started the thread can view these ips?

Please help me with that part at least. Thank you.

o ya and how do I make it only show in the Forum Ids above in my first post. Thanks again.

BigJohnson
06-17-2003, 08:36 AM
bump

S.Shady
06-17-2003, 07:20 PM
put that in help me finish forum ppl might help. i would but i dont know php :(

BigJohnson
06-17-2003, 11:33 PM
Today at 04:20 PM S.Shady said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=410009#post410009)
put that in help me finish forum ppl might help. i would but i dont know php :(


Thanks bud Did that hope it gets more attention there hehe.

BigJohnson
06-18-2003, 03:31 PM
bump help please

BigJohnson
06-20-2003, 09:02 AM
and another bumpity bump bump

Chris Gwynne
06-20-2003, 09:10 AM
Please don't bump threads. They'll be viewed and replied to if someone can help.

BigJohnson
06-22-2003, 01:03 PM
Ya but if they are far down the list know one will see them if they can help out. I just needed a simple little code. ;(