Hi there, I'm utterly desperate (being a total novice at all things php) and am hoping someone can assist. In brief, I have a submission form. User adds url. Output should then display as an image link with the amazon affiliate code. In my template I have the following (which I used previously, but which doesn't seem to work now for some odd reason):
<?php
$value = $this->value;
$options = $this->params->get('params.open_url', 1) ? ' target="_blank"' : '';
echo JHtml::link('http://' .$value[0]['url'].'?tag=romautjudrai-20', "<img src='".JURI::root()."images/library/amazon.png'>", $options ) ;
?>
The only thing different is that I am now using Joomla 3, so perhaps that has something to do with it. Cannot think of anything else, and I have run this through 3 different php checkers which all returned no errors. I've also scoured the internet with no resolution. I've been at it for 2 weeks now, and I'm just not getting anywhere. I would be most grateful if someone can assist.
Thanks,
Jude