UBB.Dev
Posted By: Gutspiller How do I get a texture for the catagory bar? - 05/12/2001 12:52 AM
I asked this question before and somebody gave me a 1 line code/instruction on how to do it. I need more. Can somebody please help me.

I just want on the main forum page to be able to change the solid color of my forum to a background graphic. Please help. Thanks.
Try this hack smile

HACK NAME : Category background image.

VERSION: 1.0 - 11/28/2000

DESCRIPTION : Puts a image instead of just a color for the Category header.

AUTHOR : N/A

PROPOSED BY : I think CWM

ORINGAL HACK : unknown by me

DEMO : http://www.subzeroland.com/cgi-bin/Ultimate.cgi
http://cwm.ragesofsanity.com/cgi-bin/Ultimate.cgi
http://www.quake3world.com/cgi-bin/Ultimate.cgi
CREDITS : CWM for the Great Idea, and a special thanks to Spawn for the help
*cough* and most of the hacking,,hehe.
REQUIREMENTS : A full version of the UBB.
This version has only been tested to work on UBB v5.46. It may work on slightly earlier versions, but has not been tested.

DOWNLOAD URL : http://www.subzerolan.com/bgimage.zip

Edited files; Ultimate.cgi, Forumdisplay.cgi and ubb_library2.pl

SUPPORT : [email protected]


INSTALLATION INSTRUCTIONS: Like always, make backups of your ubb incase this doesn't work for you.
*When you find the url "http://www.yourdomain.com/ubb/tablebg.gif" you will have to edit this for your own
board.*


*Open Ultimate.cgi*
----------
Find this:
----------
if ($CategoriesOnly ne "true") {
# check Forum Total option--
if ($ForumTotalOption eq "Topics") {
$TopRow = qq(
Topics
);

-------------
Replace with:
-------------
if ($CategoriesOnly ne "true") {
# check Forum Total option--
if ($ForumTotalOption eq "Topics") {
$TopRow = qq(
Topics
);

----------
Find this:
----------
elsif ($ForumTotalOption eq "Posts") {
$TopRow = qq(
Posts
);
-------------
Replace with:
-------------
elsif ($ForumTotalOption eq "Posts") {
$TopRow = qq(
Posts
);
----------
Find this:
----------
$TopRow = qq(
Topics


Posts

);
-------------
Replace with:
-------------
$TopRow = qq(
Topics


Posts

);
----------
Find this:
----------
unless ($ShowMods eq 'no') { # display mod column unless set to No in CP
$modcolumn = qq(

Moderator

);# end qq
}
-------------
Replace with:
-------------
unless ($ShowMods eq 'no') { # display mod column unless set to No in CP
$modcolumn = qq(

Moderator

);# end qq
}
----------
Find this:
----------
$BorderTop





$TopRow

-------------
Replace with:
-------------
$BorderTop


$ForumHeader

Last Post




$TopRow

----------
Find this:
----------
sub ForumTableTop2 {
print<


$BorderTop

$ForumHeader

Last Post








TableTop2
}
-------------
Replace with:
-------------
sub ForumTableTop2 {
print<


$BorderTop

$LastLoginTime

Forum Categories

Total Forums








TableTop2
}

---------------------------------------------------------------------------
Save Ultimate.cgi file and open Forumdisplay.cgi
---------------------------------------------------------------------------
----------
Find this:
----------
$BorderTop

$LastLoginTime

Forum Categories

Total Forums



$IconFieldHeader




OtherMiddle
} ## END Middle HTML for Topic Page

-------------
Replace with:
-------------
$BorderTop

Topic

Topic Starter
Replies
Last Post



$IconFieldHeader




OtherMiddle
} ## END Middle HTML for Topic Page
--------------------------------------------------------------------------
Save forumdisplay and open ubb_library2.pl
--------------------------------------------------------------------------

----------
Find this:
----------
$BorderTop

Topic

Topic Starter
Replies
Last Post




);
-------------
Replace with:
-------------
$BorderTop

Author

Topic: $TopicSubject




);
-------------------------------------------------------------------------
Save ubb_library2.pl and upload all three files to your site.
-------------------------------------------------------------------------
and I think your done
You can take this hack further and do the postings.cgi file. I didn't document that because I didn't like the
way it looked.
© UBB.Developers

Author

Topic: $TopicSubject