Hi all,
I read the sample code changes at the nuclei website, but there are a lot of difference in the sample theme.php and the files around (no sideblock htmls in MTmodular by example).
So before I try to include nuclei block working I like to ask people for their experience with it. (I like to have 1 sideblockcolumn right side the news means leftblock | news | newblockarea | rightblock.
Thank you for all answers.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- craigh responded to »Using PageUtil::addVar() to load script code« 03:29 PM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. 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
MTmodular + nuclei Blocks
-
**unknown user**
- Rank: Expert
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 1193
smokinghead
Hi all,
I read the sample code changes at the nuclei website, but there are a lot of difference in the sample theme.php and the files around (no sideblock htmls in MTmodular by example).
So before I try to include nuclei block working I like to ask people for their experience with it. (I like to have 1 sideblockcolumn right side the news means leftblock | news | newblockarea | rightblock.
Thank you for all answers.
I saw your post while surfing the forums. Could you give me the link to the nuclei website?
Given that I don't know anything about nuclei blocks, I don't understand enough to answer your question, even though I know alot about the MTmodular theme. (I'm the author. :D ) But I am interested in how folks use the theme and resolving any issues...
If you have any problems or questions with the MTmodular theme, send me an email at crs@mtrad.com. Also, there will be a new release out in a week or so. Check for it at http://www.mtrad.com. -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Mar 21, 2003
- Posts: 15
Here is the link to http://tangant.com/index.php where nuclei blocks can be found. I for one, wouldn't leave home without my nuclei blocks - the amount of flexibility it gives over additional block placement ( I can choose from 11 different block locations just using the default install) is great. And I would consider myself an almost beginner in running a postnuke site but even I could figure out how to use the mod using the documentation on the site and hitting the forums.
I am using the nucleus-xl theme available from tangant.com as well since it already had the nuclei blocks capability built into it. I will probably just modify this theme when I get tired of it. I have not tried to use them on anyone else's theme though.
The developer - Demo - has been away for several months but is due back in the near future and promises to be more available for assistance thru his forums.
Hope this helps,
Mark -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jan 26, 2005
- Posts: 38
I think if the feature of nuclei blocks could be included (maybe ready to go with some samples) the MTModular will be one of the best themes for PN. I have modifiet the graphics and now after a smaller font for headers I am ready to go with a new blockarea beside the news ( use for some contentExpress Blocks I think).
Have a look at it at http://www.sk-kaltenkirchen.de/html/index.php -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Mar 21, 2003
- Posts: 15
smokinghead
I think if the feature of nuclei blocks could be included (maybe ready to go with some samples) the MTModular will be one of the best themes for PN.
I couldn't agree with you more - as I was using MTmodular before I moved to nuclei blocks enabled themes as just haven't had the time to modify an existing theme myself to use the blocks.
Still don't know if the NoMoreBlocks module in postnuke can accomplish what you want as I have just not used it yet. I know Envolution gave the option for an additional block next to the news block and they are back to developing that again - just released version 1.2. That works with any postnuke compatible themes as long as you add the file "pninit.php" from one of the default themes to your new theme directory.
Really like your site even though I didn't understand a word of it :) -
**unknown user**
- Rank: Expert
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 1193
some folks
I think if the feature of nuclei blocks could be included (maybe ready to go with some samples) the MTModular will be one of the best themes for PN.
Well, I just looked at the Tangant site and read some of the documentation for nuclei blocks. There's no reason why MTmodular won't work with nuclei blocks. But I'm not sure you'll get the results you want. I'm not sure if you really could put blocks wherever you want without something else breaking in the theme.
Here's how I would do it, if I had the time and inclination. If someone else wants to try, I'd be happy to help them by answering their questions and checking their work...
In MTmodular, edit the theme.php file. Go to the themesidebox() function and copy all the lines from the first echo with "Start Block Box" to the last echo with "End Block Box". Put those into a new file called defaultblock.html.
Now, go back to themesidebox() function and replace all that code that you copied with this:
Code
switch ($block['position'] ) {
case 'l':
include("themes/$thename/defaultblock.html");
break;
case 'r':
include("themes/$thename/defaultblock.html");
break;
case 'c':
include("themes/$thename/defaultblock.html");
break;
case 't':
include("themes/$thename/defaultblock.html");
break;
case 'b':
include("themes/$thename/defaultblock.html");
break;
case '1':
include("themes/$thename/defaultblock.html");
break;
case '2':
include("themes/$thename/defaultblock.html");
break;
case '3':
include("themes/$thename/defaultblock.html");
break;
case '4':
include("themes/$thename/defaultblock.html");
break;
case '5':
include("themes/$thename/defaultblock.html");
break;
case '6':
include("themes/$thename/defaultblock.html");
break;
case '7':
include("themes/$thename/defaultblock.html");
break;
case '8':
include("themes/$thename/defaultblock.html");
break;
case '9':
include("themes/$thename/defaultblock.html");
break;
}
This code should work without any other tweaking or messing with any other blocks. If it doesn't, then fix it before going further.
Now, if you want to use a block someplace, you just use insert the call to blocks() as documented on Tangant. If you want to change the look of the block, or need to do some other HTML stuff to make the block work with the rest of the theme, then copy defaultblock.html to a new name, preferably something like "area_4_block.html". Then change the include in the appropriate case clause of the switch structure in themesidebox() to reference "area_4_block.html" instead of "defaultblock.html".
That should be it. Let me know how it works or if you have any questions or suggestions. Email is the quickest way to reach me at crs@mtrad.com. -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jan 26, 2005
- Posts: 38
Thank you CRS!
First I have some problem with the implementation, but after then I put your changes between PHP tags and save it as defaultblock.php.
After changing the calling also to this defaultblock.php it works fine.
If someone like to see how it works so look at
http://www.sk-kalten…n.de/html/index.php
Yes
it is really MTmodular with its good functions
-
**unknown user**
- Rank: Expert
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 1193
smokinghead
First I have some problem with the implementation, but after then I put your changes between PHP tags and save it as defaultblock.php.
After changing the calling also to this defaultblock.php it works fine.
If someone like to see how it works so look at
http://www.sk-kalten…n.de/html/index.php
Yes
it is really MTmodular with its good functions
Hmmm... yeah, you're right. I'd ring those up as typos....
I'll add this to the doc for the next release of MTmodular, which is coming up soon given that I got the bug in PrintAnyPage resolved and the statistics module released...
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
