1
jonwatson
Block Weighting Tutorial?
  • 2005/11/17 16:08

  • jonwatson

  • Just popping in

  • Posts: 47

  • Since: 2005/11/16


Is there a tutorial on weighting somewhere?

If you take a look at my dev environment athttp://www.jonwatson.ca/xoops you'll see the following in the center section:

Blog
AdSense
Top Downloads
Slashdot | Digg
iBLOGthere4iM | Lifehacker

I want the Top Downloads to be moved to the bottom, but not matter what weighting I assign it, it won't go.

Here's my current positioning and weighting:

Blog - center/center - 0
Google AdSense - center/center - 1
Top Downloads - center/center - 9
Digg - center/right - 2
Slashdot center - left - 1
iBLOGthre4iM - center/left - 2
Lifehacker - center/right - 2

What the heck am I missing here?

Oh, and while we're kind of on the topic: WHat is the 'recent comments' module supposed to display. Recent comments from what?

Almost there.....

Thanks!

J

2
MadFish
Re: Block Weighting Tutorial?
  • 2005/11/17 16:50

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


Open up theme.html. Basically there is a table in there that governs the layout of the columns. In the default template the centre left/centre/right blocks always appear on top of the centre blocks.

To put your centre block on the bottom, edit theme.html to put it under the centre 'sub-blocks' (for want of a better term).

I have seen a theme with centre blocks above and below some centre-left/right blocks, but that was done by editing theme.hmtl to move the right column into the centre, underneath them.

This post probably won't make much sense until you open theme.html in a GUI editor and look at the basic table layout.

Apart from that, weighting is straight forward. Higher weightings appear lower down. Good idea to weight things in increments of 10, so you can slot other things in later without much hassle.

Sawatdee.

3
jonwatson
Re: Block Weighting Tutorial?
  • 2005/11/17 17:00

  • jonwatson

  • Just popping in

  • Posts: 47

  • Since: 2005/11/16


Errgh...you're right. I better look at the file and then take another read.

Thanks!

J

Edit: OK, I understand now. So the weightings are only relevant within each section (center-center, center-left, center-right, etc). Got it.

I was looking for a layout like:
2 rows of center-center blocks
1 row of 1 center-left and 2 center-right
2 more rows of center-center blocks.

I guess that's not going to happen without some serious hacking on my part, eh?

Thanks for the info!
J

4
jonwatson
Re: Block Weighting Tutorial?
  • 2005/11/17 22:42

  • jonwatson

  • Just popping in

  • Posts: 47

  • Since: 2005/11/16


Oh, and the 'recent comments' thing? What module's comments is this block supposed to display?

I can't figure it out...

Thanks!

5
rowdie
Re: Block Weighting Tutorial?
  • 2005/11/17 22:50

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


That block will display comments for all modules which use the XOOPS comment system.

6
jonwatson
Re: Block Weighting Tutorial?
  • 2005/11/17 22:53

  • jonwatson

  • Just popping in

  • Posts: 47

  • Since: 2005/11/16


Must be native modules, eh?

The Wordpress module comments, for example, dont' show up in it.

Login

Who's Online

233 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 233


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