1
m0nty
having problem with a template
  • 2004/6/20 20:12

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


i've created a template for news reports (using xfsection for the news) but it doesn't really matter what i use..

the side images should expand to the height of the story.

ie i have set height="100%"

you can view an example here

http://www.clubithard.co.uk/modules/xfsection/article.php?articleid=86

in Internet explorer 6 you can see the side bars aren't expanding to fit the screen..

But if you view with mozilla, firefox or netscape, it works exactly how it should do..

also note if i just view the html file for the template it works perfect with IE but as soon as it's uploaded and used on the site, it stops workin with IE.

is there something i'm not doing right? i can send u the template.html file if u require..

2
tjnemez
Re: having problem with a template
  • 2004/6/20 23:04

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


almost works in firefox, not in opera 7.5 and does not repeat in ie6.

you do this by adding td class to your style.css:

.articleleft {
background-image: url("/themes/yourtheme/left_bar.jpg");
background-repeat: repeat-y;
}

do the same for right side (.articleright).

now in your html give the td a class:

<td class="articleleft">

give the above a try and remember as a rule try to use your style.css as much as possible. this will make your theme.html lighter.

edit: you can use the same class as many times as you like in a document, but you can only use id once.

3
tjnemez
Re: having problem with a template
  • 2004/6/21 0:01

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


okay i see you have edited your template to this:

<td class="newsleft" width="29"></td>
you have 2 choices here:

1. <td class="newsleft" style="width: 29px;"></td>

or

2. add this to your newsleft class:

width: 29px;
height: auto;

i forgot for a moment you were editing a template and since this is a one time occurrence you can use inline styling which will override external style sheet.

hope i have not confused you.

4
tjnemez
Re: having problem with a template
  • 2004/6/21 0:14

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


okay looks like you got it, just some pixel adjustments to do. sometimes this stuff works odd with different compliances. but, what the hay as long the presentation is as intended.

5
m0nty
Re: having problem with a template
  • 2004/6/21 0:14

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


i think i'm getting it now tj :) thanks for the help..

had to do a little shufflin tho..

articleleft {
background-image: url("/news/left_bar.jpg");
background-repeat: repeat-y;
}

wouldn't work for whatever reason

but

articleleft {
background-image: url(left_bar.jpg);
background-repeat: repeat-y;
}

worked.. i had to move the 2 images into the theme folder instead of a sub folder in the theme folder and that worked then :)


haven't used the style= function, so i will probly play around with it later to tidy the code up a bit more as u can probly see my theme code is pretty messy..

again thanks for the help, much appreciated :)

6
tjnemez
Re: having problem with a template
  • 2004/6/21 0:17

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


cool! yah the url thingie can be tricky thats why you i put an absolute path to image; its good relative path is working for you.

7
tjnemez
Re: having problem with a template
  • 2004/6/21 0:21

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


one more thing, i try to add as many things to style.css as possible because it eliminates going back and forth editing template which is time consuming. this way you edit your style.css; upload it and view almost immediately.

8
m0nty
Re: having problem with a template
  • 2004/6/21 0:48

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


yeah, i have changed a few things and added more classes to the css.. i think it is definitely easier to use css to edit.. am currently looking at other module templates to edit them the same..

i changed a couple of modules fully and altered the default classes in them.. especially the odd/even classes as they tend to be global between all modules..

so i edited ipb welcome block and changed class="even" to class="ipbweleven"

and added those classes to css, i think it's better now as i can now have full colour control of all the modules i changed independantly from each other..

my knowledge is limited, but XOOPS has been a big learning curve for me and i know a hell of a lot more abt html, css and php than i did b4 i started usin XOOPS :)

9
tjnemez
Re: having problem with a template
  • 2004/6/21 0:50

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


yup, same here.

Login

Who's Online

215 user(s) are online (136 user(s) are browsing Support Forums)


Members: 0


Guests: 215


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