| Author |
Message |
focus
Beginner


Joined: Nov 30, 2004 Posts: 1
|
Posted: Tue Nov 30, 2004 10:13 am Post subject: How to change AMAZON blck content? |
|
|
Hi!
Im trying to replace the images in AMAZON block with my own, and i wish them to cycle like they do in default AMAZON block. I know how to replace them, but i dont know how to remove the links to the Amazon.com site.
I found this code in blocks/amazon.php:
$content = "<br><center><a href=\"http://www.amazon.com/exec/obidos/ASIN/$asin[0]/$amazon_id\" target=\"_blank\">";
$content .= "<img src=\"images/amazon/$image\" border=\"0\" alt=\"\"><br><br></center>";
I tried to replace the www.amazon.com/exec/obidos/ASIN/$asin[0]/$amazon_id link with my own but it seems like the whole right side of block would dissapeare...what am i doing wrong here. As you see i'm a php noob, so dont laugh to my question! |
|
| Back to top |
|
|
AdBot
|
| Post subject: How to change AMAZON blck content? |
|
|
|
|
|
| Back to top |
|
 |
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Tue Nov 30, 2004 1:04 pm Post subject: Re: How to change AMAZON blck content? |
|
|
To LINK ALL images to one place, just replace this:
$content = "<br><center><a href=\"http://www.amazon.com/exec/obidos/ASIN/$asin[0]/$amazon_id\" target=\"_blank\">";
with:
$content = "<br><center><a href=\"http://www.YOURSITE.com/YOURLINK.html\" target=\"_blank\">"; _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Tue Nov 30, 2004 1:06 pm Post subject: Re: How to change AMAZON blck content? |
|
|
I'm guessing it crashed your site because you left this bit in previously:
$amazon_id\" target=\"_blank\">"; _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
|
|
|
|
|