1
wf4sure
Replacing Standard Header (2.0.6)
  • 2004/3/2 11:40

  • wf4sure

  • Friend of XOOPS

  • Posts: 29

  • Since: 2004/2/12


I have been attempting to replace the standard header in 2.0.6 with the header from the rest of my site.

In themes/default/theme.html, I remove these lines:









 


So far, so good--the header's simply gone. Then, I paste in additional lines intended to display my site header, but everything comes out malaligned. Part of this is due to another style sheet that my new header depends on, but even if I delete that part of it and paste relatively simple HTML in place of the code above, it still won't display the tables correctly.

OK, as a work around, maybe I can use the standard header--just change the image, the color, add a spacer bar, and then put a frame at the top for my site menu to appear in (controlled by it's own style sheet). But even that seems to be taxing my abilities (and or my understanding of Xoops).

So, take a step back--no good trying to rush things (bound to hit what Robert Persig calls a "gumption trap"). I simply need to take my time and try to understand all the variable effecting this header. Then, I can choose which way to attack the problem.

Question: What file or files control what appears in place of these "place holders" or whatever you call them?

$xoops_banner
$xoops_url
$xoops_imageurl

Is it possible for me put my header file somewhere else and have the themes.html pull it in?

Also, is my new header's style sheet conflicting with the two style sheets in the theme.htm file?





If so, is it possible to combine them?

I have given up on a quick fix and want simply to putz around with it until I understand it better. Any insights and/or suggestions are greatly appreciated!

2
wf4sure
Re: Replacing Standard Header (2.0.6)
  • 2004/3/2 21:33

  • wf4sure

  • Friend of XOOPS

  • Posts: 29

  • Since: 2004/2/12


Update: One of my problems is this line in styles.css:

table td {padding: 0; border-width: 0; vertical-align: top; font-family: Verdana, Arial, Helvetica, sans-serif;}

the "vertical-align: top" is pulling my image to the top of the header table. And I think it was messing up a text box on the right cell of that same table. However, if I change it to "vertical-align: middle" that messes up the rest of the page--the poll, the news or headlines in the center column--all that goes to the middle.

3
wf4sure
Re: Replacing Standard Header (2.0.6)
  • 2004/3/10 21:26

  • wf4sure

  • Friend of XOOPS

  • Posts: 29

  • Since: 2004/2/12


I'm still stuggling with this header problem. I solved a similar problem with another script by pasting this line in an index.shtml file:




However, this formatting doesn't seem to work with the XOOPS default/theme.html file. Can anyone suggest something similar that would include my headerfile without bringing it under the influence of the XOOPS style sheet(s)?

4
intel352
Re: Replacing Standard Header (2.0.6)
  • 2004/3/10 22:59

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


is it possible to just alter the XOOPS style sheet to match your needs? (dunno about css, so can't help you with that, just asking)


i'm not a theme guy, but hopefully someone else will respond...

5
wf4sure
Re: Replacing Standard Header (2.0.6)
  • 2004/3/12 15:08

  • wf4sure

  • Friend of XOOPS

  • Posts: 29

  • Since: 2004/2/12


That's a good question--here's an update on what I've done:

UPDATE: Adding these lines fix part of the problem, but the arrangement is still distorted:







Deactivating this line (below), from the XOOPS default/theme.html, fixes the header problem, but then all the theme colors and some of the formatting is gone--just the naked content remains:



I think that "$xoops_themecss" is referring to the default/styles.css.

Does anyone know a way to keep that style sheet from effecting the header code that I've pasted into the default/theme.html file? That is the key to fixing the problem. XOOPS needs the styles.css, but my header won't work with it.

6
intel352
Re: Replacing Standard Header (2.0.6)
  • 2004/3/12 15:24

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


if you have your own css reference, in addition to the XOOPS css reference, does it matter which order you place them?

maybe one before the other places priority... again, i dunno about css/themes, just brainstorming


btw, why don't you combine the 2 css's into one file and also look for anything that would conflict? and if you use dreamweaver, it might catch other conflicts/errors (maybe)

Login

Who's Online

308 user(s) are online (180 user(s) are browsing Support Forums)


Members: 0


Guests: 308


more...

Donat-O-Meter

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

Latest GitHub Commits