Hi i installed the latest OJS version
but i couldn’t write a simple echo php function in tpl !
and i dont know how can i do that ?!
My simple code is:
$description = $this->get_template_vars(‘description’);
$length =strlen($description);
$dtts = ($length>250)?’ …’:"";
echo nl2br(substr($description,0,280).$dtts);
in the last version i used like this in my tpl file
{php}
$description = $this->get_template_vars(‘description’);
$length =strlen($description);
$dtts = ($length>250)?’ …’:"";
echo nl2br(substr($description,0,280).$dtts);
{/php}
Thanks in advance