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?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mdee responded to »Short URL questions« 12:02 AM
- mesteele101 responded to »Problem in Database Connection« 21. May
- mesteele101 created topic »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 20. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
- mesteele101 responded to »How to install Zikula for MSSQL ??? - Part II« 19. May
- mesteele101 created topic »File packaging« 16. 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
Admin Message Where it doesn't belong
-
- Rank: Expert
- Registered: Mar 11, 2003
- Last visit: Oct 21, 2009
- Posts: 1104
-
- Rank: Expert
- Registered: Mar 11, 2003
- Last visit: Oct 21, 2009
- Posts: 1104
-
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
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 -
- Rank: Expert
- Registered: Mar 11, 2003
- Last visit: Oct 21, 2009
- Posts: 1104
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. -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
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 -
- Rank: Expert
- Registered: Mar 11, 2003
- Last visit: Oct 21, 2009
- Posts: 1104
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... -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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. -
- Rank: Expert
- Registered: Mar 11, 2003
- Last visit: Oct 21, 2009
- Posts: 1104
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 -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
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 -
- Rank: Expert
- Registered: Mar 11, 2003
- Last visit: Oct 21, 2009
- Posts: 1104
-
- Rank: Expert
- Registered: Mar 11, 2003
- Last visit: Oct 21, 2009
- Posts: 1104
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. -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
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 -
- Rank: Expert
- Registered: Mar 11, 2003
- Last visit: Oct 21, 2009
- Posts: 1104
Hey H-squared! Since we haven't heard from Mark, I'm guessing the answer is there is no answer. -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 676
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
- Moderated by:
- Support
