Fork me on GitHub

NEW MODULE: BlockHome - Custom pages of news and blocks  Bottom

Go to page [-1] 1 - 2 - 3 ... - 9 - 10 - 11 [+1]:

  • I think you're talking about two different things, that has nothing to do with BlockHome...

    With the newest version of Enhanced Block Mod (2.2, see http://www.natewelch.com) you can specify one of the quasi-identifiers to make a block show on only articles who's topic is 3:

    Code

    newstopic: 3

    I say "quasi" because the topic info is not actually passed to PN when viewing a particular article. The new quasi-identifiers let you make such associations, however...

    P.S. post future questions about the EBM in that thread or start a new one, please ;)

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

    Cape Cod Travel Info...
  • just wondering if the module is working with .76? did not find any reference to this...
  • It seems to, though in the admin portion, you get the "function blah returned..." in the footer because the module is not-quite pnAPI compliant...

    The front end seems to work O.K. though would likely not work as expected with a Xanthia theme because there's no way to force the block position output via the theme. If you are using classic or Autothemes, it should work normally...

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

    Cape Cod Travel Info...
  • ok i'll try it out
  • Hi

    I change my start page to blockhome but get this error:

    Warning: main(modules/BlockHome/index.php): failed to open stream: No such file or directory in /home/radio2/public_html/index.php on line 168

    Warning: main(modules/BlockHome/index.php): failed to open stream: No such file or directory in /home/radio2/public_html/index.php on line 168

    Warning: main(): Failed opening 'modules/BlockHome/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/radio2/public_html/index.php on line 168

    I'd love some help please! I'm using .726
  • I'd say make sure you extracted the module files to the right place...

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

    Cape Cod Travel Info...
  • THanks for your reply Nate - I have everything in the right place. I've checked the original zip file and there is no index.php located in modules/BlockHome as the error message suggets.

    Should there be an index.php in /BlockHome?

    Thanks
  • Nope... You start page should resemble something like: mysite.com/index.php?module=BlockHome - maybe you don't have the start page settings right? If you want it to go to your default BH page, you should just select BH from the drop-down menu in Settings and leave the rest blank... Dunno...

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

    Cape Cod Travel Info...
  • Sorry to ask another question.. Is there a way I can check 'maybe you don't have the start page settings right?' ?

    I choose BlockHome from the settings page where it asks the question 'The module, index.php is pointing to'

    I have just checked - I am using .723 does that make a difference?

    Don't know what else to do..
  • Probably, yes. BH was designed for versions .726 and above. I would definately recommend upgrading PN, if you can, for security and performace enhancements.

    (Although the last version of BH was not specifically designed for the latest version of PN, it should work just the same provided you are using a "classic" theme or AutoTheme)

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

    Cape Cod Travel Info...
  • Nate is it possible to call this as a stand alone page instead of using it as your start page?
  • Yes, when editing the pages in BH, it nicely displays the URL of the page, but generally the link takes the form of:

    Code

    http://www.yoursite.com/index.php?module=BlockHome&func=main&pid=X

    ...where X is the page ID of the page you want.

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

    Cape Cod Travel Info...
  • Hi nate

    I've been trying to get a group of blocks to show up between the admin messages and the main content, but only on the homepage. 6 blocks with different block-list filters and such in them. I have templates made, but I can't seem figure out how to get a block position other than center, left & right no matter what I do. I basically just wanted to call the blocks into the homepage with something like

    Code

    <!--[$block1]--><!--[$block2]--><!--[$block3]--><br>
    <!--[$block4]--><!--[$block5]--><!--[$block6]-->

    between the other tags on the page. Read all the posts, still can't figure it out. Would this module help with something like this?
  • You could set BH to be your homepage module, then place whatever blocks you want to appear in multiple columns in the center. If you don't want those blocks showing up elsewhere on your site, just deactivate them...

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

    Cape Cod Travel Info...
  • I just may have to do that. I apologise if you've already answered these questions before, but could I draw from multiple modules and have control over all positions, sizes (tags?) of the blocks if I used this as the homepage?

    My basic problem is that I can't figure out how to separate the tags I've made for the content I want to show from the <centerblocks> tag. I have the templates and everything right as far as I know, I can show the templates and the content but, it just stacks everything in a column surrounded by the message center style. I've been reading the forums for a few days now and still can't find anything on this that I can use. I'll PM you a link, if you see it you'll know exactly what I mean.


    EDIT: Got it sorted. Something kind of clicked and I understand Block Control a little better now.</centerblocks>

Go to page [-1] 1 - 2 - 3 ... - 9 - 10 - 11 [+1]:

  • 0 users

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