Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. 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 Messages
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Feb 18, 2003
- Posts: 24
How many different themes did you try?
Not all themes have the center block for the admin messages built in yet. Did you try all themes from the default PostNuke install? -
**unknown user**
- Rank: Expert
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 1193
olegk
Yes, you are right. I found more themes witch can show admin message with no problem, but I would like to use that specific one. Any idea how to fix it? Thanks.
You need to modify the themeheader() function in the theme.php in the directory under html/themes named for the theme. (ie - html/themes/PostNukeBlue for the PostNukeBlue theme.)
Look at a theme that does support the center blocks and compare it to the theme you want to use. You'll see something like this in the theme that supports center blocks (and Admin messages):
Code
Something similar needs to be added to the theme you're interested in. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Jun 26, 2009
- Posts: 109
OKOK.. heres what has to be done .. its the best fix ive fouund yet it works on evry theme ive tryed it onn sofar .. only one drawback im working onn ...
ok first you have to open up your theme.php found in the dir of your heme .. so lets say you were trying to fix the theme called 0rion (its jstu a popular theme .. im jsut using it as an ex.)
then open the file "\themes\0ri0n\theme.php"
find thsi ligne
Code
function themeheader
now .. find this
{[
}
function themefooter() {
[/code]
ok now jsut before that first '}' add this
Code
so it shoudl look SOMETHING liek this
Code
function themeheader() {
global $slogan;
echo "<body bgcolor=\"000000\" text=\"FFFFFF\" link=\"FFFFFF\" vlink=\"FFFFFF\">";
if ($banners) {
echo "<br>";
include("banners.php");
echo "<br>";
}
echo "<table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\"><tr><td bgcolor=\"000000\">"
."<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"000000\"><tr><td>"
."<a href=\"modules.php?op=modload&name=News&file=index\"><img src=\"themes/0ri0n/images/title.jpg\" Alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>"
."</td><td align=\"right\">"
."<form action=\"search.php\" method=\"post\">"
."<font class=\"content\">"._SEARCH.""
."<input type=\"text\" name=\"query\">"
."</font></form>"
."</td></tr></table></td></tr>"
."<tr><td valign=\"top\" bgcolor=\"000000\"> </td></tr>"
."<tr><td valign=\"top\" bgcolor=\"CC0000\" background=\"themes/0ri0n/images/barra.gif\"><font class=content>$slogan</font></td></tr>"
."<tr><td valign=\"top\" bgcolor=\"000000\"> </td></tr>"
."<tr><td valign=\"top\" width=\"100%\" bgcolor=\"000000\">"
."<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" bgcolor=\"000000\">";
blocks(left);
echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td> </td><td width=\"100%\" valign=\"top\">";
// If we have admin messages or blocks of 'centre' type, lets display them
if ($GLOBALS['index']) {
OpenTable();
echo '<div class="message-centre" width="800%">';
blocks('centre');
echo '</div>';
CloseTable();
}
}
function themefooter() {
global $index;
if ($index == 1) {
echo "</td><td> </td><td valign=\"top\" bgcolor=\"#000000\">";
blocks(right);
echo "</td>";
}
echo "</td></tr></table></td></tr></table>";
footmsg();
}
now all themes are different .. what matters is that
the part i asked you to add is inscide the 'themeheader' function at the veryend .. thats what ur doing when u add it before that '}'
that '}' is closing the 'themeheader' so that the function 'themefooter' can start .. make sure u add what i told u to add inscide the themeheader
now the drawback i found is that its width is fucked .. now with that i need help .. anyone?
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
