Hi there, I do hope someone can take a little time to assist me with a problem I cannot seem to resolve alone, despite hours on the internet and different forums… ;D
I am attempting to create buylinks for books to three affiliate sites: Amazon, Barnes and Noble and Smashwords. Barnes and Noble have an automated link generator, which does simplify things. For Amazon and Smashwords I have to add in my affiliate code.
My difficulty comes in with actually displaying the links. I need the following:
Author submits her book link via an online submission form
The output php adds the Amazon affiliate code
It displays as an image with the affiliate url embedded
The code I used previously, and which worked very well (prior to Joomla 3), used the following:
[embed=425,349]<?php
$value = $this->value;
$options = $this->params->get(‘params.open_url’, 1) ? ’ target="_blank"’ : ‘’;
echo JHtml:: link(‘http://’ . $value[0][‘url’].’?tag=romautjudrai-20’, “”, $options ) ;
?>[/embed]
I have attached the full field output file for reference
I’m sure this may be a simple request, but I am a total beginner and have worked hard to try to resolve this on my own. One suggestion has been to use a text field rather than a url field with a regex code, which I have tried, but the fields then just display as “array” on the article.
Oh, pretty please, can someone assist. I shall grovel in abject appreciation.
Many thanks,
Jude
amazon.txt (3.89 KB)