Why won't this hack work on 5.47 ???################################################################
# EDIT SUBJECT HACK FOR UBB #
# Last Updated: 7/17/00 at 000 hours #
# Version 1.00 #
# #
# Created By: Jason Axelrod *Jaxel* (
[email protected]) #
#
http://bbs.upnetwork.com/ #
################################################################
# Changes Log: #
# #
# 07/17/00 - Finalized the script, found out what was wrong... #
################################################################
A working demo of this script can be seen here:
http://bbs.upnetwork.com/ This hack works perfectly in 5.45 at later versions.
##########################
Hacking in ubb_library2.pl
##########################
Find code:
----------------------------------------------
$DeleteOption = qq(
Delete Topic);
----------------------------------------------
Add AFTER code above:
----------------------------------------------
$SubjectOption = qq(
Edit Subject);
----------------------------------------------
Find code:
Near text "Administrative Options:"
----------------------------------------------
$ArchiveOption
----------------------------------------------
Add AFTER $ArchiveOption:
This is BEFORE $DeleteOption:
----------------------------------------------
$SubjectOption
----------------------------------------------
###################
Hacking in edit.cgi
###################
Find code:
----------------------------------------------
if ($in{'EditFunction'} eq "DoDeleteThread") {
&DoDeleteThread;
}
----------------------------------------------
Add AFTER code above:
----------------------------------------------
if ($in{'EditFunction'} eq "GetEditSubject") {
&GetEditSubject;
}
----------------------------------------------
Find subroutine "GetEditThreads", ends with:
----------------------------------------------
&BOTTOMHTML;
} ## END GetEditThreads sr
----------------------------------------------
Add AFTER subroutine "GetEditThreads":
This is BEFORE subroutine "AdminEditForum":
----------------------------------------------
###########################################################
# BEGIN EDIT SUBJECT HACK FOR UBB (v1.00) #
# Created By: Jason Axelrod *Jaxel* (
[email protected]) #
#
http://bbs.upnetwork.com/ #
###########################################################
sub GetEditSubject {
my ($topic,$junk) = split(/./,$in{topic});
&CheckBadChars($topic);
@thisforum = &GetForumRecord($number);
$TopicNumber = substr($in{'topic'}, 0, 6);
($junk, $number) = split(/orum/, $in{'forum'});
@message = &OpenThread($in{'topic'});
@stats = split(/||/, $message[0]);
$ThreadSubject = $stats[4];
chomp($ThreadSubject);
$ThreadSubject =~ s/"/"/g;
print<
$Header
$BBName - Edit Subject Topic
$Footer
otherHTML
} ## End GetEditSubject Message
----------------------------------------------