ateesdale
03-05-2011, 10:00 PM
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:
$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.
<if condition="is_member_of($bbuserinfo, 6,7,9)">
<div class="smallfont">$md5ip</div>
</if>
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:
$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.
<if condition="is_member_of($bbuserinfo, 6,7,9)">
<div class="smallfont">$md5ip</div>
</if>