UBB.Dev
Posted By: Andrew 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(

Top of Page
);
}
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:*
*******

Closed Thread  A Closed thread - no new replies accepted.

Post New Topic









**************************
*And add replace it with:*
**************************
Closed Thread  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
Posted By: SpAwN Re: Top of Page 1.2 - 10/21/2000 3:13 PM
Great hack! Thanks

Just installed on 5,45c and it works perfect, but i use a litle image instead of the text.

Here is the image for people who wants to use it


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

I got also UBB hacks database
Posted By: Andrew Re: Top of Page 1.2 - 10/21/2000 3:26 PM
Funny u say that, I was actually working on a new version of this where u can select image or text, I will be releasing it in bit.
Posted By: SpAwN Re: Top of Page 1.2 - 10/21/2000 3:31 PM
[Linked Image]

Well check this . I made only a document with or without icon [Linked Image]
Posted By: Andrew Re: Top of Page 1.2 - 10/21/2000 4:02 PM
nice mod, i have merged both of them so they you nkow have the option to use text/pic from the control pannel, all u do is just change the option from the pannel and it changes all of the links.
Posted By: SpAwN Re: Top of Page 1.2 - 10/21/2000 4:09 PM
Quote
quote:
Sure it is, you made great work [Linked Image]
Posted By: Ell Re: Top of Page 1.2 - 10/23/2000 9:02 PM
Here's what Omega Kid posted in a topic for v1.2 ... please keep related updates in the same topic, thanks. [Linked Image]

POSTED BY OMEGAKID:

---------------------
I have redone most of this hack, now from the control pannel u have the option to use picture or text to move back to the top of the page:

**************************
****In ubb_library2.pl****
**************************

*******
*Find:*
*******

# ------------ ubb_library2.pl -------------
#

*******************
*and add below it:*
*******************


if ($topofp eq "ON") {
$topofpage = qq(

Top of Page
);
}
if ($topofp eq "Off") {
$topofpage2 = qq(

);
}
if ($topofp eq "ONW") {
$topofpage2 = qq(


);
}
if ($topofp eq "ONB") {
$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(
);
}
if ($topofp eq "ONW") {
$topofpage2 = qq(

);
}
if ($topofp eq "ONB") {
$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(
);
}
if ($topofp eq "ONW") {
$topofpage2 = qq(

);
}
if ($topofp eq "ONB") {
$topofpage2 = qq(

);
}

*******
*Find:*
*******

Closed Thread A Closed thread - no new replies accepted.

Post New Topic









**************************
*And add replace it with:*
**************************
Closed Thread 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("#f7f7f7", "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 Text
On White Text pic
On Black Text pic

Off");

*****************************************************************************************
*****************************************************************************************
* What now: 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! *
*****************************************************************************************
*****************************************************************************************

You will need these pictures:




Download the information:
http://www.joy2k.net/ubbhacks/topofpage.zip
© UBB.Developers