Top of Page 1.2 - 10/19/2000 7:09 PM
I have spent a couple of hours improving this hack, and sorting out a few buys it caused in the layout, and added a top of page link in posts as well as the ability to turn it off and on from the control pannel, and here it is:
********************************************
**************************
****In ubb_library2.pl****
**************************
*******
*Find:*
*******
# ------------ ubb_library2.pl -------------
#
*******************
*and add below it:*
*******************
if ($topofp eq "ON") {
$topofpage = qq(
);
}
if ($topofp eq "Off") {
$topofpage2 = qq(
);
}
*******
*Find:*
*******
**************************
*And add replace it with:*
**************************
$topofpage
$topofpage2
***********************
****In Ultimate.cgi****
***********************
*******
*Find:*
*******
require "mods.file";
require "Styles.file";
require "ubb_library.pl";
};
*******************
*and add below it:*
*******************
if ($topofp eq "ON") {
$topofpage = qq(
Top of Page );
}
if ($topofp eq "Off") {
$topofpage2 = qq(
);
}
*******
*Find:*
*******
$Legend
*******************
*and add below it:*
*******************
$topofpage
$topofpage2
***************************
****In forumDisplay.cgi****
***************************
*******
*Find:*
*******
require "UltBB.setup";
require "Date.pl";
require "mods.file";
require "ubb_library.pl";
};
*******************
*and add below it:*
*******************
if ($topofp eq "ON") {
$topofpage = qq(
Top of Page );
}
if ($topofp eq "Off") {
$topofpage2 = qq(
);
}
*******
*Find:*
*******
A Closed thread - no new replies accepted.
Post New Topic
**************************
*And add replace it with:*
**************************
A Closed thread - no new replies accepted.
$topofpage
$topofpage2
Post New Topic
**********************
****In cpanel2.cgi****
**********************
*******
*Find:*
*******
if ($EmailBlock eq "ON") {
$EmailBlockOn = "CHECKED";
} else {
$EmailBlockOff = "CHECKED";
}
*******************
*and add below it:*
*******************
if ($topofp eq "ON") {
$topofpOn = "CHECKED";
} else {
$topofpOff = "CHECKED";
}
*******
*Find:*
*******
&InputRadioRow("#dedfdf", "Administrative Activity Log", "For security reasons, you may wish to track administrative activities on your bulletin board. Records are kept in the NonCGI Banlists directory. The default setting is Off.", " On
Off");
*******************
*and add below it:*
*******************
&InputRadioRow("#dedfdf", "Top of page Link", "This will add a link to Top of page on the Ultimate.cgi, forumdisplay.cgi and on any post made", " On
Off");
********************************************
Upload all the editied files, go into General Settings on the control pannel and set for it to be on or off, and update threads and you are to go!
********************************************
And here is the txt version: http://www.joy2k.net/ubbhacks/topofpage.txt
And here is a example(although u cant see the control pannel part): http://www.joy2k.net/cgi-bin/ubb/Ultimate.cgi
********************************************
**************************
****In ubb_library2.pl****
**************************
*******
*Find:*
*******
# ------------ ubb_library2.pl -------------
#
*******************
*and add below it:*
*******************
if ($topofp eq "ON") {
$topofpage = qq(
}
if ($topofp eq "Off") {
$topofpage2 = qq(
);
}
*******
*Find:*
*******
**************************
*And add replace it with:*
**************************
$topofpage
$topofpage2
***********************
****In Ultimate.cgi****
***********************
*******
*Find:*
*******
require "mods.file";
require "Styles.file";
require "ubb_library.pl";
};
*******************
*and add below it:*
*******************
if ($topofp eq "ON") {
$topofpage = qq(
Top of Page );
}
if ($topofp eq "Off") {
$topofpage2 = qq(
);
}
*******
*Find:*
*******
$Legend
*******************
*and add below it:*
*******************
$topofpage
$topofpage2
***************************
****In forumDisplay.cgi****
***************************
*******
*Find:*
*******
require "UltBB.setup";
require "Date.pl";
require "mods.file";
require "ubb_library.pl";
};
*******************
*and add below it:*
*******************
if ($topofp eq "ON") {
$topofpage = qq(
Top of Page );
}
if ($topofp eq "Off") {
$topofpage2 = qq(
);
}
*******
*Find:*
*******
A Closed thread - no new replies accepted.
**************************
*And add replace it with:*
**************************
A Closed thread - no new replies accepted.
$topofpage
$topofpage2
**********************
****In cpanel2.cgi****
**********************
*******
*Find:*
*******
if ($EmailBlock eq "ON") {
$EmailBlockOn = "CHECKED";
} else {
$EmailBlockOff = "CHECKED";
}
*******************
*and add below it:*
*******************
if ($topofp eq "ON") {
$topofpOn = "CHECKED";
} else {
$topofpOff = "CHECKED";
}
*******
*Find:*
*******
&InputRadioRow("#dedfdf", "Administrative Activity Log", "For security reasons, you may wish to track administrative activities on your bulletin board. Records are kept in the NonCGI Banlists directory. The default setting is Off.", " On
Off");
*******************
*and add below it:*
*******************
&InputRadioRow("#dedfdf", "Top of page Link", "This will add a link to Top of page on the Ultimate.cgi, forumdisplay.cgi and on any post made", " On
Off");
********************************************
Upload all the editied files, go into General Settings on the control pannel and set for it to be on or off, and update threads and you are to go!
********************************************
And here is the txt version: http:/
And here is a example(although u cant see the control pannel part): http:/