foreverhex Posted July 17, 2006 Share Posted July 17, 2006 I have a phpBB (who doesn't?) and I wanted to know if there was an equivalent of [code]<?phpinclude 'file.php'; ?>[/code] for a .tpl file? I tried [code]{include file="file.php"}[/code] but that didn’t seem to work. Is there a certain spot I need to put the code?P.S. I tryed asking ppl at phpBB and there hasn't been one reply in a day!!! Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted July 17, 2006 Share Posted July 17, 2006 If you want to include a file within a phpBB Template file then this will require a mod for phpBB to beable to do what you are trying to do. The best possible way is to asking the MOD team over at phpBB.com for such a mod. Also I'm moving this thread to the third party PHP scripts forum. Quote Link to comment Share on other sites More sharing options...
redarrow Posted July 17, 2006 Share Posted July 17, 2006 try this ok <?php$file_name="file.php";include '$file_name'; ?> Quote Link to comment Share on other sites More sharing options...
foreverhex Posted July 17, 2006 Author Share Posted July 17, 2006 Fair enough. Also I dont think just normal php will work in the tpl file. Quote Link to comment Share on other sites More sharing options...
Gast Posted July 17, 2006 Share Posted July 17, 2006 I didnt think phpBB uses a Smarty like template system. You wont be able to do that in phpBB. How about adding another template "variable" such as {MY_NEW_PAGE} and then replace this with the connts of a page using file_get_contents() ? Quote Link to comment Share on other sites More sharing options...
ndebellas Posted September 14, 2006 Share Posted September 14, 2006 [quote author=Gast link=topic=100904.msg398839#msg398839 date=1153161115]How about adding another template "variable" such as {MY_NEW_PAGE} and then replace this with the connts of a page using file_get_contents() ?[/quote]this worked for me. Good call. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.