Previous Thread
Next Thread
Print Thread
Rate Thread
#125858 06/05/2001 3:13 PM
Joined: Dec 2000
Posts: 139
Member
Member
Offline
Joined: Dec 2000
Posts: 139
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





E D I T T O P I C




Only forum leaders (Administrator, Moderator) may perform this function.













Edit the subject, re-enter your UserName & Password, and then click Submit button!
Topic Subject:
Your User Name
Your Password










$Footer
otherHTML

} ## End GetEditSubject Message
----------------------------------------------

Sponsored Links
Entire Thread
Subject Posted By Posted
Look at this Code! Prince 06/05/2001 11:13 PM
Re: Look at this Code! BassTeQ 06/06/2001 1:02 AM
Re: Look at this Code! Lord Dexter 06/06/2001 11:00 AM
Re: Look at this Code! Prince 06/06/2001 6:11 PM
Re: Look at this Code! CT 06/06/2001 9:57 PM
Re: Look at this Code! Prince 06/06/2001 10:50 PM
Re: Look at this Code! BassTeQ 06/07/2001 12:56 AM
Re: Look at this Code! Prince 06/07/2001 6:39 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:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,156
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2063
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 1
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
Morgan 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 20261026)