Previous Thread
Next Thread
Print Thread
Rate Thread
#42855 11/27/2000 9:16 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Created by mat-t, Dark Templar and MasterMind.
Adds the number of times message has been edited, date and time.
Fixed deleting of the files.

Version: 2.0a

Create a directory called edits in your CGI directory, chmod 777.
Coding:

>>>In postings.cgi, search for:
Code
code:

>>>REPLACE with:
Code
code:

find in postings.cgi:
Code
code:

under it add:

Code
code:

find:

Code
code:

under it add:
Code
code:

>>>Upload both, CHMOD them to 755. Create a folder in your cgi folder called "edits"

>>>In ubb_library.pl, search for:

Code
code:

Add this below it:
Code
code:


Happy coding, this has been tested.

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

Hack Developer of the Ultimate Bulletin Board.
Due to time limitation, I do not offer support Via. E-mail or AIM. Please post on the forums.

Regards,
MasterMind

Sponsored Links
#42856 11/27/2000 10:46 PM
Joined: Oct 2000
Posts: 807
Member
Member
Offline
Joined: Oct 2000
Posts: 807
koo koo

------------------
-= DFT =-
...................
I don mean dis in a disrespectful way//
But colombine happens in the ghetto happens every day//
Uncle L

#42857 12/11/2000 12:38 AM
Joined: Sep 2000
Posts: 3
Junior Member
Junior Member
Offline
Joined: Sep 2000
Posts: 3
Great hack, thanks.

One little thing I noticed:-

Is it just me (i.e. have I stuffed it [Linked Image] ) or is there a minor bug with this when
it comes to Private Forums. (I'm using 5.47a.).

I'm not very good with perl, but I've done enough hacking to have learned how to debug
hacks [Linked Image]

The counter never advances beyond 1, and this appears to be because a edit counter
file is never made for the private forum topic.
When posting to a private forum as oppose to a normal one the $Exactpath variable is
coming out wrong (or rather, too right)
e.g. a normal forum would try to store a file like this:
$CGIPath/edits/Forum1-000001-000007.cgi

but currently, the code tries to store private forum counts using this:
$CGIPath/edits/Forum2/private-knNJg420-000001-000001.cgi

Since $Exactpath is including the parent directory path(Forum2/) its trying to store
a file in a folder which doesn't exist.

Ideally I'd want to throw in a line of code which would convert any forward-slashes (/)
to a dash (-) in $Exactpath (not only for the counter section but the unlink lines
too) but I'm afraid thats where my Perl knowledge comes to a screeching halt.

Can you tell me how to do that please ??

This message has been edited by DMan on December 10, 2000 at 11:40 PM


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
hatter
hatter
USA
Posts: 69
Joined: January 2001
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
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 20240506)