vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   IP Address Needed In printthread.php (https://vborg.vbsupport.ru/showthread.php?t=57431)

trevorvb 09-27-2003 07:02 AM

IP Address Needed In printthread.php
 
Can somebody tell me how to hack the printthread.php to allow IP addresses next to the username?

I think it has something to do with $post[ip].

My visitors would like to print the posts with the IP addresses on them.

Thanx in advance!

Logician 09-27-2003 02:23 PM

Try this:
$post[ipaddress]

trevorvb 09-27-2003 04:55 PM

Hello Logician,

Thanks for trying to help me. Could you be a little more specific about where in the printthread I would put $post[ipaddress]? I tried many times, but it still doesn't show the IP address during the Print View in printthread.php. Thanks for you or anyone who could help me.

printthread.php
(Oops! Didn't know I couldn't post code! Thanks)

assassingod 09-27-2003 04:59 PM

You need to remove that code since it states in the rules you are not allowed to post entire vB files.

Also, use it in templates instead of the file

trevorvb 09-27-2003 05:18 PM

I added $post[ipaddress] to the printthreadbit template as suggested. Thanks Logician and assassingod for the help!

printthreadbit
<hr>
<i>Posted by $post[username] $post[ipaddress] on $post[postdate] $post[posttime]:</i>

<p><b>$post[icon] $post[title]</b></p>

<p>$post[message]</p>


All times are GMT. The time now is 06: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.00989 seconds
  • Memory Usage 1,708KB
  • 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
  • (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