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 ?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- nestormateo responded to »Fillters in Clip« 06:33 AM
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 03:19 AM
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Autotheme, more blocks ?
-
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
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... -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 178
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 :) -
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
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... -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 178
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
and I also created file for AreaAblocks.html ...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";
Now when i call the blocks eg:
it displays nothing :( ...
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
