Helpful Information
 
 
Category: vBulletin 3.5 Template Modifications
View IP address inline

Name: View IP address inline
Description: Replaces computer (or theme equivalent) icon and mouseover to display posters IP address with the IP address simply as text.
Difficulty: Simplicity itself!
Screenshot attached

Basically I just wanted IP address display to work the same as in SMF. It's infinitely more usable; far easier to scan addresses and spot discrepancies at a glance, etc.


Open postbit_ip in your templates.

FIND: (Should be the entire contents unless you've modded it already)

<if condition="$show['ip']">
$vbphrase[ip]: $post[ip]
<else />
<a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
</if>

REPLACE WITH:

<if condition="$show['ip']">
$vbphrase[ip]: $post[ip]
<else />
<a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]">$post[ip]</a>
</if>

And if you feel like cleaning up afterwards to recover those precious bytes ;)

DELETE:

yourthemedirectory/buttons/ip.gif

Done!

Nice! Except this is not a code mod. This it a template modification. And should be moved.

Nice! Except this is not a code mod. This it a template modification. And should be moved.

vB3.5 Modifications > vB3.5 Template Modifications > Thread view Modifications

Que?

Like it - installed :D

Please do a text file so users will have it in case of an upgrade. ;)

Will this only allow admins and staff to view it?

Yes, the feature is fundamentally unchanged. It's purely cosmetic. Whatever IP viewing permissions you have set for your board will still apply. If anyone finds different on their board can they let me know here, I see no problem at the moment.

Text file appended :)

vB3.5 Modifications > vB3.5 Template Modifications > Thread view Modifications

Que?

I suppose it was moved, cause originally it was in vB3.5 Code Modifications :)

Neat idea for a hack, thanks!

You saved me 3 minutes finding the template and working it out myself. Thanks.

very nice!
thank you!!










privacy (GDPR)