Jump to content

Recommended Posts

I have a phpBB (who doesn't?) and I wanted to know if there was an equivalent of [code]<?php
include '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!!!
Link to comment
https://forums.phpfreaks.com/topic/14866-include-function-on-tpl-file/
Share on other sites

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.
  • 1 month later...
[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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.