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

Dizkus

Bottom
center block disturbing my user.php screens.
  • Posted: 31.05.2005, 12:25
     
    dj_Dexx
    rank:
    Softmore Softmore
    registered:
     January 2004
    Status:
    offline
    last visit:
    15.08.05
    Posts:
    71
    How can I disable center and right blocks for user.php screens?
    Here's what I have so far for "themes/C-Black/theme.cfg"
    Thanks

    Code

    $custom_module['News'] = array (
    //Module specific template file names
           'main' => "theme.html",
           'leftblock' => "leftblock.html",
           'centerblock' => "centerblock.html",
           'rightblock' => "rightblock.html",
           //Module specific Nuclei blocks template file names (*optional)
           'area1block' => "area1block.html",
           'area2block' => "area2block.html",
           'area3block' => "area3block.html",
           'area4block' => "area4block.html",
           'area5block' => "area5block.html",
           'area6block' => "area6block.html",
           'area7block' => "area7block.html",
           'area8block' => "area8block.html",
           'area9block' => "area9block.html",
           'topblock' => "topblock.html",
           'bottomblock' => "bottomblock.html",
    //Block display for this module
           'left' => true,
           'center' => true,
           'right' => true,
           //Nuclei blocks (*optional)
           'area1' => false,
           'area2' => false,
           'area3' => false,
           'area4' => false,
           'area5' => false,
           'area6' => false,
           'area7' => false,
           'area8' => false,
           'area9' => false,
           'top' => false,
           'bottom' => false,
    //Style sheet, logo image and colors for this module
           'stylesheet' => "",
           //'logo' => "thenews.gif",    // [logo-image]
           'bgcolor1' => "#000000",    // [color1]
           'bgcolor2' => "#323232",    // [color2]
           'bgcolor3' => "000000",    // [color3]
           'bgcolor4' => "#000000",    // [color4]
           'textcolor1' => "#ffffff",  // [color5]
           'textcolor2' => "#E9E9E9",  // [color6]

    );

    ?>
  • Posted: 31.05.2005, 12:36
     
    denisrf
    rank:
    Helper Helper
    registered:
     February 2005
    Status:
    offline
    last visit:
    17.11.08
    Posts:
    411
    What version of AutoTheme are you using. If you are using .8 you don't have to mess with theme.cfg. If your not using .8, upgrade and you'll be able to enable or disable whatever blocks you need for specific modules. You can find the upgrade here:
    http://spidean.mckenzies.net/index.php

    You really only need the free version not the paid one.
  • Posted: 31.05.2005, 20:14
     
    dj_Dexx
    rank:
    Softmore Softmore
    registered:
     January 2004
    Status:
    offline
    last visit:
    15.08.05
    Posts:
    71
    AutoTheme v8 does not work with my current theme.
    Don't ask me why.
    But I prefer to just edit config.cfg myself.
    My question stands.
  • Posted: 31.05.2005, 23:58
     
    Lobos
    rank:
    Professional Professional
    registered:
     December 2002
    Status:
    offline
    last visit:
    24.08.08
    Posts:
    1588
    Try adding this to your cfg:

    $blockdisplay = array (
    '*UserPages' =>
    array (
    'default' =>
    array (
    'center' => '0',
    ),
    ),
    );

    May work, may not...

    PS that's a damn big heavy image you have as your sig - might slow things down for dial-up users...

    -Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • Posted: 04.06.2005, 01:36
     
    dj_Dexx
    rank:
    Softmore Softmore
    registered:
     January 2004
    Status:
    offline
    last visit:
    15.08.05
    Posts:
    71
    Doesn't work via this:

    Code

    <?php

    $strip_head = false;
    $alternate_summary = false;

    $template = array (
    //Main theme template file names
           'main' => "theme.html",
           'summary' => "summary.html",
           //Alternating Summary article templates
           'summary1' => "summary1.html",
           'summary2' => "summary2.html",
           //
           'article' => "article.html",
           'leftblock' => "leftblock.html",
           'centerblock' => "centerblock.html",
           'rightblock' => "rightblock.html",
           //Nuclei blocks template file names (*optional)
           'area1block' => "area1block.html",
           'area2block' => "area2block.html",
           'area3block' => "area3block.html",
           'area4block' => "area4block.html",
           'area5block' => "area5block.html",
           'area6block' => "area6block.html",
           'area7block' => "area7block.html",
           'area8block' => "area8block.html",
           'area9block' => "area9block.html",
           'topblock' => "topblock.html",
           'bottomblock' => "bottomblock.html",
    );

    $block_display = array (
    //Display blocks on all pages
           'left' => true,
           'center' => false,
           'right' => false,
           //Nuclei blocks (*optional)
           'area1' => false,
           'area2' => false,
           'area3' => false,
           'area4' => false,
           'area5' => false,
           'area6' => false,
           'area7' => false,
           'area8' => false,
           'area9' => false,
           'top' => false,
           'bottom' => false,
    );

    $miscellaneous = array (
    //Style sheet, logo image and colors used by modules by default
           'stylesheet' => "",
           'logo' => "",               // [logo-image]
           'bgcolor1' => "#000000",    // [color1]
           'bgcolor2' => "#323232",    // [color2]
           'bgcolor3' => "#646464",    // [color3]
           'bgcolor4' => "#333333",    // [color4]
           'textcolor1' => "#ffffff",  // [color5]
           'textcolor2' => "#E9E9E9",  // [color6]
    );

    $custom_block = array (
    //Custom themed blocks - configure custom templates (*optional)
    //These override the standard settings above only for the specific block
    //Comment out or delete what you don't need
           'Related links' => "relatedlinks.html",
    );


    //Custom themed modules - configure custom templates, colors, image and block display (*optional)
    //These override the standard settings above only for the specific module
    //Comment out or delete what you don't need
    //
    //Use the following if statement if you don't want these settings used on your home page
    //if($index == 1) {
    //
    $blockdisplay = array (
    '*UserPages' =>
    array (
    'default' =>
    array (
    'center' => '0',
    ),
    ),
    );

    $custom_module['News'] = array (
    //Module specific template file names
           'main' => "theme.html",
           'leftblock' => "leftblock.html",
           'centerblock' => "centerblock.html",
           'rightblock' => "rightblock.html",
           //Module specific Nuclei blocks template file names (*optional)
           'area1block' => "area1block.html",
           'area2block' => "area2block.html",
           'area3block' => "area3block.html",
           'area4block' => "area4block.html",
           'area5block' => "area5block.html",
           'area6block' => "area6block.html",
           'area7block' => "area7block.html",
           'area8block' => "area8block.html",
           'area9block' => "area9block.html",
           'topblock' => "topblock.html",
           'bottomblock' => "bottomblock.html",
    //Block display for this module
           'left' => true,
           'center' => true,
           'right' => true,
           //Nuclei blocks (*optional)
           'area1' => false,
           'area2' => false,
           'area3' => false,
           'area4' => false,
           'area5' => false,
           'area6' => false,
           'area7' => false,
           'area8' => false,
           'area9' => false,
           'top' => false,
           'bottom' => false,
    //Style sheet, logo image and colors for this module
           'stylesheet' => "",
           //'logo' => "thenews.gif",    // [logo-image]
           'bgcolor1' => "#000000",    // [color1]
           'bgcolor2' => "#323232",    // [color2]
           'bgcolor3' => "000000",    // [color3]
           'bgcolor4' => "#000000",    // [color4]
           'textcolor1' => "#ffffff",  // [color5]
           'textcolor2' => "#E9E9E9",  // [color6]
    );
    //} //End if($index != 1)

    $custom_module['Downloads'] = array (
           'right' => false,
    );

    ?>
  • Posted: 04.06.2005, 03:01
     
    Lobos
    rank:
    Professional Professional
    registered:
     December 2002
    Status:
    offline
    last visit:
    24.08.08
    Posts:
    1588
    Thats because you are not using at 0.8 - you best upgrade, it will save you grief...

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • Posted: 04.06.2005, 07:57
     
    dj_Dexx
    rank:
    Softmore Softmore
    registered:
     January 2004
    Status:
    offline
    last visit:
    15.08.05
    Posts:
    71
    AutoTheme v8 breaks my site.
    It will not work with the theme C-Black. Don't ask me why.

    How can I do this without upgrading? There's a way for everything isn't there?

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula