Jump to content

include function on .tpl file?


foreverhex

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
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.
Link to comment
Share on other sites

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() ?
Link to comment
Share on other sites

  • 1 month later...
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.