vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Show hashed IP to find sock puppets (https://vborg.vbsupport.ru/showthread.php?t=259919)

ateesdale 03-05-2011 10:00 PM

Show hashed IP to find sock puppets
 
1 Attachment(s)
Here is a little mod that I used in my forum. Basically, it takes the IP address for each posts and hashes it so that I can show it to the users of the forum. I hash it as I do not want regular members seeing the actual IP of the person making the post. This allows users to identify sockpuppets and users with multiple registrations.

It is sort of ugly but it works.

1. You need to create a new plugin under AdminCP -> Plugins & Products -> Add New Plugin

Product: vBulletin
Hook Location: posbit_display_start
Title: IP to Hash
Execution Order: Leave as is
Plugin PHP Code:
PHP Code:

$md5ip substr(md5('PUTAUNIQUEVALUEHERE'.$post['ip']),-10); 

2. Then you need to add some code to your postbit template. I put mine right under the Quote button for each post. I also limit it's view to certain users.

PHP Code:

<if condition="is_member_of($bbuserinfo, 6,7,9)">                                
<
div class="smallfont">$md5ip</div>
</if> 


BirdOPrey5 03-06-2011 07:38 PM

I like the idea :up:

gsmworldone 03-07-2011 04:48 AM

nice idea, do you have some screenshot? or live demo

Qima 03-07-2011 06:39 PM

Thanks ,

Ro7 Qatif 05-18-2011 05:29 AM

Quote:

Originally Posted by gsmworldone (Post 2170453)
nice idea, do you have some screenshot? or live demo

same thing :up:


All times are GMT. The time now is 09:03 AM.

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.01621 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete