Full service web hosting, great prices and support. Starts at $1.99/month!
Page 5 of 8 First ... 34567 ... LastLast
Results 41 to 50 of 78

Thread: Enhanced Dynamic MoPics and Images stored in directories

  1. #41
    osCMax Development Team

    Enhanced Dynamic MoPics and Images stored in directories

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,164
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    99


    Arrow Re: Enhanced Dynamic MoPics and Images stored in directories

    Quote Originally Posted by adatole View Post
    First, I *do* need additional images, so please help me understand how to proceed (the image_1.jpg, image_2.jpg files were in /images/thumbs already).
    Using the product that I spotted in a previous post as an example.

    Wood Memo Pad Holder With Pen
    Through Admin, upload a large image of the product.
    There should now be 2 images stored for this one view of the product.
    /catalog/images/images_big/pen-paper.jpg & /catalog/images/thumbs/pen-paper.jpg

    Assuming that you haven't changed the imagebase_{1} in Admin., additional images for this product will need to be stored as.


    • /catalog/images/images_big/pen-paper_1.jpg & /catalog/images/thumbs/pen-paper_1.jpg
    • /catalog/images/images_big/pen-paper_2.jpg & /catalog/images/thumbs/pen-paper_2.jpg
    • /catalog/images/images_big/pen-paper_3.jpg & /catalog/images/thumbs/pen-paper_3.jpg

    This would give you three extra images, first displayed as thumbnails, with the opportunity to click on an individual one, to enlarge. Once one pic is enlarged you can also cycle through the other ones.

    To see it in action:
    ejSolutions Development Site : Sweatshirt [sws1] - £12.00
    Right-click on each of the Images, select Properties. This should allow you to see a similar pattern to that detailed above.

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  2. #42
    adatole
    Guest


    Default Re: Enhanced Dynamic MoPics and Images stored in directories

    (First and foremost - THANK YOU for sticking with this. Much appreciation on my side of the internet.)

    Well...

    I deleted the site, modified admin/categories.php, re-uppped 2.0.4 and the beta2 patch, ran the install, and restored from backup.

    Then I edited one of my items to use the admin interface to upload the graphic. Which worked except I got this error after clicking update:

    Fatal error: Cannot redeclare mopics_file_exists() (previously declared in /home6/promocus/public_html/catalog/includes/functions/dynamic_mopics.php:12) in /home6/promocus/public_html/catalog/includes/functions/dynamic_mopics.php on line 23

    After confirming that my product had a picture, and that the picture was automatically placed in /images/images_big and /images/thumbs (nice job on that enhancement!)

    I then manually FTP'd <item>_1.jpg, <item>_2.jpg, etc) to /images/thumbs and /images/images_big (the same file each time since I don't need the additional items to be large.
    I'm sorry to say that:
    1) I don't have a "click to enlarge" option anywhere on the page and
    2) I don't have additional images displayed below it on the product page.

    Let me know if I've made a mis-step along the way.

    For reference, the site is Promo Custom Branding : and the product "Name Plate" (under the category "wood products") is the item with pictures applied so far.

    Thanks again for all the support.
    - Leon

  3. #43
    osCMax Development Team

    Enhanced Dynamic MoPics and Images stored in directories

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,164
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    99


    Default Re: Enhanced Dynamic MoPics and Images stored in directories

    I deleted the site, modified admin/categories.php, re-uppped 2.0.4 and the beta2 patch, ran the install, and restored from backup.
    Where did you dream up that sequence?

    Upload 2.0.4; run the install; upload beta2 patch, following instructions. Do NOT restore from backups. You can restore from EasyPopulate though. As for categories.php - leave until you are well versed in 'Max. Re-upload 1st pics using Admin. - that way you have a template to follow.
    Estimated time to complete (for a novice and assuming a fast connection): one hour, or less.
    Last edited by ridexbuilder; 12-19-2009 at 03:04 AM.

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  4. #44
    osCMax Development Team

    Enhanced Dynamic MoPics and Images stored in directories

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,164
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    99


    Default Re: Enhanced Dynamic MoPics and Images stored in directories

    ..since I don't need the additional items to be large...
    So why bother uploading to images_big/ ?

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  5. #45
    adatole
    Guest


    Default Re: Enhanced Dynamic MoPics and Images stored in directories

    So once again into the breech I go. This time I:

    1. deleted directories and db
    2. created new db
    3. uploaded 2.0.4
    4. ran install
    5. uploaded beta2 patch
    6. ran SQL with beta patch
    7. Configured store by hand
    8. backed up database (just to be safe)
    9. Manually added a product. After clicking "update" I got this error


    Fatal error: Cannot redeclare mopics_file_exists() (previously declared in /home6/promocus/public_html/catalog/includes/functions/dynamic_mopics.php:12) in /home6/promocus/public_html/catalog/includes/functions/dynamic_mopics.php on line 23

    ...and the item is not loaded.

    I was able to upload an item using EasyPopulate, which I did and then edited the item to add the graphic. Upon hitting "update" I get the same Fatal error, and the graphic is not uploaded.

    I'll keep looking at the instructions to see if there is a step I missed, but your assistance is greatly appreciated.

    Thanks!

  6. #46
    osCMax Development Team

    Enhanced Dynamic MoPics and Images stored in directories

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,164
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    99


    Red face Re: Enhanced Dynamic MoPics and Images stored in directories

    Hmm,
    I'll try to find time to have a look tomorrow (my time).

    EJ

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  7. #47
    adatole
    Guest


    Default Re: Enhanced Dynamic MoPics and Images stored in directories

    Some additional information:

    I swapped my edited version of admin/categories.php (the one with lines 955-957 removed per your instructions) with the original. I got the additional_images error.

    Then I tried categories.php.alternate1 instead, and got the mopics error again.

    Thanks for looking into this.
    - Leon

  8. #48
    osCMax Development Team

    Enhanced Dynamic MoPics and Images stored in directories

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,164
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    99


    Thumbs up Re: Enhanced Dynamic MoPics and Images stored in directories

    Well, this kept me quiet on a Sunday:
    Updated release (now not Beta) - tested on an unmodified general release 2.0.4 (official) installation of osCMax.
    http://www.oscmax.com/system/files/oscmax_V2.0.xEM-RC5.tar.gz
    Note: changed layout for categories.php is now an option, not the default.

    EJ

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  9. #49
    osCMax Development Team

    Enhanced Dynamic MoPics and Images stored in directories

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,164
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    99


    Lightbulb Re: Enhanced Dynamic MoPics and Images stored in directories

    You may also find this SQL query to be useful - I'll add it to the next release (if there is one ).
    Code:
    UPDATE configuration SET configuration_value='jpg,jpeg,gif,png,JPG,JPEG,GIF,PNG' WHERE configuration_key='DYNAMIC_MOPICS_BIG_IMAGE_TYPES';
    UPDATE configuration SET configuration_value='jpg,jpeg,gif,png,JPG,JPEG,GIF,PNG' WHERE configuration_key='DYNAMIC_MOPICS_THUMB_IMAGE_TYPES';

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  10. #50
    osCMax Developer


    Enhanced Dynamic MoPics and Images stored in directories


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    597


    Default Re: Enhanced Dynamic MoPics and Images stored in directories

    Note that you should not add all those uppercase extensions to the dynamic mopics string, it greatly slows down the code. It would make more sense to rename the images to all use the same lowercase extension. Remember that speed is king, so every little bit counts. It is also very poor management practice to mix case on filenames/extensions. Best practice is to always use lowercase extensions.

    Make sure you do. I am merciless when mocking case-mixers!

    After you rename all your images to use the same case extension, delete any unused extensions from the Dynamic Mopics string. Now your site is faster, more efficient and you look and feel smarter.

    But you have too many images to rename? Get yourself a free file renamer.
    Let me google that for you

    Feels good to be in the know, eh?

Page 5 of 8 First ... 34567 ... LastLast

Similar Threads

  1. Dynamic Mopics additional images to product pages
    By pakrat in forum osCMax v2 Features Discussion
    Replies: 20
    Last Post: 08-15-2009, 05:13 PM
  2. Enhanced Dynamic MoPics & Images stored in directories
    By ridexbuilder in forum osCmax v2 Customization/Mods
    Replies: 42
    Last Post: 05-15-2009, 11:02 AM
  3. Get rid of dynamic mopics
    By mskitti in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 12-20-2008, 05:12 AM
  4. Dynamic MoPics
    By metalman923 in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 11-11-2007, 08:48 AM
  5. Dynamic MoPics
    By i2Paq in forum osCmax v2 Installation issues
    Replies: 8
    Last Post: 10-16-2007, 07:44 AM

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •