Previous Thread
Next Thread
Print Thread
Rate Thread
);
}
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







$topofpage
$topofpage2



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

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


#38617 10/19/2000 12:09 PM
Joined: Mar 2000
Posts: 51
Member
Member
Offline
Joined: Mar 2000
Posts: 51
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






**************************
*And add replace it with:*
**************************





***********************
****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  




**************************
*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
Sponsored Links
#38618 10/21/2000 8:13 AM
Joined: Jul 2000
Posts: 610
Member
Member
Offline
Joined: Jul 2000
Posts: 610
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

#38619 10/21/2000 8:26 AM
Joined: Mar 2000
Posts: 51
Member
Member
Offline
Joined: Mar 2000
Posts: 51
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.

#38620 10/21/2000 8:31 AM
Joined: Jul 2000
Posts: 610
Member
Member
Offline
Joined: Jul 2000
Posts: 610
[Linked Image]

Well check this . I made only a document with or without icon [Linked Image]

#38621 10/21/2000 9:02 AM
Joined: Mar 2000
Posts: 51
Member
Member
Offline
Joined: Mar 2000
Posts: 51
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.

Sponsored Links
#38622 10/21/2000 9:09 AM
Joined: Jul 2000
Posts: 610
Member
Member
Offline
Joined: Jul 2000
Posts: 610
Quote
quote:
Sure it is, you made great work [Linked Image]

);
}
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







$topofpage
$topofpage2



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

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

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

);
}


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


#38623 10/23/2000 2:02 PM
Joined: Jul 2000
Posts: 1,349
Ell Offline
Member
Member
Offline
Joined: Jul 2000
Posts: 1,349
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






**************************
*And add replace it with:*
**************************





***********************
****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




**************************
*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


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:
Stable Host
bluehost
InterServer
Visit us on Facebook
April
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)