Great hack, thanks.
One little thing I noticed:-
Is it just me (i.e. have I stuffed it
![[Linked Image]](https://ubbdev.com/ubb/smilies/smile.gif)
) 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]](https://ubbdev.com/ubb/smilies/tongue.gif)
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