Quote:
Originally Posted by zurih
is it possible to make "modifytimeslip" template to be recognized as an individual? I want to make an if condition with define('THIS_SCRIPT', 'xxxx');
how can I do this with modifytimeslip?
thanks
|
I think you could do it like this:
in profile.php find:
Code:
define('THIS_SCRIPT', 'profile');
Replace it with:
Code:
if ($_REQUEST['do'] == 'edittimeslip')
{
define('THIS_SCRIPT', 'modifytimeslip');
}
else
{
define('THIS_SCRIPT', 'profile');
}
If that doesn't work you could try something like this in your template conditional:
Code:
<if condition="$templatename == 'modifytimeslip'">
I haven't tried either of those but I think it'll work.