1
ngcentar
2 right columns
  • 2007/4/13 9:03

  • ngcentar

  • Just popping in

  • Posts: 8

  • Since: 2005/8/14


How can I make more right columns(now need 1) for blocks like here .
I am using default theme.
My site http://www.ngcentar.com.
I was tried with center (lef-right) columns, but not working the way i want to work (news not work in center left).
please help me!!!
thanks

2
davidl2
Re: 2 right columns
  • 2007/4/13 9:08

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


You could use another block position instead - and move it next to your "normal" right column in your theme.

Example Right-Center block

3
ngcentar
Re: 2 right columns
  • 2007/4/13 10:14

  • ngcentar

  • Just popping in

  • Posts: 8

  • Since: 2005/8/14


When I use center right position then block goes up and news (from module) goes down and when I change screen resolution 800x600 to 1024x768 then center blocks chaned width form and i tried put in css file exemple "center right column width 120px" then center right column goes to center of page,not to right side. I want static right column.
tnx!

4
ngcentar
Re: 2 right columns
  • 2007/4/13 17:04

  • ngcentar

  • Just popping in

  • Posts: 8

  • Since: 2005/8/14



5
Tobias
Re: 2 right columns
  • 2007/4/18 3:46

  • Tobias

  • Not too shy to talk

  • Posts: 172

  • Since: 2005/9/13


You have to also change it in your theme.html so that the center-right blocks loop is not part of the same vertical container with the center-center (or main column). If you're table based, the center-right loop has to be a different column (not row). If you're doing it with divs, the center-right loop cannot be contained in the same div in which you have your main (or center-center) stuff.

That's on the assumption that you want to recycly the center-right blocks for your second right column.

The site you're referencing uses a table. That seems quite feasible. So you have in your theme.html something like:








left blocks loopcenter and center-left block loops and main contentcenter-right blocks loopright blocks loop


You can size and arrange it with the css file. If you want to design it tableless, then I wish you the best of luck, and a lot of patience. Four columns looks like a challenge, at least if you want to have it liquid. Fixed width should be easy.

6
gestroud
Re: 2 right columns
  • 2007/4/18 4:13

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


You could try this:

<td id="centercolumn">
                    
                    <{if 
$xoops_showcblock == 1}>
                        <
table cellspacing="0">
                        <
tr>
                            <
td id="centerCcolumn" colspan="2">
                                    
                                <{foreach 
item=block from=$xoops_ccblocks}>
                                  <{include 
file="default/blocks/theme_blockcenter_c.html"}>
                                <{/foreach}>
                                
                            td>
                          tr>
                          <
tr>
                    <{if 
$xoops_showclblock == 1}>
                            <
td id="centerLcolumn">
                                    
                                  <{foreach 
item=block from=$xoops_clblocks}>
                                <{include 
file="default/blocks/theme_blockcenter_l.html"}>
                                  <{/foreach}>
                                
            <{else}>
                    <
div id="content">
                      <{
$xoops_contents}>
                    div>
                            td>
                    <{/if}>
                                <
td id="centerRcolumn">
                                
                                  <{foreach 
item=block from=$xoops_crblocks}>
                                <{include 
file="default/blocks/theme_blockcenter_r.html"}>
                                  <{/foreach}>
                                
                            td>
                          tr>
                        table>
                    <{/if}>
                    
              td>


The only problem is that the center right column has to appear on every page, or the content won't appear. Kind of sloppy, but it works. I bet someone could come up with some better logic than what I'm using.

Hope I wrote it right; it's late and I'm exhausted.

7
Bassman
Re: 2 right columns
  • 2007/4/18 4:40

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


That site you provided the link for, has the 2nd right column hard-coded in - it's not part of the XOOPS "block placement system". The only option you have is to do what is suggested above and re-code theme.html so that the center-right blocks are in their own seperate column and are placed next to the right blocks column.

You'll probably have to edit the css for your theme so the new 2nd right column looks more like the original right column.

8
MrMercutio
Re: 2 right columns
  • 2007/4/18 13:29

  • MrMercutio

  • Just popping in

  • Posts: 12

  • Since: 2006/7/30


Just wondered why I got lots of traffic from here suddenly... I operate the mentioned blog above.

My theme.html is modified and uses a table with four columns. The column widths are controlled by style.css.

The last column isn't hard coded, but in XOOPS you can use module positions, and I use something like user9, or something. I've just removed the header from the blocks, and set these blocks to use different css-code than regular blocks.

Edit: Sorry, got a bit of a brain meltdown above. That's from my joomla site. That should teach me to use lots of different CMS:s. My Xoops-blog uses the top-center-right block position for my ads. The left- and right-columns (the normal ones) uses the common positions.

You just have to write a loop (in the rightmost column) to show the top-center-right blocks).

Login

Who's Online

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


Members: 0


Guests: 266


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