Support Spidean

Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.

Spidean Forums

Board Index > Support (.87) > READ FIRST: AutoBlocks in Blocks Admin


 < Last Thread   Next Thread >New Topic  Post Reply
Author: Subject: READ FIRST: AutoBlocks in Blocks Admin

Administrator





Posts: 4606
Registered: 10/7/2002
Status: Online

  posted on 9/11/2005 at 10:22 AM
For those running PHP-Nuke, PostNuke, etc... In the past when you went to your CMS Blocks Admin you could choose the AutoBlock area when editing or creating new blocks. Unfortunately this required AutoTheme to replace a core PHP-Nuke, PostNuke admin file.

With AutoTheme 1.75 and Lite .85 you no longer see these areas. You now have Block Control in the AutoTheme admin. This is where you can control the position and status of all of your blocks. The added benefit is that you are able to do this not for the entire site or theme, but also for each individual Custom Page in your theme.

So go to Admin > AutoTheme > Themes > YOURTHEME (Configure) > Page Defaults > Block Control and check it out. Also look for Block Control under your Custom Pages.

Thanks!
-Shawn

[Edited on 7/14/2007 by Shawn]

 
Reply With Quote Visit User's Homepage

Moderator




Posts: 42
Registered: 6/23/2003
Status: Offline

  posted on 9/15/2005 at 04:35 PM
Damn good feature,

I did notice that the blocks are still showing in admin in the orginal position they were created as in the cms block admin - ie I created a html block in the left postion then went and changed it to a custom position in admin, then edited it in the cms block admin and it came back to left (only in the admin area though (this is for pn760).

-Lobos

 
Reply With Quote

Administrator




Posts: 4606
Registered: 10/7/2002
Status: Online

  posted on 9/17/2005 at 12:21 PM
Yes, so as not to have to ship hacked PostNuke/PHP-Nuke files with Autotheme, there is a disconnect. I'll look into how to solve this.

-Shawn

 
Reply With Quote

Newbie




Posts: 5
Registered: 10/3/2003
Status: Offline

  posted on 8/8/2006 at 06:58 AM
Shawn,

Did you ever get this resolved with PN .75 and AT lIte .87?
I am working on a site. I created the blocks in AT, but they do not show up in PN blocks.
If memory serves correctly (old guy forgets a lot...), there was a hacked file that you had for PN that would resolve this issue.

jim

 
Reply With Quote

Administrator




Posts: 4606
Registered: 10/7/2002
Status: Online

  posted on 8/9/2006 at 02:43 PM
There is nothing to resolve. You change block positions in AutoTheme > Block Control now.

-Shawn

 
Reply With Quote

Newbie




Posts: 5
Registered: 10/3/2003
Status: Offline

  posted on 8/9/2006 at 09:34 PM
I must be dealing with another problem then.. autoblocks is not working with this setup that my client has.
 
Reply With Quote

Newbie




Posts: 9
Registered: 3/7/2005
Status: Offline

  posted on 6/5/2007 at 06:45 AM
I created a really detailed tutorial-style guide to how to make new custom blocks in AT, starting with the original Block in PN. It really is an idiot-guide (for people like me!) and I put it in the PN Wiki.

If people follow this it should cover all possible cases of missing something in the way AT interfaces with PN. If it doesn't, give me feedback and I'll modify to make it clearer.

Regards
Pru

 
Reply With Quote

Administrator




Posts: 4606
Registered: 10/7/2002
Status: Online

  posted on 6/5/2007 at 07:54 PM
quote:
I created a really detailed tutorial-style guide to how to make new custom blocks in AT, starting with the original Block in PN. It really is an idiot-guide (for people like me!) and I put it in the PN Wiki.

If people follow this it should cover all possible cases of missing something in the way AT interfaces with PN. If it doesn't, give me feedback and I'll modify to make it clearer.

Regards
Pru


Great thanks! Send me a copy if you want and I'll try and find a place for it here.

-Shawn

 
Reply With Quote

Newbie




Posts: 9
Registered: 3/7/2005
Status: Offline

  posted on 6/12/2007 at 05:44 AM
Right, here it is, on purpose with the least possible formatting (txt), so it can be put on a site without too much hassle.

If you prefer me to send it as an attached doc, pls give me an email address to which I can do it that way.

==================
Getting AutoTheme to work with your PostNuke site: a tutorial on How to create a brand-new AutoTheme block and implement it

Note: This has been tested on PN 0.762 and 0.764, and with AutoTheme Lite (0.87)

1.
Go to the PN Admin page. In System, Blocks, create a new block, as follows:
(This example uses Core/Generic menu because I find it's the most useful block.)
Fill in the fields of the Add block form as follows:
Title: aPostNukeBlock
Block: Core/Generic menu
Position: Left
Collapsible: Yes
Default state for block: Expanded
Language: English
Click Update.

2.
When the Display and Content panels open below, fill in one line, as follows:
Title: aMenuItem
URL: #1
(this is just a dummy link to use for the time being).
Description: Leave this blank for now.
Click Update.

3.
Still in the PN Admin page, go to 3rd Party, AutoTheme. Choose the name of the theme you want to use from Themes, then Configure.

3a.
Click the Block Areas menu. In the Add Block Area box at the bottom of the page, give it the name anAutoThemeBlock then click the Add button.

3b.
Now use a text editor to create an html file that will hold the content of this new block. Call it newHTMLBlock.html. At the top of this file, type block-content between the Smarty tags. Save this file in the themes/your_AutoTheme_name directory (where all the other AutoTheme templates are).

3c.
Still in the PN Admin page, in 3rd Party, AutoTheme: make sure your_AutoTheme_name is selected, then click the Theme Defaults menu, followed by the Block Control menu. The new PN block you created in Step 1 – aPostNukeBlock – will appear somewhere in the column on the left, under the column heading Block. Notice that in the next column, under the column heading Block Area, the value Left is displayed in a drop-down list. (AutoTheme simply takes this from PostNuke's System, Blocks setting, which we left as Left in Step 1.) In this drop-down list, change this value by selecting anAutoThemeBlock, which you created in Step 3a. Also check that in the far-right column, under the column heading Enable, the radio button is set to Yes. Click the Save button at the bottom of the page.

3d.
Still in the PN Admin page, in 3rd Party, AutoTheme click the Theme Defaults menu again. On the left, under the column heading Default Theme Templates, you'll see your new AutoTheme block's name, anAutoThemeBlock, followed by the word Blocks. In the next column, under the column heading File name, select the name of the html file you created in Step 3b – newHTMLBlock.html – from the drop-down list.

3e.
From the third column, under the column heading Show Block block by default, click the Yes radio button.
Click the Save button at the bottom of the page.

4.
In your theme template, which will be called theme.html unless you've created a different one, type <!—[anAutoThemeBlock-blocks]--> wherever in the template you want your new menu to appear, and save your changes. Note that what you typed is the name of the new block area you created in Step 3a, followed by –blocks.

5.
Finally: what did you want to have displayed inside this new menu block? I use Pagesetter a lot, so the example I'll give is of a link to one of my Pagesetter publications.

Go back to the PN Admin page, to System, Blocks, and edit the block called aPostNukeBlock, by replacing the dummy link #1 under the column heading URL with a Pagesetter url, e.g.: index.php?module=pagesetter&func=viewpub&tid=1&pid=1
(Obviously you replace tid=1 and pid=1 with the relevant numbers for your Pagesetter publication.)
Click Update.

When you refresh your website in the browser, you should see the menu aMenuItem appear. When you click on this, it'll take you to your Pagesetter publication.

End of Tutorial


[Edited on 14/6/2007 by pru]

 
Reply With Quote

Newbie




Posts: 8
Registered: 9/11/2004
Status: Offline

  posted on 7/20/2007 at 09:48 AM
My custom blocks are now missing from the standard postnuke blocks module. I do see them in the AutoThemes admin module, then into the Active Themes option, select configure for my theme, select block areas, all my custom blocks are in there, including the left, right, and center.

Seeing the blocks are missing from the Postnuke Blocks module how can I edit the content of the custom blocks?

 
Reply With Quote

Administrator




Posts: 4606
Registered: 10/7/2002
Status: Online

  posted on 7/20/2007 at 02:23 PM
The blocks are still in the PostNuke Block admin, just not the areas. You edit the blocks in Blocks admin and you change their position in AutoTheme Block Control.

-Shawn

 
Reply With Quote

Newbie




Posts: 8
Registered: 9/11/2004
Status: Offline

  posted on 10/1/2007 at 05:23 AM
Ok, in my postnuke block admin I only have the option to add left, center, and right.

My theme has 9 custom blocks and they are all listed in the block area of AT-Lite.

top left block
top center block
top right block
mid left block
bottom right block
bottom center block
bottom right block
bottom block
module top block

How do I activate my custom blocks to get my theme to display them, and how to I edit the content?

I am working on a dummy website to get this working and if you need access I can give you that to you. I guess I'm just not seeing how its being done. I know it can't be this diffecult to add and edit existing blocks.

In the original PN Block admin module I only have the option to add left, right, and center blocks.

Thanks...

[Edited on 1/10/2007 by Morpheus]

 
Reply With Quote

Administrator




Posts: 4606
Registered: 10/7/2002
Status: Online

  posted on 10/1/2007 at 06:28 AM
First, make sure you have the tags in your theme template for all the Areas (i.e. [top left block-Blocks], [top center block-Blocks], etc.).

Then, go to AutoTheme > Themes > YOUR THEME > Page Defaults or Custom Pages and make sure that the block Areas are set to display = YES and that you have chosen a template for them.

Then, go to Block Control and assign some blocks to those Areas.

FYI... If you have Custom Pages already existing, then they each need to be configured along with Page Defaults.

-Shawn

 
Reply With Quote
New Topic    Post Reply


Main Menu

Get AutoTheme

Featured Item

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 134
Comments: 0

Powered by the AutoTheme HTML Theme System
Page created in 0.137164 Seconds