Version: 1.00, by Stadler
Developer Last Online: Jul 2018
Version: 2.2.x
Rating:
Released: 11-08-2002
Last Update: Never
Installs: 19
No support by the author.
I've seen this in some other forums and I think it's quite useful.
With it mods and admins will be able to view IP's directly and even users will be able to view their own IP. Others will only see "IP: logged" as usual or whatever you specify in your templates.
If a mod or admin views a post, it's a link, where he could check the host. If a user views it, it's no link at all.
Well, I just got rid of another bug, which caused, that IP's weren't logged anymore, after activating the hack through the new setting in the admin-cp.
Just apply the following and it works again
PHP Code:
###################################################
#-------------==={OPEN THE FILES}===--------------#
###################################################
forum/newthread.php
forum/newreply.php
###################################################
#---------------==={FIND IN BOTH}===--------------#
###################################################
if ($logip==1 or $logip==2) {
###################################################
#---------==={REPLACE IT IN BOTH WITH}===---------#
###################################################
Originally posted by Goldknight Edit: before I install this hack, I d like to know will it add more queries?
Well, actually yes: One extra query per Post, but I've managed to solve it now.
Now it's only 1 additional query.
Could someone test Version 1.0.4, plz? It works on our forums, as it should do, but I want to make sure, that it didn't miss something in the hack-file.
Originally posted by Stadler Well, actually yes: One extra query per Post, but I've managed to solve it now.
Now it's only 1 additional query.
Could someone test Version 1.0.4, plz? It works on our forums, as it should do, but I want to make sure, that it didn't miss something in the hack-file.
Modifying the database update script as follows cleans up the display in Admin CP so that the radio buttons are aligned down the left:
Code:
UPDATE setting SET optioncode='<input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==0,"checked","")." value=\\"0\\"> Do not log IP<br><input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==1,"checked","")." value=\\"1\\"> Display but require administrator or moderator<br><input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==2,"checked","")." value=\\"2\\"> Display publicly<br><input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==3,"checked","")." value=\\"3\\"> Display directly for administrator or moderator or original poster' WHERE varname='logip';
Ummm... really dumb question... but... I am running VB Version 2.2.7... How do I do the Query thing?
I have done everything that is stated in the installation of this hack... but I am confused when it comes to "DO THE FOLLOWING QUERY". I do this through phpmyadmin right?
ok I'm sorry I got that working. But now I have another prob. When I activate the "Display directly for administrator or moderator or original poster" I am not able to view anybodys IP addresses at all.
###################################################
#--------==={ADD A NEW TEMPLATE CALLED}===--------#
###################################################
postbit_ip_link
###################################################
#----------==={PUT IN THE FOLLOWING}===-----------#
###################################################