View Full Version : IP Address Needed In printthread.php
trevorvb
09-27-2003, 07:02 AM
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>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.