| |





August 2008
| M |
T |
W |
T |
F |
S |
S | |
« May |
«-» |
|
| | 1 | 2 | 3 |
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |

|
|
Here’s a unique code line that I’ve discovered while fooling around with Phpbb.
$template->set_filenames(array('newfile' => 'newfile.tpl'));
$template->assign_var_from_handle('PASTEFILE', 'newfile');
This coding was found while I was editing Function_Post.php inside the Includes
folder. Apparently, the script actually calls out another template (eg: SIDEBAR.tpl
) onto a main template( eg: INDEX_BODY.tpl).
You might be lost right now… and be worried cause I’m not explaining.
For those who know how to modify PhpBB internal organs, this code will be a great
help for your future phpBB Mods projects. Oh and before I end this, paste this
onto the template where you want newfile.tpl to appear.
{PASTEFILE}
Enjoy! |
Leave a Reply
|
|