1
DonXoop
Show block on All pages *Except* xx page?

I'm wondering if I'm missing something where I can set a block to appear on all pages except a specified module(s)/page. I don't choose All Pages but select the ones I want, that works fine. But there are pages that aren't listed and thus aren't selectable. Like the User page and some others. They end up filling the page width and look a little silly. I'd like to have say the MainMenu on those pages but unless I select All Pages it won't.

2
Jakobo
Re: Show block on All pages *Except* xx page?
  • 2004/1/5 6:43

  • Jakobo

  • Just popping in

  • Posts: 61

  • Since: 2003/12/18


I'm having a similar problem where I want to drop all my right blocks on say, the forum, but on all other pages (including a few that are currently just wrapped with the XOOPS mainfile.php, header.php, and footer.php) the right blocks also vanish. Adding $xoopsOption['show_rblock'] = 1; to the wrapped pages didn't seem to do the trick either. I am guessing there is some other way to do it, but I can't think of one offhand.

3
CBlue
Re: Show block on All pages *Except* xx page?

Try adding $xoopsOption['show_rblock']= 0; at the top of the index.php of the forum module.

4
Jakobo
Re: Show block on All pages *Except* xx page?
  • 2004/1/5 7:24

  • Jakobo

  • Just popping in

  • Posts: 61

  • Since: 2003/12/18


Didn't seem to work. I am getting a feeling something in XOOPS is overridding the override. -_-

Incidentally, on wrapped content, using $xoopsOption['show_rblock']= 1; when the block's display isn't set on "all pages" also doesn't seem to be working. It's a strange thing.

5
DonXoop
Re: Show block on All pages *Except* xx page?

Quote:

Jakobo wrote:
Didn't seem to work. I am getting a feeling something in XOOPS is overridding the override. -_-


This is a very different issue than what I'm talking about. But to your question you can easily remove a right column. First of course you must disable all right blocks for the module in question (Forums). That is easy. In the theme.html file you need an <{if ...}> statement where the right column is presented.

Like:
Quote:
<{if $xoops_showrblock == 1}>

<{foreach item=block from=$xoops_rblocks}>
<{include file="your_theme/theme_blockright.html"}>
<{/foreach}>


<{/if}>


You may also need a line further up just before the center column so that you don't have extra s:
Quote:
<{if $xoops_showrblock == 1}> <{/if}>



What this does is to not do the right column if there are no right blocks to present.

6
DonXoop
Re: Show block on All pages *Except* xx page?

Back to my question.... I select the modules I want various blocks to appear in. That works fine including have no right column at all when that is desired (Forums). And even to have no left column (Gallery).

Problem is there are screens in System like User.php, register.php, Inbox etc. that will then have no left or right blocks and as such take up the whole width.

Actually this is a small issue and only cosmetic. I have a more important presentation issue to figure out. I can live with this one for a bit...

Login

Who's Online

396 user(s) are online (236 user(s) are browsing Support Forums)


Members: 0


Guests: 396


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Sep 30
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits