Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding text to additional images individually

    Hmm... it is finding the defined constant, or else it wouldn't display any text, but what it is displaying is the value of the variable (which is the constant name). I'll have to think a bit on how to get the constant's value displayed. Have been researching and not finding any information whatsoever on it.

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

    Default Re: Adding text to additional images individually

    Should have looked more thoroughly through the PHP function list... try this:
    PHP Code:
        $link = (defined($add_const_name))? '<h4 class="addImgTitle">' constant($add_const_name) . '</h4>' $link$link
    constant($add_const_name)
    returns the value of the content treated as a constant name.

    Principle tested and works.

  3. #13
    Join Date
    Dec 2008
    Location
    San Fran
    Posts
    382
    Plugin Contributions
    0

    Default Re: Adding text to additional images individually

    It's working!!! Thanks so much Glenn... you really helped me out!

  4. #14

    Default Re: Adding text to additional images individually

    I'm still having trouble making this work. I've followed instructions and am not getting any results at all. My knowledge of php is very little, but your instructions are easy to understand. I do have a rather customized template and that may be the reason it's not working.

    Can you make this an admin application?

    I am so grateful for all your time! I will continue to try and make it work as you instructed. However, if you have any thoughts of adding this mod as an admin application I would just LOVE that!

    Thank you again!

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

    Default Re: Adding text to additional images individually

    An admin-editable mod would require database modifications and considerably more work to build the functionality. Especially with v2.0 coming out soon, I do not plan to get into this for the current release.

    Can you post a link to your site to see what you have and how it is behaving?

  6. #16

    Default Re: Adding text to additional images individually

    Thank you so much for your response.

    I am now having more luck with adding the titles to the images. I was previously working with images that have long file names with spaces in the file names. I tried it with images without any spaces in filenames and it worked!!

    I am so excited to have this capability - thank you so much for all your time!

    I will have to change the filenames I suppose. Unless you have another suggestion.

    Thank you again! You have been very helpful!!

    For your reference, below is a link to a page with images that didn't work with adding the titles:
    http://www.palomapottery.com/catalog...products_id=59

    Other pages with images that are working with adding the titles:
    http://www.palomapottery.com/catalog/index.php?main_page=product_info&cPath=16&products_id=18

  7. #17
    Join Date
    Dec 2008
    Location
    San Fran
    Posts
    382
    Plugin Contributions
    0

    Default Re: Adding text to additional images individually

    I just noticed another problem... when putting the path in the language file for an image that's in a folder, it isn't working.

    My image path in zencart is in images/bulk/bulk10_curly.jpg

    I put:
    define ('ADDIMG_BULK_BULK10_CURLY_JPG','curly');

    But it doesn't bring up any text at all.

    Images in the root image folder seem to work just fine, any ideas?

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

    Default Re: Adding text to additional images individually

    Just because Microsoft lets users make file/folder names with spaces doesn't mean it's a good idea...
    It is a universal computer best practice to use only letters, numbers, _, -, . and perhaps one or two other characters in filenames. Keeping letters lower case is also a good idea, as some applications are case sensitive and forgetting what you capitalized can cause unexpected problems.

    Hmm, I'll have to investigate that. I thought it would work with subfolders, but wasn't certain. It will require some detailed debugging to see exactly how the file/folder names are handled.
    Last edited by gjh42; 11 Jan 2009 at 08:34 PM.

  9. #19
    Join Date
    Dec 2008
    Location
    San Fran
    Posts
    382
    Plugin Contributions
    0

    Default Re: Adding text to additional images individually

    Ok I agree with all that, but is there something wrong with the way I have it set up? I'm not using any funny characters at all.

  10. #20
    Join Date
    Dec 2008
    Location
    San Fran
    Posts
    382
    Plugin Contributions
    0

    Default Re: Adding text to additional images individually

    Quote Originally Posted by gjh42 View Post
    Just because Microsoft lets users make file/folder names with spaces doesn't mean it's a good idea...
    It is a universal computer best practice to use only letters, numbers, _, -, . and perhaps one or two other characters in filenames. Keeping letters lower case is also a good idea, as some applications are case sensitive and forgetting what you capitalized can cause unexpected problems.

    Hmm, I'll have to investigate that. I thought it would work with subfolders, but wasn't certain. It will require some detailed debugging to see exactly how the file/folder names are handled.
    Sorry I didn't see your part about the "DEBUGGING" thing... sorry about that. That's no problem, I undestand. I'll just stick with them in the root folder for now.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 3 Sep 2013, 10:19 PM
  2. v151 Is it possible to add images/text next to additional images?
    By pexter in forum General Questions
    Replies: 6
    Last Post: 21 May 2013, 09:47 PM
  3. Can I set a zoom name for additional images individually on product page?
    By wasabiman in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Apr 2010, 12:46 PM
  4. Images On and off individually
    By ollie_dda in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 11 May 2008, 06:37 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