Katrina
Member
Posted 4 years ago #
I installed WP amazon and it's working out great, except I want the script to output the html like this:
<table>
<tr>
<td><img src="IMAGE URL/></td>
<th> </th>
<td><b>Currently Reading</b><br><a href="Product URL">PRODUCT NAME</a><br>By AUTHOR</td></tr></table>
does anyone know how to hack into the plugin core?
Katrina
Member
Posted 4 years ago #
It doesn't have to put the name of the author
(I got this from XANGA)
rmanalan
Member
Posted 4 years ago #
At some point, I'll make this configurable, but for now you can hack the wp-amazon.php file... look for a javascript function called generateHTMLCode:
function generateHTMLCode(format,prodname,url,imgurl) {
if (format=='link') {
html = ''+prodname+'';
} else {
html = '<img src="'+imgurl+'" alt="'+prodname+'" />';
}
htmlCode = document.getElementById("htmlcode")
htmlCode.value = html;
}
Rich