Previous Thread
Next Thread
Print Thread
Rate Thread
#38089 09/12/2000 11:53 AM
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
If you need to log those who access your private forums that aren't moderators or admins, then this is the mod for you:
https://www.ubbdev.com/db/cgi/ubbcount.cgi?expath1=Forum3&expath2=&topic=000005&type=&number=3

------------------
Allen

- http://www.stand318.com


- Allen wavey
- What Drives You?
Sponsored Links
#38090 09/13/2000 3:45 AM
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
Allen,

I tried it. In 5.45c, I get a 500 error..[Linked Image]

------------------


- Custom Web Development
http://www.JCSWebDev.com
#38091 09/14/2000 1:42 AM
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
that's odd, you only add that one piece of code... didya copy over something?

------------------
Allen

- http://www.stand318.com


- Allen wavey
- What Drives You?
#38092 09/14/2000 12:47 PM
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
I put it in between to lines as instructed. Well the line you mentioned, and before the next line. Nothing overwritten I could see.

Tried 5 times...

------------------


- Custom Web Development
http://www.JCSWebDev.com
#38093 09/15/2000 3:41 AM
Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
AllenAyres
i get the same thing with this mod to this is the errors i got when useing it maybe it will help you out on it


Code
code:

------------------
William Montgomery

[This message has been edited by ClanKiller (edited September 15, 2000).]

Sponsored Links
#38094 09/15/2000 2:09 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Thats caused by double pipes.
Find the double pipes in the code you added, and remove the space between them.

------------------
UBBDEV Moderator
Read my BIO , Updated Every Month!

#38095 09/15/2000 6:20 PM
Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
well this mod it self needs fixing cuz it is how it came. i just wanted to let AllenAyres see what was makeing it say 500 error...
and that is what it told me
thanks man

------------------
William Montgomery

#38096 09/15/2000 6:31 PM
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
I will fix the download, thanks for spotting it for me...

------------------
Allen

- http://www.stand318.com


- Allen wavey
- What Drives You?
#38097 09/15/2000 6:37 PM
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
done.. again, I apologize for the missed spaces... it should work fine now...

------------------
Allen

- http://www.stand318.com


- Allen wavey
- What Drives You?
#38098 09/15/2000 6:38 PM
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
Seems to work for me, I removed the space in between the pipes. Logged in a non mod or admin and it worked. It updated the file accordingly.


- Custom Web Development
http://www.JCSWebDev.com
Sponsored Links
#38099 09/15/2000 6:38 PM
Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
you are welcome.
i was wondering if you was going to ever see this post.


------------------
William Montgomery

#38100 09/15/2000 6:46 PM
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
Big problem, the txt file is readable by browser line..NOT GOOD!

I changed it to write to a .cgi file. I uploaded a blank one coded to 0666.

Here are the changes I made, so far so good.

Code
code:

Let me know if any more errors are found. I tested it by trying to read it thru the browser line in IE 5.5

[This message has been edited by C_P (edited September 15, 2000).]


- Custom Web Development
http://www.JCSWebDev.com
#38101 10/27/2000 5:57 AM
Joined: Jul 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Jul 2000
Posts: 2
I am using it on 5.46 with no problems.

I got a question though about this following code:

##Russ IP Log
if (($Status eq "Administrator") || ($ModMatch eq "yes") || ($Status eq "Moderator")) {
&GrantAccess;
} else {
&GetDateTime;
my $IPNumber = $ENV{'REMOTE_ADDR'};
my $hostname = $ENV{'REMOTE_HOST'};
&Lock ("lock.file");
open (LIST, ">>$MembersPath/ippriv.txt");
print LIST "$UserName, $IPNumber, $hostname, $HyphenDate $Timen";
close (LIST);
&Unlock ("lock.file");
chmod (0666, "$MembersPath/ippriv.txt");
&GrantAccess;
}
## end ip log


It defaults to have it saved in the Members directory. How would i go about having it saved elsewhere on the domain?


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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,080
Joined: March 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 696
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)