Judah Raine
Total posts: 332
01 Dec 2012 05:56

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

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
05 Dec 2012 23:22
fields_by_id[11]->result): ?> fields_by_id[11]->result; ?>

Judah Raine
Total posts: 332
05 Dec 2012 23:37

:D:D:D:D:D:D Thank you so much!!!

Powered by Cobalt