- Moderated by:
- Support Team
-
- rank:
-
Softmore
- registered:
- August 2004
- Status:
- offline
- last visit:
- 17.06.05
- Posts:
- 54
After upgrading to 7.5 and getting Xanthia running, I now have a problem. I had modified the PostNuke theme for the website. The Xanthia PostNuke theme is completely different. I basically just want to change the header to replace what is there with this:
Code
echo "</head>\n" . "<body>\n" . "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n" . "<tr>\n" . "<td valign=\"top\">\n" . "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$GLOBALS[bgcolor1]\" width=\"100%\">\n" . "<tr>\n" . "<td align=\"left\" valign=\"middle\">\n" . "<table width=\"975\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n" . "<tr>\n" . "<td class=\"pn-title\" valign=\"top\" align=\"left\">\n" . "<a class=\"pn-logo\" href=\"index.php\"><td><img src=\"images/header/header8_left.gif\" border=\"0\"></td><td><img src=\"images/header/header8_center.gif\" border=\"0\"></td><td><img src=\"images/header/header8_right.gif\" border=\"0\"></td></a></td><br>\n";
Any changes I make to the code in the theme.php header section just don't work. The graphics show, but so does everything else. How do I change this? -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- offline
- last visit:
- 09.11.08
- Posts:
- 13413
You want to change home.htm, master.htm user.htm and admin.htm in themes/PostNuke/pntemplates (it's very easy, just HTML now)
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
- rank:
-
Softmore
- registered:
- August 2004
- Status:
- offline
- last visit:
- 17.06.05
- Posts:
- 54
There are no user.htm or admin.htm files in the /pntemplates folder. In fact, the folder is just /templates. I changed the master.htm but that did nothing. The home.htm is actually in /templates/modules. I changed that, too, but there was no effect on the page. I cannot locate the admin.htm or user.htm files. They are in none of the subdirectories under PostNuke. In fact, none of the themes have those two files. -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
For all the themes supplied with .750 you have two page templates. Master.htm is the template used for all pages except the home page. Home.htm (in the modules directory because *home is a dummy module) is used for the home page. User.htm and admin.htm will only exist if the dummy *user and *admin modules are defined in the theme (see the xanthia admin panel) which, by default, they're not.
In order for changes in these templates to be reflected in the theme output we need to take a quick look at your xanthia configuration. Firstly make sure that you've 'check for updated templates' checked otherwise no changes you make with be shown at all - ever!
If you've opted (or left by default) storing of templates in the database enabled then you won't see changes reflected until to reload the template. Do this from the templates menu for the theme in the xanthia admin panel.
A recommend configuration for xanthia while working on themes is check for updated templates on and store templates in database off. This is the quickest development environment (note: the online editing of templates via the xanthia admin won't work here since this edits the templates in the database).
This isn't the best configuration for performance so when you've finished make sure to turn off the check for updated templates. Storing the templates in the database or not is up to you as there's very little performance difference one way or the other since it's only on the first template access (when the template is compiled) that the database is used - I personally don't since I never use the online editing feature.
For performance definately don't check the force compile of templates - you shouldn't need this option and it's a performance killer.
-Mark -
- rank:
-
Softmore
- registered:
- August 2004
- Status:
- offline
- last visit:
- 17.06.05
- Posts:
- 54
Thanks. That was the key. I finally was able to get the changes to work. Where can I edit the colors of the theme? I prefer to just put in my own hex values. It is a lot faster than the Xanthia java module and since I already know the colors, would be a lot simpler for me to do.
Thanks.
