Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Module help needed
  • Posted: 24.05.2004, 08:59
     
    KGB
    rank:
    Freshman Freshman
    registered:
     May 2004
    Status:
    offline
    last visit:
    27.05.04
    Posts:
    4
    Hi,
    I have a custom build module. Everything works fine, except when module runs then all block that suppose to be in a right side disappeared.

    Does anyone know where is the problem might be?
  • Posted: 24.05.2004, 09:03
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    online
    Posts:
    6533
    Blocks usually don't display on the right side by default, it's determined by your theme when they show up.
  • Posted: 24.05.2004, 11:03
     
    KGB
    rank:
    Freshman Freshman
    registered:
     May 2004
    Status:
    offline
    last visit:
    27.05.04
    Posts:
    4
    I have blocks that set to right side. When something else is active (like news module, etc.) blocks on right side are functional, but when I activate this custom module - the whole right side just disappear.

    I see same happened here, on this site, when I go to pnBlocks and click on Blocks Reviews, or PostNuke FAQ. Is this intended behaviour? Can I change it somehow?
  • Posted: 24.05.2004, 21:15
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    online
    Posts:
    6533
    Yes it's the intended behavior, as I said, you have to modify your theme for them to show on all pages.
  • Posted: 24.05.2004, 22:01
     
    KGB
    rank:
    Freshman Freshman
    registered:
     May 2004
    Status:
    offline
    last visit:
    27.05.04
    Posts:
    4
    Thanks for an answer.
    Is that "theme.php" file need to be changed?
    Little tips will be helpfull. I'm a newb.

    Thanks.
  • Posted: 25.05.2004, 00:45
     
    autothemes
    rank:
    Helper Helper
    registered:
     May 2004
    Status:
    offline
    last visit:
    17.06.04
    Posts:
    450
    Unless you are in love with your PostNuke theme, then I'd recommend getting the AutoThemes module. It will let you control the appearance of blocks for every module installed on your site. Check my signature for links.
  • Posted: 25.05.2004, 04:26
     
    KGB
    rank:
    Freshman Freshman
    registered:
     May 2004
    Status:
    offline
    last visit:
    27.05.04
    Posts:
    4
    I am using AutoTheme Lite .7
    Same problem arise with zPersonal module. When I click on zPersonal all my right side blocks shows on the bottom left side and slightly resized

    --
    SS
    Canada's Free Carpool and Rideshare Community Website
  • Posted: 26.05.2004, 09:47
     
    r3ap3r
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.02.08
    Posts:
    381
    It's been a while since I looked at AutoTheme, but under the classic themes a module could tell the right blocks to not show up by setting the global variable $index=0;
    I don't know for sure if AutoTheme overcomes that problem or not, but if you have it set to 0 that may be the problem.

    Look inside the module for a line that says $index=0; If it is there then try setting it to a 1 and see if your problem goes away. If it's not there then you may try adding it. Make sure to declare it global first, then set it.

    Code

    global $index;
    $index=1;

    You may be able to do it all in one line as global $index=1; but I haven't tried that way in a while, usually when I'm using global variables I want to read it before I set it so I typically don't try and initialize it at the same time.

    Again, it's been a while since I used AutoTheme so this may not apply.

    -Chris

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula