Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Dynamic MoPics v2.2


dreamscape

Recommended Posts

Bingo! That was the problem Dreamscape. Thanks for your help :)

No problem Mike... you're about the 4th or 5th one to have this problem... gues sin future releases I will have to swtich back to $HTTP_GET_VARS instead of $_GET

The only thing necessary for evil to flourish is for good men to do nothing

- Edmund Burke

Link to comment
Share on other sites

  • 1 month later...
  • Replies 81
  • Created
  • Last Reply

Top Posters In This Topic

Dreamscape,

 

please do not beat me, but I#ve got a problem which I can't solve... :blink:

 

I've installed dynamic mopics 2.2 successfully in the past (earlier in this thread) at http://www.fetishteam.com/catalog/product_.../products_id/29

 

Now on a new server I've done the same thing but the pop ups won't show... I don't know what to to else....

 

http://web1.cserver11.erfurt14.de/catalog/.../products_id/29

 

All seem to be the same thing, but those big images won't show...

 

The link shows to catalog/images/ instead of catalog/images/big-images...

 

 

These are the entries in the admin area:

Name

Big Images Directory big_images/

Thumbnail Images Directory thumbs/

Main Thumbnail In Thumb Directory false

Number of Pics per Row 4

Mo Pics Extension

Main Big Pic Extension

Mo Pics Thumbnail Image Type jpg

Mo Pics Big Image Type jpg

 

And this is my popup_image

 

<?php
$thumb_len = ((MAIN_THUMB_IN_SUBDIR == 'true') ? strlen(IN_IMAGE_THUMBS) : 0);
$thumbs = ((MAIN_THUMB_IN_SUBDIR == 'true') ? IN_IMAGE_THUMBS : '');
$image_base = substr($products_values['products_image'], $thumb_len, -4);
$image_ext = '.' . BIG_IMAGE_TYPE;
$image_path = DIR_WS_IMAGES . IN_IMAGE_BIGIMAGES;
$image_addon = (($_GET['pic']) ? MORE_PICS_EXT . $_GET['pic'] : BIG_PIC_EXT);

/* 
  if the big image isn't shown unkomment the next line, and check the path:
  maybe you have to remove '/'. or adjust the path, depends on your configuration
*/
// echo DIR_FS_CATALOG . $image_path . $image_base . $image_addon . $image_ext . '<br>';
 if (is_file(DIR_FS_CATALOG . $image_path . $image_base . $image_addon . $image_ext)) {
$image = $image_path . $image_base . $image_addon . $image_ext;
 } else {
$image = (($_GET['pic']) ? DIR_WS_IMAGES . IN_IMAGE_THUMBS . $image_base . $image_addon . $image_ext : DIR_WS_IMAGES . $thumbs . $image_base . $image_ext);
 }

 echo tep_image($image, $products_values['products_name'], '', '', 'lowsrc="images/pixel_trans.gif"');
?>
</a>
</div>
</body>
</html>
<?php require('includes/application_bottom.php'); ?>

 

 

 

Please helP!!!

Link to comment
Share on other sites

  • 2 weeks later...

please anyone, if im not mistaken this is probably what im looking for.

With this contribution, is it possible to add a product with one picture that is the thumbnail and one picture which is the big one that pop ups after clickin on it?

so i can have two different pictures?

or am i dead wrong, please tell me, thanx :)

Link to comment
Share on other sites

You can have as many images as you want, and a thumb and a "bigimage" of each with Dynamic Mo Pics...

 

Hey, does anyone have a good admin script that uses ImageMagick or NetPBM or something to automatically upload and populate DMPics from browsable images on my computer...

 

???

 

--gabe

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...