|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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
|
|
|
|
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 
|
|
|
|
Joined: Jul 2002
Posts: 42
Member
|
Member
Joined: Jul 2002
Posts: 42 |
I've tried this twice and I got this error both times I tried. 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 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
the first step should be "add after", try that
|
|
|
|
Joined: Jul 2002
Posts: 42
Member
|
Member
Joined: Jul 2002
Posts: 42 |
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. 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
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
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
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
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
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
ok, in ubb_get_topic.cgi, FIND: my $is_one = &is_admin_or_mod($in{f}, @user_profile); REPLACE WITH: 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
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.
|
|
|
|
Joined: Apr 2004
Posts: 1
Junior Member
|
Junior Member
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
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
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
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
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
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.
|
|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|