Fork me on GitHub

Autotheme, more blocks ?  Bottom

  • Hi everyone,
    I am using ATLite and PN 0.726 I noticed that AT only has 9 block areas and I was wondering if it was possible to add some more. Has anyone ever achieved this ?
  • I think you can add as many as you want simply by adding to the array found in the config (.cfg) file found in the AT module...

    Not sure why you would need much more unless it was for page-specific applications, in which case you can check out this mod I made to the Blocks module (works with AT - read details)....
    Blocks Module Mod fo…acement w/PN themes

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • I added this in autoblock.cfg

    Code

    $autoblock = array (
        1 => 'Area1',
        2 => 'Area2',
        3 => 'Area3',
        4 => 'Area4',
        5 => 'Area5',
        6 => 'Area6',
        7 => 'Area7',
        8 => 'Area8',
        9 => 'Area9',
        10 => 'Area10',
        11 => 'Area11',
        12 => 'Area12',
    );

    But it does not seem to work, as for you little 'hack' ill give it a try :)
  • Hmmm. perhaps you can't have two character block defs... Try:

    Code

    $autoblock = array (
        1 => 'Area1',
        2 => 'Area2',
        3 => 'Area3',
        4 => 'Area4',
        5 => 'Area5',
        6 => 'Area6',
        7 => 'Area7',
        8 => 'Area8',
        9 => 'Area9',
        'a' => 'AreaA',
        'b' => 'AreaB',
        'c' => 'AreaC',
    );


    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • I did what you said, I know ended up with Area 1 -9 + Area A-C in blocks admin.
    I also added this to /modules/auototheme/admin.php :

    Code

    ."  <input type=\"text\" name=\"AreaA\" value=\"$AreaA\"> AreaA "._BLOCK."<br />\n"
    ."  <input type=\"text\" name=\"AreaB\" value=\"$AreaB\"> AreaB "._BLOCK."<br />\n"
    ."  <input type=\"text\" name=\"AreaC\" value=\"$AreaC\"> AreaC "._BLOCK."<br />\n"

    and

    Code

    ."  <input type=\"text\" name=\"AreaA\" value=\"$AreaA\" size=\"1\"> AreaA<br />\n"
    ."  <input type=\"text\" name=\"AreaB\" value=\"$AreaB\" size=\"1\"> AreaB<br />\n"
    ."  <input type=\"text\" name=\"AreaC\" value=\"$AreaC\" size=\"1\"> AreaC<br />\n";
    and I also created file for AreaAblocks.html ...
    Now when i call the blocks eg:
    it displays nothing :( ...
  • 0 users

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