Fork me on GitHub

Watch

GitHub Core

Show your support for Zikula! Sign up at Github account and watch the Core project!




GitHub Modules

Forum Activity

Forum feed

» Visit forum | » View latest posts

Admin Message Where it doesn't belong  Bottom

Go to page 1 - 2 [+1]:

  • I know I saw this problem posted here before but I'll be darned if I can find it.

    I like to be able to use the Admin message and I don't want to just keep it shut off but it ends up on the top of the center block on every page in a module I'm using and I don't want it there.

    Could somebody give me a clue where I've got to look or what I'm looking for. This can't be that tough...can it?
  • Hello, hello, hello is there anybody out there?
  • Hello, hello, whats the module called?
  • umm well a search on displaying module specific blocks might help you, and then changing it to apply to admin messages. Alternativley you might be able to code a print statement into your theme in the right place

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • The module is YellowPHP. The problem is not theme specific. Perhaps I should ask what is/isn't coded into virtually all other modules except News that makes them show w/out the Admin Message.
  • i think i mis read your earlier post.

    Anyway its coded into index.php which pulls a module as set in administration settings.

    Basically i think index.php renders the banner the left and right blocks the footer and the admin message, then checks the administration settings table in the DB to see what module it should load in the center and loads it.

    So its not in the news module its in index.php

    If you set your yellow pages module to be the startpage, the admin message would appear at the top

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • Hmm...Since it's not happening in my other modules, I assume your talking about index.php in the specific module directory as opposed to the index.php at the root level....yes?

    If I set YellowPHP to be the start page, the admin message does indeed appear at the top. The problem I want to resolve is when I don't have it set as the start page I still have admin at the top (but just for this module).

    I'll probe around index.php in the module. Not much code there really but what should I be looking for? I have a hunch it may be a function of code being omitted in which case if I don't know what I'm looking for...
  • In old style modules a setting of $index = 1 means that centre and right blocks will show. Either change this to any other value or comment out the line entirely.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Mark,

    You're ALWAYS are the one who comes up with the answer. You should write a Postnuke for Dummies book. If you do, I want an autographed copy. You're the man!

    Thanks,

    Slugger
  • hehe hes a coder so he knows the ins and outs of PN much better than any of the other support guys

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • Excuses, excuses...like I should talk!
  • If $index = 1 makes center and right blocks show, what would you do to make just the right block show? How bout only the center block? I was just wondering and, since someone else reading this may want to know, I thought it would be an appropriate way to complete the thread.
  • not sure you can do that, "MARK, OVER HERE!!!"

    lol

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • Hey H-squared! Since we haven't heard from Mark, I'm guessing the answer is there is no answer.
  • As far as I know, in the current theme system, you only have $index to indicate whether to show the Admin message and right blocks. Some modules, like EZ CMS or Nuclei Blocks, use their own variables or hacks to determine when to display content. All this will change with PN 0.8 and the Xanthia engine. Currently, if you use AutoTheme, you have much better control over positioning and what displays when, custom templates, stylesheets, and colours. But all these are non-standard extensions.

    Martin :D

Go to page 1 - 2 [+1]:

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