Hi there - been off sick so now furiously playing catchup...
I'm using the following code to output a link from form input with an image
value;
$options = $this->params->get('params.open_url', 1) ? ' target="_blank"' : '';
echo JHtml:: link('http://' . $value[0]['url'], "
It's working well, but now I want to automatically add the affiliate code in the output, i.e. let's say the user inputs the link to their book on Amazon into the form. I need our affiliate code, in this case
/romautjudrai-20
to be added to the link so that when someone clicks on the image in the article display it will open the affiliate link to amazon.
I hope I've explained this properly. I would really appreciate your help.
Thank you
Hi there - been off sick so now furiously playing catchup...
I'm using the following code to output a link from form input with an image
value; $options = $this->params->get('params.open_url', 1) ? ' target="_blank"' : ''; echo JHtml:: link('http://' . $value[0]['url'], "It's working well, but now I want to automatically add the affiliate code in the output, i.e. let's say the user inputs the link to their book on Amazon into the form. I need our affiliate code, in this case
/romautjudrai-20
to be added to the link so that when someone clicks on the image in the article display it will open the affiliate link to amazon.
I hope I've explained this properly. I would really appreciate your help.
Thank you