I usualy use PHP code for such things directly in the templates.
For example you can do something like this:
<?php
global $user_info;
if ($this->val_cache['user_id'] == $user_info['user_id'])
{
echo " http://www.midominio.com/4images/".$this->val_cache['media_src'];
}
?>
In this example I used echo to output the needed text when condition is true (this way is faster
)
but you also can use php only for the condition:
<?php
global $user_info;
if ($this->val_cache['user_id'] == $user_info['user_id'])
{
?>
http://www.midominio.com/4images/{media_src}
<?php
}
?>
P.S. this method only works if EXEC_PHP_CODE is set to 1 in includes/constants.php
P.P.S. when using php in templates, array $this->val_cache can be used instead of tags