1
adamxerxes
only center block
  • 2004/11/27 19:13

  • adamxerxes

  • Just popping in

  • Posts: 5

  • Since: 2004/11/27


Im trying to use only the centerblock for my forum module, dont want to have any left or right block.
My problem is that i cant figure out how to use just the center block.

2
JasonMR
Re: only center block
  • 2004/11/27 22:34

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


Forget the centre block idea...

What you need to do, is change the block settings for those blocks that usually appear to the left and right, so that don't appear, within your newwbb module (tip...use the ctrl button to make multiple selections)

Hope these brief instruction will bring you onto the right path...

3
DonXoop
Re: only center block

^^exactly.

More hints: if you have any blocks that are set to "All Pages" you will still have that block appearing. You'll have to deselect that option and then select the (multiple) pages for your blocks to appear where you want them. You might want some navigation buttons in your header so people can still get around with just a click.

So in your case you shouldn't have any left/right blocks set to newbb if you want it full screen width.

This brings me to a wish list item. I'd love an "All pages except xxx" option for blocks. Side effect of no All Pages option is that root pages like user.php and register.php look ugly full screen. I have a theme trick to fix that but is a workaround.

Also look into other hungry tables like _priv_messages. I've seen some very large PM tables. It can get sensitive asking your users to clean up, yeah right...

4
adamxerxes
Re: only center block
  • 2004/11/28 1:33

  • adamxerxes

  • Just popping in

  • Posts: 5

  • Since: 2004/11/27


Thank you guys for your fast replys!

I followed your advice and the "menus" are gone in the block but the table still remains, weird!
Ok, im attaching a image so you can understand my problem.
Silly me belived i had done the tricky bit after moving my phpbb forum to xoopbb

Resized Image

5
JasonMR
Re: only center block
  • 2004/11/28 2:09

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


That's a theme problem....you will need to hack your theme, if you want the forum to take over the whole width...

6
adamxerxes
Re: only center block
  • 2004/11/28 2:12

  • adamxerxes

  • Just popping in

  • Posts: 5

  • Since: 2004/11/27


Ok, thanks

7
adamxerxes
Re: only center block
  • 2004/11/28 2:27

  • adamxerxes

  • Just popping in

  • Posts: 5

  • Since: 2004/11/27


hmm. i changed to default theme and still the same problem?

8
JasonMR
Re: only center block
  • 2004/11/28 2:39

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


It doesn't matter which theme you will use (most likely), as the left column is created, by placing a margin on your content (moving it to the right)...you will have to hack your theme!

9
DonXoop
Re: only center block

The theme is likely still creating a CSS width set tag and cycling through the motions of placing blocks even though there aren't any.

You need something like:
<{if $xoops_lblocks}>
left block content
<{/if}>

So if there aren't any blocks to output the theme will skip creating the columns. You have to watch the logic so that the tables are still built properly.

10
adamxerxes
Re: only center block
  • 2004/11/29 8:12

  • adamxerxes

  • Just popping in

  • Posts: 5

  • Since: 2004/11/27


Thx DonXoop!

<{if $xoops_lblocks}>
<
td width="20%" bgcolor="#272727" class="lbar">

<{foreach 
item=block from=$xoops_lblocks}>
<
table cellspacing="0" cellpadding="2" border='1'>
<
tr>
<
td class="blockTitle">&nbsp;<{$block.title}>td>
tr>
<
tr>
<
td class="blockContent"><{$block.content}>td>
tr>table><br />
<{/foreach}>

td>
<{/if}>


solved the problem!

Login

Who's Online

356 user(s) are online (320 user(s) are browsing Support Forums)


Members: 0


Guests: 356


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