posted
I don't even know where to start with this. I'm completely clueless about HTML, but I want to add a section to the standard book page that says 'Enjoy this? Try this!' and has a link and an image to another book. Most of the changes I make, to the site I do through and idiot-proof tool designed by the owners' son, but this it can't do.
I think this is the code for the product page template...
code:
<!-- Make sure that there are no open and closing <HTML> tags because this is wrapped by the store template file which already has those. --> <!-- Start productPageHTML.txt file --> <div align="center"> <center> <table border="0" cellpadding="5" cellspacing="0"> <tr> <td valign="top"> <p align="center"> <a href="pid_{product_id}.htm"> <IMG SRC="../../books/covers/{image}" BORDER="0" alt="{name}"><font face="ARIAL" size="3"><b><br> </b></font><font face="ARIAL" size="2">{name}<br> {price} </font></a></p> </td> </tr> </table> </center> </div> <!-- End productPageHTML.txt file -->
How would I make a 'recommended' thing come on the bottom?
Posts: 13758
| IP: Logged
<!-- Make sure that there are no open and closing <HTML> tags because this is wrapped by the store template file which already has those. --> <!-- Start productPageHTML.txt file --> <div align="center"> <center> <table border="0" cellpadding="5" cellspacing="0"> <tr> <td valign="top"> <p align="center"> <a href="pid_{product_id}.htm"> <IMG SRC="../../books/covers/{image}" BORDER="0" alt="{name}"><font face="ARIAL" size="3"><b><br> </b></font><font face="ARIAL" size="2">{name}<br> {price} </font></a></p> </td> </tr>
*** ADD THIS PART THORN YOU IDIOT <tr> <td> <a href=''>Enjoy this? Try this!</a> <br> <IMG SRC="../../books/covers/{image}" BORDER="0" alt="{name}"> </td> </tr> *** END OF ADD THIS PART THORN YOU IDIOT
</table> </center> </div> <!-- End productPageHTML.txt file -->
quote:Originally posted by MiscellaneousFiles: Looks like you've got a missing image on *this page. You should probably fix that...
eh? where?
The January-June 2009 image is linking to a local file - file:///O:/Marketing%20&%20PR/cat09.jpg rather than your server. I'm sure it works in your office, but anyone elsewhere will see this:
ETA: In fact, looking at the source, there are loads of links to:
quote:Originally posted by Thorn Davis: I tried something else. Does it work now?
The image shows now and the PDF opens fine, but it looks like you've got a spurious table row beneath the image and before the text link, so there's a big space there. I don't know if that's intentional though. Doesn't look right if it is.
posted
For the first time in literally years I didn't drink or smoke anything last night. So don't worry if you can't keep pace Dang, I'm on fucking fire today.
Posts: 14015
| IP: Logged
quote:Originally posted by MiscellaneousFiles: For the first time in literally years I didn't drink or smoke anything last night. So don't worry if you can't keep pace Dang, I'm on fucking fire today.
You are, but I don't think your fix will solve the problem. I'm suggesting that whole row needs to go. The anchor tag in that row doesn't do anything (it's empty). The image link is in the previous row, and the text link is in the next row.
posted
It's about to get better! I've opened the html file in Dreamweaver and sort of spannered about with it without really understanding things. About to upload now, so fans of total fuck up should get their fingers on the 'refresh' button!
Posts: 13758
| IP: Logged
posted
That's dang's code that's not working now. Although I may have not implemented it properly. Going back into the crummy editor thing now to see if I can fuck things up from that end too.
Posts: 13758
| IP: Logged
quote:Originally posted by Thorn Davis: That's dang's code that's not working now. Although I may have not implemented it properly.
Yeah, what you've done is to delete the good rows (with the image and text links) and leave the row which I said needs to be deleted. Still, it's progress of sorts.
Posts: 8467
| IP: Logged
posted
Fucking hell Thorn this is a shambles. When they asked you what web development you've done did you tell them your sister had a MySpace page or something? Jesus! Stop playing with code. You could erase the whole internet.
quote:Originally posted by New Way Of Decay: Fucking hell Thorn this is a shambles. When they asked you what web development you've done did you tell them your sister had a MySpace page or something? Jesus! Stop playing with code. You could erase the whole internet.
It's not my fault - I was happy with the big gap because I knew if I tried to get it - you know - perfect, then this would happen.
Posts: 13758
| IP: Logged
Maybe this should be a friday afternoon regular, where people give me pieces of HTML code and I implement them on a live site with no idea what they do or where to put them.
Posts: 13758
| IP: Logged
quote:Originally posted by Black Mask: There's a lot of jew books on that website...
I'd have thought you'd be more interested in 'A Beginner's Guide to Bioterror and Biowarfare'. Except it's not educational in the way you might wish.
Posts: 13758
| IP: Logged