Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2003, 05:54 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default IP of every person that replies

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.
Reply With Quote
  #2  
Old 06-02-2003, 08:02 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
  #3  
Old 06-11-2003, 10:04 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BUMP. SOMEONE PLEASE HELP.
Reply With Quote
  #4  
Old 06-11-2003, 10:11 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a Security & Privacy risk, and therefore should not be coded

Satan
Reply With Quote
  #5  
Old 06-15-2003, 08:55 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 06-15-2003, 09:39 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have modified a hack to look like this.

PHP Code:
1. Run the following query:

ALTER TABLE thread ADD useridviews TEXT NOT NULL AFTER views;


2. In showthread.phpfind:

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 thatadd:

// 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 showthreadfind:

$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.
Reply With Quote
  #7  
Old 06-17-2003, 08:36 AM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
  #8  
Old 06-17-2003, 07:20 PM
S.Shady's Avatar
S.Shady S.Shady is offline
 
Join Date: Apr 2003
Location: Cleveland, Ohio
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

put that in help me finish forum ppl might help. i would but i dont know php
Reply With Quote
  #9  
Old 06-17-2003, 11:33 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 04:20 PM S.Shady said this in Post #8
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.
Reply With Quote
  #10  
Old 06-18-2003, 03:31 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump help please
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06457 seconds
  • Memory Usage 2,268KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete