- Moderated by:
- Support Team
-
- rank:
-
Freshman
- registered:
- September 2003
- Status:
- offline
- last visit:
- 21.12.03
- Posts:
- 19
I'm sorry if this is a silly question.
I have been reading the theme design tips located here.
I (after being nearly completed) decided to rewrite the theme the proper way to save me some time in the future.
Here's the deal. I am working on using some of the existing code from a theme (extralite? i'm not really sure now), and the main theme file is theme.php. I want to write the theme in HTML, and inject PHP into it. The logical approach would be to save the file theme.html right? How do I tell PN to point to that file instead of the theme.php?
Thanks In Advance. -
- rank:
-
Professional
- registered:
- September 2003
- Status:
- offline
- last visit:
- 11.04.08
- Posts:
- 3055
itathomeinc, please use more specific topic subjects in the future...
Refer to the PostNukeBlue theme that came with your install. In the various sections of the theme.php, within the functions they refer to an .html file, which has PHP included in the same manner outlined in the post you referenced...
Code
include("themes/$GLOBALS[thename]/storybox.html");
Be sure to set $thename at the top of your theme (name of the directory your theme is under)
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info... -
- rank:
-
Professional
- registered:
- August 2002
- Status:
- offline
- last visit:
- 29.09.08
- Posts:
- 1383
Or, as nate points out in his other posts, just mix the HTML and PHP like so:
whatever
But to answer your question:
Quote
The logical approach would be to save the file theme.html right? How do I tell PN to point to that file instead of the theme.php?
No, keep the theme.php as theme.php, not theme.html. If you want to use mostly or all HTML with HTML files and have more power and control in your theme, check AutoTheme.
-Shawn
--
Get the Revolutionary AutoTheme HTML Theme System! Currently for PostNuke, PHP-Nuke, MD-Pro, CRE Loaded, osCommerce and Wordpress! -
- rank:
-
Freshman
- registered:
- September 2003
- Status:
- offline
- last visit:
- 21.12.03
- Posts:
- 19
After looking through the example theme.php..I understand now.
The file is a PHP file injected with HTML rather than the other way around. Ok gotcha.
Man this msg board is a great help
Kudos to everyone out here who help noobs like myself; your insight is priceless. Thanks again.
