Fork me on GitHub

Can someone please help me with my theme.cfg file?  Bottom

  • Hello,

    I'm having a problem with a custom theme that I have and was hoping someone could help me. I've been using it on my .726 site for awhile without any problems but when I try it on my local test server running .750, it's messed up. I do not have right blocks nor do I have the admin messages showing on the index page (News).

    I've tried everything and I thought I had it fixed when I was reading this post but it didn't work as the admin messages and right blocks would show on pages that I didn't want it to.

    I've tried going through this theme.cfg file trying to figure it out but I'm ready to pull my hair out because I can't find the fix.

    Can someone look at it and tell me why it will not show admin messages and right blocks on the index (News) page.

    Any help would be greatly appreciated!

    Here's my theme.cfg file:

    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' => "#FFFFFF",    // [color1]
           'bgcolor2' => "#CBCACE",    // [color2]
           'bgcolor3' => "#EFEFEF",    // [color3]
           'bgcolor4' => "#EFEFEF",    // [color4]
           'textcolor1' => "#000000",  // [color5]
           'textcolor2' => "#000000",  // [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
           //'Main Menu' => "mainmenu.html",
           //'Poll' => "poll.html",
           //'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) {
    //
    $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' => "#FFFFFF",    // [color1]
           'bgcolor2' => "#EFEFEF",    // [color2]
           'bgcolor3' => "#EFEFEF",    // [color3]
           'bgcolor4' => "#888888",    // [color4]
           'textcolor1' => "#000000",  // [color5]
           'textcolor2' => "#000000",  // [color6]
    );
    } //End if($index== 1)

    if($index != 1) {
    //
    $custom_module['PNphpBB2'] = array (
    //Module specific template file names
           'main' => "thememods.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' => 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,
    //Style sheet, logo image and colors for this module
           'stylesheet' => "",
           'logo' => "forumlogo.gif",    // [logo-image]
           'bgcolor1' => "#FFFFFF",    // [color1]
           'bgcolor2' => "#EFEFEF",    // [color2]
           'bgcolor3' => "#EFEFEF",    // [color3]
           'bgcolor4' => "#CBCACE",    // [color4]
           'textcolor1' => "#000000",  // [color5]
           'textcolor2' => "#000000",  // [color6]
    );
    } //End if($index != 1)

    if($index != 1) {
    //
    $custom_module['Downloads'] = 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' => 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,
    //Style sheet, logo image and colors for this module
           'stylesheet' => "",
           'logo' => "thenews.gif",    // [logo-image]
           'bgcolor1' => "#FFFFFF",    // [color1]
           'bgcolor2' => "#EFEFEF",    // [color2]
           'bgcolor3' => "#EFEFEF",    // [color3]
           'bgcolor4' => "#888888",    // [color4]
           'textcolor1' => "#000000",  // [color5]
           'textcolor2' => "#000000",  // [color6]
    );
    } //End if($index != 1)

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

    ?>
  • What happens if you activate center and right blocks for the "$template = array (" array? If they work then it means that for some reason the $index variable is not working and all your troubles are concerned with this $index variable.

    Could you send me the theme without the images (just all the HTML files and PHP code - keep the directory structure intact)? I will take a look at it, send to info[at]webvida.com

    Regards

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • If I set left, center, and right to true in $template = array (" array? then everything will show. The problem with that is it will show the admin message and right blocks on pages that I do not want it to show on (i.e. My Account etc.)

    I would love to send you my theme (minus the graphics) but I don't know if I can do that. It's a theme that I purchased and the creator might not like if I did that. I will get with him and see if I can send it to you.

    With the info that I gave you, any ideas on what the problem is?
  • Lobos

    You having troubles with your themes and 750 RC's??
  • I didn't mention it before but I'm running the RC3 version of .750.

    Any ideas on why my admin messages and right blocks do not show up on my homepage (News)?

    Any help would be GREATLY appreciated!
  • MASsIVE

    Lobos

    You having troubles with your themes and 750 RC's??


    No I am not, I think the trouble is with AT 0.6 themes as there have been a few other situations like this appearing in the forums.

    I recently upgraded all of my themes to at 0.7 and have not had any problems with them.

    Kindest regards
    Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • Alpha_Recon:

    Dunno if this could apply to you too. I fixed my theme after getting feedback from Lobos. Lobos was the developer of my theme. But maybe it could give you a clue...

    This is at Spidean forums:
    http://spidean.mcken…read-tid-2291.phtml

    Seems like I messed with it for some reason. But now it shoudl be back.

    Later

This list is based on users active over the last 60 minutes.