WordPress.org

Ready to get started?Download WordPress

Forums

trouble with WP-Amazon (3 posts)

  1. Katrina
    Member
    Posted 9 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>&nbsp;</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?

  2. Katrina
    Member
    Posted 9 years ago #

    It doesn't have to put the name of the author

    (I got this from XANGA)

  3. rmanalan
    Member
    Posted 8 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

Topic Closed

This topic has been closed to new replies.

About this Topic