Guest Posted September 17, 2006 Share Posted September 17, 2006 Have you seen reflections on all images on apple.com? Do you wan that? Simple now example on http://www.e-xcessories.com Download from http://www.oscommerce.com/community/contributions,4540 Upload reflection.js and include them into your webpage. Add this into Header.php <script type="text/javascript" src="reflection.js"></script> Now Add this into html_output.php inside functions To add a reflection just add a class="reflect" to the image. 1.Find tep_image function now Find $image = '<img src="product_thumb.php?img='.$src.'&w='. tep_output_string($width).'&h='.tep_output_string($height).'"'; e.g Now replace with $image = '<img class="reflect" src="product_thumb.php?img='.$src.'&w='. tep_output_string($width).'&h='.tep_output_string($height).'"'; If you like this email me at [email protected] Quote Link to comment Share on other sites More sharing options...
Guest Posted September 17, 2006 Share Posted September 17, 2006 Have you seen reflections on all images on apple.com? Do you wan that? Simple now example on http://www.e-xcessories.com Download from http://www.oscommerce.com/community/contributions,4540 Upload reflection.js and include them into your webpage. Add this into Header.php <script type="text/javascript" src="reflection.js"></script> Now Add this into html_output.php inside functions To add a reflection just add a class="reflect" to the image. 1.Find tep_image function now Find $image = '<img src="product_thumb.php?img='.$src.'&w='. tep_output_string($width).'&h='.tep_output_string($height).'"'; e.g Now replace with $image = '<img class="reflect" src="product_thumb.php?img='.$src.'&w='. tep_output_string($width).'&h='.tep_output_string($height).'"'; If you like this email me at [email protected] Hi i have emailed earlier and now posting here as asked by you what am i doing wrong ??? i get this Parse error: parse error, unexpected '<' in /home/sites/simplysensuous.co.uk/public_html/includes/header.php on line 12 any ideas ? Tim Quote Link to comment Share on other sites More sharing options...
Jamez Posted September 17, 2006 Share Posted September 17, 2006 Hi i have emailed earlier and now posting here as asked by youwhat am i doing wrong ??? i get this Parse error: parse error, unexpected '<' in /home/sites/simplysensuous.co.uk/public_html/includes/header.php on line 12 any ideas ? Tim Tim, Try removing that < on line 12. Quote Link to comment Share on other sites More sharing options...
Guest Posted September 17, 2006 Share Posted September 17, 2006 Hi yes tried that first i femovewd the first < got this Parse error: parse error, unexpected T_STRING in /home/sites/simplysensuous.co.uk/public_html/includes/header.php on line 13 then the second < got same as before ??? Tim Quote Link to comment Share on other sites More sharing options...
Guest Posted September 18, 2006 Share Posted September 18, 2006 Hi yes tried that first i femovewd the first < got thisParse error: parse error, unexpected T_STRING in /home/sites/simplysensuous.co.uk/public_html/includes/header.php on line 13 then the second < got same as before ??? Tim Tim you need to put that script into html code only dont put inside the php code if possible give me full code of header.php file then i can check wheres the problem From: Harinder www.e-xcessories.com Quote Link to comment Share on other sites More sharing options...
Tomcat Posted September 18, 2006 Share Posted September 18, 2006 Hi, I've installed the contribution and works very well: check this italian emerald ring Thanks Kahlon Quote Outside links in signatures are not allowed! Link to comment Share on other sites More sharing options...
AWWWW.WAHWAH Posted September 18, 2006 Share Posted September 18, 2006 I am using MoPics http://www.oscommerce.com/community/contri...l/search,mopics v3.00 can you adjust so it will work with this contrib? Quote Link to comment Share on other sites More sharing options...
Tomcat Posted September 18, 2006 Share Posted September 18, 2006 I am using MoPics http://www.oscommerce.com/community/contri...l/search,mopics v3.00 can you adjust so it will work with this contrib? Whatever you use there will be a tep_image_ function, change the $image bit accordingly to have the reflection js installed. I use mopics too by the way Quote Outside links in signatures are not allowed! Link to comment Share on other sites More sharing options...
AWWWW.WAHWAH Posted September 18, 2006 Share Posted September 18, 2006 I could not find it, can you post the appropiate change here please? Quote Link to comment Share on other sites More sharing options...
Guest Posted September 18, 2006 Share Posted September 18, 2006 Hi, I've installed the contribution and works very well: check this italian emerald ring Thanks Kahlon Hi tmocat i chedk ur website not all products haveing reflection on images? or you put only on single image? Quote Link to comment Share on other sites More sharing options...
boxtel Posted September 18, 2006 Share Posted September 18, 2006 Hi, I've installed the contribution and works very well: check this italian emerald ring Thanks Kahlon hope you realize that in IE those images are no longer links. Quote Treasurer MFC Link to comment Share on other sites More sharing options...
Guest Posted September 18, 2006 Share Posted September 18, 2006 Tim you need to put that script into html code only dont put inside the php code if possible give me full code of header.php file then i can check wheres the problem From: Harinder www.e-xcessories.com Thanks Singh i have sent you a private message Tim Quote Link to comment Share on other sites More sharing options...
Guest Posted September 19, 2006 Share Posted September 19, 2006 hope you realize that in IE those images are no longer links. its correct well i'll work on it so images can be link Quote Link to comment Share on other sites More sharing options...
Guest Posted September 19, 2006 Share Posted September 19, 2006 I have correct the script now on IE link on images is working fine please upload new JS file and test it thanks for feedback From: Harinder www.e-xcessories.com Quote Link to comment Share on other sites More sharing options...
Tomcat Posted September 19, 2006 Share Posted September 19, 2006 Hi tmocat i chedk ur website not all products haveing reflection on images? or you put only on single image? I have different tep_imafe functions for different purposes Quote Outside links in signatures are not allowed! Link to comment Share on other sites More sharing options...
BigLarry Posted September 29, 2006 Share Posted September 29, 2006 Hi, I'm using this with STS and including the <script type="text/javascript" src="reflection.js"></script> into the header.php file doesn't seem to show within the code of the page. Does anyone know how to get this working with STS. Thanks, Larry Quote Link to comment Share on other sites More sharing options...
AWWWW.WAHWAH Posted October 19, 2006 Share Posted October 19, 2006 Whatever you use there will be a tep_image_ function, change the $image bit accordingly to have the reflection js installed. I use mopics too by the way I could not find it, can you post the appropiate change here please? Quote Link to comment Share on other sites More sharing options...
oscommercenewbie Posted January 16, 2007 Share Posted January 16, 2007 Anyone know how to make the reflection work for the large popup image on product_info.php? Love this - just a couple minutes work makes the images really stand out! Quote Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2007 Share Posted March 9, 2007 how did you set your reflections to a fixed height of 145 px? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2007 Share Posted March 9, 2007 right now mine is creating a matting approx 500px in height Quote Link to comment Share on other sites More sharing options...
gamefuse Posted March 18, 2007 Share Posted March 18, 2007 Hi firstly great contribution, I can get it to work fine only problem is it seems to reflect almost every image on my website. I have all my product images in a seperate folder, eg images/products/{category}/{image.jpg} how can i make it so the reflection is just for my product images and not all the images on my site like the heading and borders etc. thanks Quote Link to comment Share on other sites More sharing options...
peter888 Posted March 25, 2007 Share Posted March 25, 2007 During the installation, I can not find the following code in includes/functions/html_output.php: $image = '<img src="product_thumb.php?img='.$src.'&w='. tep_output_string($width).'&h='.tep_output_string($height).'"'; also, under the functions folder, can not see the product_thumb.php file Thanks for help Quote Link to comment Share on other sites More sharing options...
peter888 Posted March 25, 2007 Share Posted March 25, 2007 Hi, friends, I just tried to install the contribution, but it does not work. the following steps I did. Did I have something wrong. After I installed, Nothing happened. Looks the same like before. --------------------------------------------------------------------------------------------------------- 1): added this: <script type="text/javascript" src="reflection.js"></script> to hearder.php 2): uploaded the reflection.js to /catalog/includes/ folder 3):replaced $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; with: $image = '<img class="reflect" src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; in the /catalog/includes/functions/html_output.php file, by the way, my html_output.php file used Automatic Thumbnail(contribution 1484). ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Anyone can help me asap? Thanks. Quote Link to comment Share on other sites More sharing options...
gdgdgd Posted October 31, 2007 Share Posted October 31, 2007 Hi, friends, I just tried to install the contribution, but it does not work. the following steps I did. Did I have something wrong. After I installed, Nothing happened. Looks the same like before. --------------------------------------------------------------------------------------------------------- 1): added this: <script type="text/javascript" src="reflection.js"></script> to hearder.php 2): uploaded the reflection.js to /catalog/includes/ folder 3):replaced $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; with: $image = '<img class="reflect" src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; in the /catalog/includes/functions/html_output.php file, by the way, my html_output.php file used Automatic Thumbnail(contribution 1484). ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Anyone can help me asap? Thanks. Hey. I have exactly the same problem, did you ever find out what the problem was? Thanks. Quote Link to comment Share on other sites More sharing options...
hafi Posted November 4, 2007 Share Posted November 4, 2007 hi all, any kind experts can advise where can I add this code: class="reflect" onto html_output.php? I also do not have this product_thumb.php file which I believe is from some contributions. Any kind help is appreciated, thanks. Quote Link to comment Share on other sites More sharing options...
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.