vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   View IP address inline (https://vborg.vbsupport.ru/showthread.php?t=97862)

TygerTyger 10-07-2005 09:00 PM

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)

PHP Code:

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

PHP Code:

<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!

akanevsky 10-08-2005 10:08 AM

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

TygerTyger 10-08-2005 10:37 AM

Quote:

Originally Posted by Dark Visor
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?

Kaliyoda 10-08-2005 10:53 AM

Like it - installed :D

Boofo 10-08-2005 12:09 PM

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?

TygerTyger 10-08-2005 12:13 PM

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

akanevsky 10-08-2005 12:13 PM

Quote:

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

hotrod1 10-10-2005 01:31 PM

Neat idea for a hack, thanks!

Blind Guardian 10-17-2005 09:39 PM

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

Avalon111 10-18-2005 05:56 AM

very nice!
thank you!!


All times are GMT. The time now is 12:59 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.01559 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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