Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reflections On Images Like Apple.com website like iTunes


Guest

Recommended Posts

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]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Tim,

Try removing that < on line 12.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

 

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

Link to comment
Share on other sites

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

Outside links in signatures are not allowed!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Outside links in signatures are not allowed!

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
  • 1 month later...
  • 2 weeks later...

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 7 months later...
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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...