1
phillipd
How do themes work?
  • 2004/5/1 16:12

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


Looking at the gold theme, which I'm trying to troubleshoot a problem, there are sections for:

Left blocks, center-left, center-right, center-center, right

then there is the section for content, and then right blocks.

In the content section I see:
class="blockContent" width="100%">
<{$xoops_contents}

I assume this is were XOOPS grabs the contents of the block from the DB and enters in the block. But when I remove "xoops_contents" like this:


class="blockContent" width="100%">
<{}

I see that the content stays in the center blocks but the right blocks and content are missing. I would have expected the content in the blocks to all disapear but the blocks to stay.

I guess I clearly don't understand the way themes work. Is there a good explanation of this mechanism somewhere?

Thanks

Doug P

2
Herko
Re: How do themes work?
  • 2004/5/1 16:52

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


the <{$xoops_contents}> smarty variable is where the module contents are displayed, not blocks. So if you leave that one out, your theme will not work properly, as it will never show any module content.

Herko

3
Dave_L
Re: How do themes work?
  • 2004/5/1 16:59

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


(ignore this)

4
philou
Re: How do themes work?
  • 2004/5/1 20:08

  • philou

  • Quite a regular

  • Posts: 384

  • Since: 2002/5/6 8


be careful with the "gold" theme.
It's nice but very bad coding.
why ?
have a look in the theme.html and see what I mean.. many style's tag are in the theme.html => You must use as possible the style sheet

5
Mithrandir
Re: How do themes work?

theme files are cached, so if you change anything in your theme files, do turn on the "update theme files from ..." setting in your XOOPS Admin menu -> System Admin -> Preferences -> General Settings

Once you are happy with the settings, turn it off again.

6
phillipd
Re: How do themes work?
  • 2004/5/2 2:34

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


Has anyone written a "Theme Editor" that you can instantly adjust your style.css with. This manual creation of themes and style sheets is for the birds! This is the computer age!!! It's hard for me to determine how much code should be in the css and what belongs in the theme.html file. This looks more like an art than a science.

Where are all the theme tags defined? Is there a book on css's somewhere? Oreilly must have one...

One lonely opinion

Doug P

7
Stewdio
Re: How do themes work?
  • 2004/5/2 3:22

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1



Login

Who's Online

297 user(s) are online (187 user(s) are browsing Support Forums)


Members: 0


Guests: 297


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