But if i have it in an include it doesn't help because then i need how to bind a $variable = "includefile". And i cant get that to work.
So that you understands.
---------template.tpl--------
I have a template(.tpl-file) with the design and in one place in that template i have written {CONTENT}, who is a call for a variable named content.
---------Index.php-----
In this file i includes the template with some special variables and then i binds the variable $CONTENT = '//all the text on this site".
So that is how my site works, but now to the problem. Somewhere on this site i want this code:
<?php if( $userdata['session_logged_in'] )
{
include('status.php');
}
else
{
include($phpbb_root_path . 'includes/home.'.$phpEx);
}
?>
1st: i can't put it in the template
2nd: I can't put it in the CONTENT-variable, it wont accept the code.
3rd. I have to make this code to a variable so that i can call for it from the template(otherwise the code will be placed in the wrong place)
Do you understand?