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 01-30-2003, 02:41 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default ipaddress logging modifications?

I am looking for a re-vamp of the ipaddress logging if possible.

since there are sites out there that crawl the entire internet and store all pages found I had an idea.

I am hoping someone would write a hack that would make it so the ipaddresses for team members (admin, supermods and mods) IP addresses would be inserted as 127.0.0.1 but all other usergroups log as it is now in the database in the post table.

or....

make it so the ipaddresses would compile and be viewble in members memberfile instead of the post table so IP logging can be turned off for the posts

in other words.....have a drop-down in the memberfile for all of their ipaddresses so it would be viewable there instead of compiling them in the post table and allow logging to be turned off.

I hope that made sense.

can this be done?
Reply With Quote
  #2  
Old 01-30-2003, 12:10 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, i don't see the sense for it, crawlers can't get the ip out of the post table...

but at least the first thing to just store the ip for no staffs is easy:
open newreply.php
find:
PHP Code:
if ($logip==or $logip==2) { 
and change it to:
PHP Code:
if (!in_array($bbuserinfo[usergroupid], array(5,6,7)) and ($logip==or $logip==2)) { 
Reply With Quote
  #3  
Old 01-30-2003, 06:32 PM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does that mean it will not store the IPs for those usergroups but still store them for everyone else?
Reply With Quote
  #4  
Old 01-30-2003, 06:47 PM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this warning when viewing IP addresses after doing thaqt
Quote:
Warning: Address is not a valid IPv4 or IPv6 address in /home/poothead/public_html/forum/admin/user.php on line 1316
Reply With Quote
  #5  
Old 01-30-2003, 07:34 PM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would also assume (uh-oh ) that something would need to be done to newthread.php as well as postings.php maybe.

automatically inserting 127.0.0.1 rather than not logging admin and mods IP's would avoid that error (once again...I think)
Reply With Quote
  #6  
Old 01-31-2003, 03:07 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^
Reply With Quote
  #7  
Old 02-01-2003, 10:38 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

changes to newthread.php are identical...

so find this block in general:
PHP Code:
    if ($logip==or $logip==2) {
      if (
$temp $HTTP_SERVER_VARS['REMOTE_ADDR']) {
        
$ipaddress $temp;
      } else if (
$temp $REMOTE_ADDR) {
        
$ipaddress $temp;
      } else {
        
$ipaddress $HTTP_HOST;
      }
    } else {
      
$ipaddress="";
    } 
and replace it with:
PHP Code:
    if ($logip==or $logip==2) {
      if (
$temp $HTTP_SERVER_VARS['REMOTE_ADDR']) {
        
$ipaddress $temp;
      } else if (
$temp $REMOTE_ADDR) {
        
$ipaddress $temp;
      } else {
        
$ipaddress $HTTP_HOST;
      }
      if(
in_array($bbuserinfo[usergroupid], array(5,6,7)) {
        
$ipaddress '127.0.0.1';
      }
    } else {
      
$ipaddress="";
    } 
Reply With Quote
  #8  
Old 08-22-2005, 05:26 AM
sarum sarum is offline
 
Join Date: Aug 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can one of you great ingenious guys translate this to vb3 code?
i would be SOOOOOOOOOO happy if you could
this is exactly what the doctor ordered

but i need help i cant figure it out myself

thanks guys
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 06:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07499 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
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
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete