I found a nice new theme. After Installing that theme I cant see the Admin-Messages anymore (but they are activated). Can somebody tell me what i have to put in theme.php to bring in the Admin-Messages?
thanks
red
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- 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
No Admin-Messages in theme
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Sep 07, 2002
- Posts: 4
ok talia, I found the Problem. :D
Edit yout theme.php file. just make sure that this funtion includes the $index variable.
function themeheader() {
global $user, $sitename, $index, $slogan, $cookie, $prefix;
Thats it.
cheers
red -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Sep 22, 2003
- Posts: 56
Thanks so much ... that works ... only one prob ... see how it looks?
http://www.taleria.net/index.php
It would be better if it was in a hanging box like the other news items ... any ideas on how to edit that? -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: May 11, 2004
- Posts: 3
I customised my theme from pnMods-green and that fix of yours was already there. The site is http://dev2.aymbrisbane.org/
Any Ideas?
Thanks,
James Cavanagh -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: May 11, 2004
- Posts: 3
I found my solution in a txt file that came with the 7.14 release of PN, in the file THEME_UPGRADES.TXT, it was point 7:
=========================================================
STEP 7: changes to themesidebox(). Admin messages are displayed using
themesidebox. Admin messages are essentially blocks without titles. So,
you first check to see if the block has a title. If not, it must be an Admin
message, so display it. Otherwise, it must be a real block, so just use
your usual themesidebox code:
function themesidebox($block) {
// If no title, then it must be an Admin message.
if (empty($block['title'])) {
echo "<font class="\"boxcontent\"">$block[content]";
}
else
{
[your old themesidebox code goes here]
}
}
========================================================= -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Jun 26, 2009
- Posts: 109
ok dont bother with that one it fucks ur site up big time ... it makes evrything act as if its ccollapsed ... and no option to view the menus .. +_ it doesnt fix the admin msgs
- Moderated by:
- Support
