You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 63 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Header as template, with php tags not working [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Tim
Private
Private


Joined: Feb 09, 2003
Posts: 48

Location: Hegelsom, The Netherlands

PostPosted: Sun Apr 27, 2003 7:13 am Reply with quoteBack to top

Why doesn't the php code work in a template html file?
(I use a modified version of the FiApple theme)
Here's the code that calls the template:
Code:
$tmpl_file = "themes/AI/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;


Can't I use <?php ?> code then?
Find all posts by TimView user's profileSend private messageSend e-mailVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sun Apr 27, 2003 7:16 am Reply with quoteBack to top

Edited by Raven - Removed because I misread the code. Sorry!

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff

Last edited by Raven on Sun Apr 27, 2003 7:33 am; edited 1 time in total
Find all posts by RavenView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Apr 27, 2003 7:31 am Reply with quoteBack to top

actually, it's because the only file type that you can run php script in by default is .php or possibly .php3 if ur host has enabled it.

It requres mods to the apache setup to parse .html files through the PHP module too

AI
Find all posts by ArtificialIntelView user's profileSend private message
Tim
Private
Private


Joined: Feb 09, 2003
Posts: 48

Location: Hegelsom, The Netherlands

PostPosted: Sun Apr 27, 2003 8:35 am Reply with quoteBack to top

ah.. thx
so would it help to let the templates be .php files?
Find all posts by TimView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.188 Seconds - 177 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::