Results 1 to 10 of 156

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Location
    Texas - The Republic
    Posts
    27
    Plugin Contributions
    0

    Default Re: Image Titles Support Thread

    Can't find the edit button, maybe too much time has elapsed?

    Any way, I got it fixed, the last line that ends

    '<a>');

    should be changed to

    '<a>'));

    Great MOD, thanks for your work.

    Jim

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Image Titles Support Thread

    Thanks for that bugfix. I have updated the zip and will post it here for a bit more testing. When I am sure it is all good, I will update the mod, and delete this when it is available in Free Addons.
    Last edited by gjh42; 4 Oct 2010 at 03:03 PM.

  3. #3
    Join Date
    Feb 2010
    Location
    Texas - The Republic
    Posts
    27
    Plugin Contributions
    0

    Default Re: Image Titles Support Thread

    I forgot to mention, I was so pleased to get it working, what may be another problem.

    I have the boxes featured products, specials, etc turned off.

    When I uploaded all files, even after it was working I got an error referring to left and right .php and special/featured.php, I just deleted them from my file structure as the help file said I could and all was well.

    But you might want to check it and maybe have the file check to see if that box is turned on or not, or state in the help file not to upload those files if the related boxes are turned off.

    Again Thanks
    Jim

    PS If you have nothing to do (Ha fat chance huh) do you know of a way to solve my ? in this thread >
    https://www.zen-cart.com/forum/showt...966#post891966
    No harm no foul if you don't have time.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Image Titles Support Thread

    Thanks for the note. If there is an error message, it needs to be fixed rather than turned off. I'll check those other files for the same kind of bug if relevant, and will be setting up a new test site soon so I can test things myself again.

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Image Titles Support Thread

    I'm not sure why you were having problems with sidebox or centerbox titles, but I have tested the complete mod in Firefox, IE8 and IE "compatibility" and found it to work correctly.

    Images for Titles v2.0 is now available in Free Addons.

    Moved image replacement to function for more flexible use,
    added easy image filetype define,
    added image replacement for subcat names in category listing.

    Base files up to date as of v1.3.9f.

  6. #6
    Join Date
    Mar 2009
    Posts
    221
    Plugin Contributions
    1

    Default Re: Image Titles Support Thread

    Glenn,

    Does v2.0 of this mod support looking up a separate image for each month, using strftime('%B') ??

    I am currently using v1.2 of this mod and I had modified new_products.php to replace all references to '/centerboxhead-new.gif') with '/centerboxhead-new-' . strftime('%B') . '.gif')

    This would then find the appropriate centerboxhead-new-nameofmonth.gif image file in the /buttons/english folder.


    In testing v2.0 of this mod (I have a test build of an upgraded 1.3.9f site), I cannot get this functionality to work. It will not replace the centerboxhead text with an image based on current month. It appears the code has changed a bit in new_products.php and I am not sure how to tweak it.

    I tried changing 'centerboxhead-new' to 'centerboxhead-new-' and also added '.gif'), but can't seem to get this to work.

    NOTE:
    If I add a centerboxhead-new.gif file, it replaces the text with that image just fine. It just won't recognize the other files based on the month (e.g., centerboxhead-new-September.gif).
    The new version is working great for everything else (changing the category sidebox header text to image), so I know I have the mod installed correctly.
    Last edited by Crunch; 30 Sep 2010 at 12:07 AM.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Image Titles Support Thread

    I didn't add the month or category image feature, because that would not find the basic (non-cat, non-dated) versions of the images for those who don't have specific ones. You should be able to make the same modification as you did previously, by editing the second parameter in the title_image_exists() function call in /includes/modules/your_template/specials_index.php:
    PHP Code:
      if ($specials_index->RecordCount() > 0) { //image titles - box header image if file exists
        //$title = '<h2 class="centerBoxHeading">' . title_image_exists(sprintf(TABLE_HEADING_SPECIALS_INDEX, strftime('%B')), 'centerboxhead-specials') . '</h2>';
        
    $title '<h2 class="centerBoxHeading">' title_image_exists(sprintf(TABLE_HEADING_SPECIALS_INDEXstrftime('%B')), 'centerboxhead-specials-' strtolower(strftime('%B'))) . '</h2>';
        
    $zc_show_specials true;
      } 
    Name the images like centerboxhead-specials-month.gif (all lowercase).
    Last edited by gjh42; 30 Sep 2010 at 12:22 AM.

 

 

Similar Threads

  1. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1687
    Last Post: 17 Nov 2024, 07:26 PM
  2. Rotating Image Slider [Support Thread]
    By picaflor-azul in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 8 Jun 2018, 02:16 AM
  3. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  4. AJAX IMAGE Swapper support thread
    By jaycode in forum All Other Contributions/Addons
    Replies: 785
    Last Post: 13 Jan 2016, 11:48 PM
  5. Additional Image Titles [support]
    By gjh42 in forum All Other Contributions/Addons
    Replies: 67
    Last Post: 16 Sep 2011, 04:28 AM

Posting Permissions

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