Page 1 of 1

adding a background image

Posted: Wed Sep 17, 2003 3:29 am
by Ev!L ErN!E
How od I add a background image to my forums? thx :D

Posted: Wed Sep 17, 2003 3:40 am
by Ev!L ErN!E
I see in the control panel theres a place for the background image....

what do I put there for my background image to show up? and where do I upload it?

Posted: Wed Sep 17, 2003 4:54 am
by Arty
open overall_header.tpl, find this:

Code: Select all

.bodyline	{ background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; }
and replace with this:

Code: Select all

.bodyline	{ background-image: url(templates/subSilver/images/bg.gif); border: 1px {T_TH_COLOR1} solid; }
(replace with correct path to your background image)

Posted: Thu Sep 18, 2003 1:55 am
by justbishop
CAN this be done from the control panel?

Posted: Thu Sep 18, 2003 2:26 am
by Ev!L ErN!E
yea thats what i was asking, how can i do it threw the control panel??

Posted: Thu Sep 18, 2003 5:22 am
by Arty
you can't

Posted: Thu Sep 18, 2003 7:45 pm
by justbishop
well...that really sucks. :?

Posted: Fri Sep 19, 2003 4:52 am
by Ev!L ErN!E
Ok so I just replace that line with this one exaclty like this:

Code: Select all

.bodyline   { background-image: url(templates/subSilver/images/bg.gif); border: 1px {T_TH_COLOR1} solid; }

and upload the image to my templates/subSilver/images folder and just replace the "bg.gif" with my gif?

Posted: Fri Sep 19, 2003 8:00 am
by Arty
yes. or you can rename it and change filename in that code.

Posted: Fri Sep 19, 2003 8:08 am
by timbercrawler
my overall_header.tpl file doesnt have this code in it...?

Posted: Fri Sep 19, 2003 8:17 am
by wolferine
are you using custom template? If so, could be that it is using stylesheet form a separate file rather than in the code itself. Go to your templates/x/x.css where x is your template name and look for same kind of classname (.bodyline) and modify it

Don't forget to back up first though!

Posted: Fri Sep 19, 2003 11:47 am
by Spater
I whan't to change this color that is outside the actual forum (shown in the pic) to a background image insted of color... I looked in the overall_header.tpl file butt I found nothing... for those who didn't see it is the cold steel template...

image

/Spater

Posted: Fri Sep 19, 2003 5:20 pm
by timbercrawler
I think your answer is the same as mine, probably in the .css file in the template folder. just go to the folder that has the template your using, click the view link up top then go to details, look for a .css file. open it with notepad then go to the find button in notepad, type in .bodyline and find it, then replace the code that follows as described above.

Posted: Fri Sep 19, 2003 5:36 pm
by =[11-42]= {sniper}
yes, you remove the css from the overall header and link to the sheet because the forum will load fast and I also think but am not sure that it helps reduce strain on the server.