1
wahhut
Need Major Help With Left Column Background
  • 2004/12/14 21:55

  • wahhut

  • Just popping in

  • Posts: 33

  • Since: 2004/12/12


I need to use an image for the left colum background instead of just having it plain color. What do I need to change or add in the theme and style.ccs?


Here's the code for the theme:

<!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}> <div class="<{cycle values="blockTitle"}>"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<!-- End left blocks loop -->

Here's the code for the style.ccs:

td#leftcolumn th
{
vertical-align: bottom;
border-bottom: 1px dashed #8699B5;
background-color: transparent;
color: #464646;


Please advise. Thank you.

2
m0nty
Re: Need Major Help With Left Column Background
  • 2004/12/14 22:03

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


change background-color to this

background-image: URL(image.gif);

in that example image.gif will be in the theme folder.. but u can put an actual path or url in there..

3
wahhut
Re: Need Major Help With Left Column Background
  • 2004/12/14 22:05

  • wahhut

  • Just popping in

  • Posts: 33

  • Since: 2004/12/12


I tired that but it just blank out my whole theme.

4
Bassman
Re: Need Major Help With Left Column Background
  • 2004/12/14 22:23

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


ok, here's what i did:

in theme.html, change
Quote:
<td id="leftcolumn">


to
Quote:
<td id="leftcolumn" class="b1">


and in style.css and any other style sheets add:
Quote:

.b1 {
background-image: url(imagename.jpg);
}



and that should do it.

5
JasonMR
Re: Need Major Help With Left Column Background
  • 2004/12/14 22:40

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


If your theme "blanks out", it is most often an indicator, that one has accidently screwed up a smarty tag (leabing out a curly bracket or the like).

Adding a style defintion to your stylesheet will not do this, unless you've set color:#fff;background:#fff;
Though, make sure you close all style definitions with the closing curly bracket (in the code you pasted, the closing curly bracket is missing). If you drop curly brackets, the following styles will be ignored.

6
wahhut
Re: Need Major Help With Left Column Background
  • 2004/12/14 22:40

  • wahhut

  • Just popping in

  • Posts: 33

  • Since: 2004/12/12


what section in the style.ccs do you put the following line:

.b1 {
background-image: url(imagename.jpg);
}

7
JasonMR
Re: Need Major Help With Left Column Background
  • 2004/12/14 22:47

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


To keep it simple:

Just place it at the bottom of your stylesheet, and place a comment above

// style added by wahut


...this way you can recall your changes.

If I make changes to a theme, I like to remember, where I made changes.

8
wahhut
Re: Need Major Help With Left Column Background
  • 2004/12/14 22:53

  • wahhut

  • Just popping in

  • Posts: 33

  • Since: 2004/12/12


Nope... it's not working. The minute I put the following code on my theme, the whole site is gone. Anymore ideas?

<td id="leftcolumn" class="b1">

Gosh... someone should just design an software like dream weaver and frontpage, where see the actual web page, to do this xoop thing.

9
Bassman
Re: Need Major Help With Left Column Background
  • 2004/12/14 22:56

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


you must have changed something else by accident, i've done what I put above myself and it works.

10
JasonMR
Re: Need Major Help With Left Column Background
  • 2004/12/14 23:15

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


Quote:

Gosh... someone should just design


...people are working on this, but statements like these demotivate and make me want to say "do it yourself"!!!!!

If this is to difficult for your, stop bothering with web sites, or leave the whining!

@bassman: of course it works

Login

Who's Online

115 user(s) are online (68 user(s) are browsing Support Forums)


Members: 0


Guests: 115


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits