Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Modification Name: Advanced IP Logging

Author(s): Ian Spence

Description: Logs all IPs a member uses.

Demo: none

Requirements: UBB.classic 6.7

Download Link: https://www.ubbdev.com/ubb/upload/00020028/AdvancedIPLogging.zip

Credits: Idle for previous versions

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Cool, thanks for the update smile


- Allen wavey
- What Drives You?
Joined: Jul 2002
Posts: 42
Member
Member
Offline
Joined: Jul 2002
Posts: 42
I've tried this twice and I got this error both times I tried. [Linked Image]

Quote
quote:
Fatal error: (RequireCode) /home/virtual/site22/fst/var/www/cgi-bin/cp2_lib.cgi: syntax error at /home/virtual/site22/fst/var/www/cgi-bin/cp2_lib.cgi line 1960, near ")" Missing right curly or square bracket at /home/virtual/site22/fst/var/www/cgi-bin/cp2_lib.cgi line 2112, at end of line Compilation failed in require at /home/virtual/site22/fst/var/www/cgi-bin/ubb_lib.cgi line 931.
at cp.cgi line 169 main::__ANON__() called at Modules/UBBCGI/Carp.pm line 150 UBBCGI::Carp::fatalsToBrowser() called at Modules/UBBCGI/Carp.pm line 86 UBBCGI::Carp::die() called at cp.cgi line 405 main::die() called at /home/virtual/site22/fst/var/www/cgi-bin/ubb_lib.cgi line 932 main::RequireCode() called at cp.cgi line 180
I'm using version 6.7.1 smash

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
the first step should be "add after", try that

Joined: Jul 2002
Posts: 42
Member
Member
Offline
Joined: Jul 2002
Posts: 42
Quote
Originally posted by Ian Spence:

the first step should be "add after", try that
Okay, the instructions said "Replace with:", but "adding after" eliminated the error...thank you. smile

I also wanted to thank you and all the UBB Developers for all your help. With your help we made UBB Central's site of the week.

http://www.ubbcentral.com/site_of_the_week.php?link=394

Sponsored Links
Joined: Mar 2004
Posts: 58
Member
Member
Offline
Joined: Mar 2004
Posts: 58
Hi

I have a question, I couldn't find any better place to ask

I would like to know if it's possible to prevent moderators to view members IP's so that only admins can view it?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
do you mean in the control panel, or when they click the IP logged link in posts?

Joined: Mar 2004
Posts: 58
Member
Member
Offline
Joined: Mar 2004
Posts: 58
When the click on the IP logged link, if there's anything which can prevents them from viewing it.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
ok, in ubb_get_topic.cgi,
FIND:
Code
my $is_one = &is_admin_or_mod($in{f}, @user_profile);
REPLACE WITH:
Code
	my $is_one = ($user_profile[8] eq "Administrator" && $user_profile[4] =~ /Admin/) ? "true" : "false";
that should do it

Joined: Mar 2004
Posts: 58
Member
Member
Offline
Joined: Mar 2004
Posts: 58
Ok did that but I get this error

An error has occurred:

(RequireCode) CGIPath/ubb_get_topic.cgi: syntax error at CGIPath/ubb_get_topic.cgi line 118, near ""Administrator && $user_profile[4] =~ /Admin/) ? "true"
syntax error at CGIPath/ubb_get_topic.cgi line 129, near "forum_" . ""
Compilation failed in require at CGIPath/ubb_lib.cgi line 931.

Sponsored Links
Joined: Apr 2004
Posts: 1
Junior Member
Junior Member
Offline
Joined: Apr 2004
Posts: 1
I get the same thing as Tiger; does the hack in this trhead need to be applied first, or can I use this independent of this hack? (the only admins can see IP thing.)

(RequireCode) CGIPath/ubb_get_topic.cgi: syntax error at CGIPath/ubb_get_topic.cgi line 118, near ""Administrator && $user_profile[4] =~ /Admin/) ? "true"
syntax error at CGIPath/ubb_get_topic.cgi line 129, near "forum_" . ""
Compilation failed in require at CGIPath/ubb_lib.cgi line 931.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
bah, close the quotes on "Administator".

It is not needed, they are two seperate things entirely

Joined: May 2003
Posts: 20
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 20
Is the file still un-corrected? So the first place where is says REPLACE WITH, should be ADD AFTER?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
it should now be fixed, it should be Add After

Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
Hey Ian,

I used Idle's previous version, and although you probably can't support it fully, I was wondering about one thing.

Whenever I log out and log back in, it doesnt cookie my newest login. For instance, if I log in now, it will still show last nights login time/date under my profile when I goto view it.

However If I log in from a whole diff IP address, then it tracks and logs it flawlessly. Is this how it is supposed to work or is the cookie not setting properly etc? Looks like the code is about the same in ubb_lib_idle

Looking for your expertise...

Joined: May 2003
Posts: 20
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 20
Is the extra data that this creates stored in a way that wont cause errors if the hack is removed? Im dying to add this.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)