Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
View IP address inline Details »»
View IP address inline
Version: 1.00, by TygerTyger TygerTyger is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-07-2005 Last Update: 10-07-2005 Installs: 21
Template Edits
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-08-2005, 11:08 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice! Except this is not a code mod. This it a template modification. And should be moved.
Reply With Quote
  #3  
Old 10-08-2005, 11:37 AM
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 10-08-2005, 11:53 AM
Kaliyoda Kaliyoda is offline
 
Join Date: Oct 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like it - installed
Reply With Quote
  #5  
Old 10-08-2005, 01:09 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 10-08-2005, 01:13 PM
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 10-08-2005, 01:13 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 10-10-2005, 02:31 PM
hotrod1 hotrod1 is offline
 
Join Date: Apr 2005
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Neat idea for a hack, thanks!
Reply With Quote
  #9  
Old 10-17-2005, 10:39 PM
Blind Guardian's Avatar
Blind Guardian Blind Guardian is offline
 
Join Date: Mar 2004
Location: South Carolina
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You saved me 3 minutes finding the template and working it out myself. Thanks.
Reply With Quote
  #10  
Old 10-18-2005, 06:56 AM
Avalon111 Avalon111 is offline
 
Join Date: Dec 2004
Location: Austria
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice!
thank you!!
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 03:25 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.06002 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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