Guest Posted October 23, 2008 Posted October 23, 2008 (edited) Sorry, I've put this in wrong forum. Can admin please move. :blush: I've managed to apply borders around all of my product images using the tip in this thread, however they don't appear in my product's page as I'm using J Query Lightbox. I'm assuming something needs to be done in prettyPhoto.css but I've tried applying a style and that doesn't work. The border really makes a tremendous difference in the way my pages look. Here's prettyPhoto.css, any ideas on how I can do this? Thank you, any help appreciated very much. Also, I don't care if the borders appears on the enlarged pics, I just want pic borders on the product's info page. /* ------------------------------------------------------------------------ This you can edit. ------------------------------------------------------------------------- */ div.pictureHolder .top .left { background: url(../images/prettyPhoto/tl.gif) top left no-repeat;} /* Top left corner */ div.pictureHolder .top .middle { background: #fff; } /* Top pattern/color */ div.pictureHolder .top .right { background: url(../images/prettyPhoto/tr.gif) top left no-repeat; } /* Top right corner */ div.pictureHolder .content a.next:hover { background: url(../images/prettyPhoto/btnNext.gif) center right no-repeat; cursor: pointer;outline:none; } /* Next button */ div.pictureHolder .content a.previous:hover { background: url(../images/prettyPhoto/btnPrevious.gif) center left no-repeat; cursor: pointer;outline:none; } /* Previous button */ div.pictureHolder .content a.close { width: 100px; height: 26px; background: url(../images/prettyPhoto/btnClose.gif) no-repeat; cursor: pointer;outline:none; } /* Close button */ div.pictureHolder .bottom .left { background: url(../images/prettyPhoto/bl.gif) top left no-repeat; } /* Bottom left corner */ div.pictureHolder .bottom .middle { background: #fff; } /* Bottom pattern/color */ div.pictureHolder .bottom .right { background: url(../images/prettyPhoto/br.gif) top left no-repeat; } /* Bottom right corner */ div.pictureHolder .loaderIcon { background: url(../images/prettyPhoto/loader.gif) top left no-repeat; } /* Loader icon */ /* ------------------------------------------------------------------------ DO NOT CHANGE ------------------------------------------------------------------------- */ div.prettyPhotoOverlay { background: #000; position: absolute; top: 0; left: 0; z-index: 1; width: 100%; } div.pictureHolder { position: absolute; z-index: 2; top: 50%; left: 50%; width: 100px; } div.pictureHolder .top { position: relative; height: 20px; } * html div.pictureHolder .top { padding: 0 20px; } div.pictureHolder .top .left { position: absolute; left: 0; width: 20px; height: 20px; } div.pictureHolder .top .middle { position: absolute; left: 20px; right: 20px; height: 20px; } * html div.pictureHolder .top .middle { position: static; } div.pictureHolder .top .right { position: absolute; top: 0; left: auto; right: 0; width: 20px; height: 20px; } div.pictureHolder .content { position: relative; background-color: #fff; text-align: left; width: 100%; height: 40px; } div.pictureHolder .content .details { display: none; margin: 15px 15px 0 20px; } div.pictureHolder .content .details p { float: left; clear: left; margin: 0; } div.pictureHolder .content div.hoverContainer { position: absolute; z-index: 2000; top: 0; left: 0; width: 100%; } div.pictureHolder .content a.next { position: relative; z-index: 2000; display: block; float: right; text-indent: -10000px; width: 49%; height: 100%; background: url(../images/en/buttons/btnNext.gif) 10000px 50% no-repeat; /* Need to be defined that way to fix an IE bug */ outline:none; } div.pictureHolder .content a.previous { cursor: pointer; display: block; text-indent: -10000px; width: 49%; height: 100%; background: url(../images/en/buttons/btnPrevious.gif) -10000px 50% no-repeat; /* Need to be defined that way to fix an IE bug */ outline:none; } div.pictureHolder .content a.close { float: right; display: block; text-indent: -10000px; outline:none; } div.pictureHolder .bottom { position: relative; height: 20px; } * html div.pictureHolder .bottom { padding: 0 20px; } div.pictureHolder .bottom .left { position: absolute; left: 0; width: 20px; height: 20px; } div.pictureHolder .bottom .middle { position: absolute; left: 20px; right: 20px; height: 20px; } * html div.pictureHolder .bottom .middle { position: static; } div.pictureHolder .bottom .right { position: absolute; top: 0; left: auto; right: 0; width: 20px; height: 20px; } div.pictureHolder .loaderIcon { display: none; position: absolute; top: 50%; left: 50%; margin: -16px 0 0 -16px; width: 32px; height: 32px; } div.pictureHolder #fullResImage { display: block; margin: 0 auto; } Edited October 23, 2008 by charinlasvegas Quote
Guest Posted October 23, 2008 Posted October 23, 2008 Actually, I've managed to do this :) I must be learning something! So this is how I did it in case anyone else would like to add borders (this is just the part for adding to J Query Lightbox photos, the earlier post will add them to your other product pics): Following the thread mentioned in my 1st post, I created: .fotgal {border:1px; border-thickness: 1px; border-color: #46484b; border-style: solid;} and added that to Prettyphoto.css In Product_Info.php around line 118 find: <!-- Light Box J Query with ultra Pics 2.08 Add on BOF --> <?php $small_image = $product_info['products_image']; $popup_image = $product_info['products_image_med']; if ($popup_image == '') $popup_image = $small_image; echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $popup_image) . '" target="_blank" rel="prettyOverlay[gallery]" title="' . $product_info['products_name'] . '">' . tep_image(DIR_WS_IMAGES . $small_image, $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1" [b]class="fotgal"[/b]') . '<br/>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?> <!-- Light Box J Query with ultra Pics 2.08 Add on BOF --> add the bolded class to it as shown. Next, go to additional_images.php You have several instances of the following: <td align="center" class="smallText"> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_1']) . '" rel="prettyOverlay[gallery]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1" [b]class="fotgal"[/b]') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?> </td> Add the bolded class to it as shown for each one. That's it. Please back up your files, this worked for me but I am by no stretch of the imagination a programmer and I can't even believe I did this. (very proud of meself though) Quote
FIMBLE Posted November 14, 2008 Posted November 14, 2008 Hiya, I will look at this and may, if you dont mind include it with the next update? With the credit to you of course ;-) Nic Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted November 14, 2008 Posted November 14, 2008 Hiya, I will look at this and may, if you dont mind include it with the next update? With the credit to you of course ;-) Nic Hi Fimble, you can see it on my shop here & if you do happen to pass that way, I have installed the update but am having a problem with the pics in IE. When clicking enlarge pic, it's all the way at the top of the page. Maybe you can take a peek & give me an idea of what to do to fix it? Quote
FIMBLE Posted November 14, 2008 Posted November 14, 2008 Yes the postition is fixed due to a problem in IE! I have to say aside i love your site, its a cracking example of what you can do with keeping the 3 columns :-) Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted November 14, 2008 Posted November 14, 2008 Yes the postition is fixed due to a problem in IE!I have to say aside i love your site, its a cracking example of what you can do with keeping the 3 columns :-) Oh thank you! Still lots of work to be done. "Yes the postition is fixed due to a problem in IE!" So, there's nothing to be done for it :( Gosh, I hate IE. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.