Page 1 of 2 12 LastLast
Results 1 to 10 of 156

Hybrid View

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

    Default Image Titles Support Thread

    Image Titles is now available in Downloads.

    This mod allows you to substitute images for text in certain locations.

    If an image file is found for a title, the image will be displayed; if not, the original text will be displayed.
    Each replacement location can be omitted if not wanted.


    - You can replace the standard Zen Cart sidebox headers on all pages with images.

    - You can replace product titles on product info pages with images.

    - Other functions may be added in future versions if requested here.

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Image Titles Support Thread

    Great addition.. Thank You
    Would it be possible to add images for text on main index page
    i.e. Featured Products, New Products etc centre boxes?

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

    Default Re: Image Titles Support Thread

    Do you mean centerbox heading titles? I expect I can add that. I've got a big craft show coming up in two weeks so don't have much time at the moment, but I'll accumulate some ideas and work on them when I can.

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Image Titles Support Thread

    Quote Originally Posted by gjh42 View Post
    Do you mean centerbox heading titles? .
    Yes please.

  5. #5
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Image Titles Support Thread

    Thanks for adding option I requested

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

    Default Re: Image Titles Support Thread

    This turned out to require editing three different files, but it is essentially the same edit for each of them.
    Also, I was notified that Image Titles did not support multiple languages. I confess it had never occurred to me since I use only English, but the fix was quite simple, using $_SESSION['language'] and the /buttons/your_language/ subfolder instead of /images/. So:

    Version 1.1 is now available in Downloads.
    Added support for multiple languages and centerbox headers.

    - You can replace the standard Zen Cart featured/new/specials centerbox headers on all pages with images.
    - If you use multiple languages, you can automatically display a different image for each language.

  7. #7
    Join Date
    Oct 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: Image Titles Support Thread

    Hi Guys, love the mod!
    Having a touch of trouble getting it to work for the newsletter mod I installed.

    the id is subscribeHeading

    my filename is boxhead-subscribeHeading.gif

    I have tried it with multiple multiple different filenames, and I get nuthin.

    I tried to edit the subscribe_header.php, using your readme as a guide, but it was too over my head. I was wondering if you could help me get it to work? If its easier to somehow insert it using the filename in text somewhere, that would be fine too, but once again, out of my league!

    Here is the subscribe_header.php
    PHP Code:
    <?php
    /**
     * subscribe_header - this is a subscribe field that appears in the navigation header
     * This uses the same base template as the subscribe sidebox.
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: subscribe_header.php,v 1.1 2006/06/16 01:46:15 Owner Exp $
     */

       
    if(defined('NEWSONLY_SUBSCRIPTION_ENABLED') &&
          (
    NEWSONLY_SUBSCRIPTION_ENABLED=='true')) {
        
    $show_subscribe_headertrue;
      }

      if (
    $show_subscribe_header == true) {
        
    $subscribe_text HEADER_SUBSCRIBE_LABEL;
        require(
    $template->get_template_dir('tpl_subscribe_header.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_subscribe_header.php');

        
    $title '';
        
    $title_link false;
        require(
    $template->get_template_dir('tpl_box_header.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/tpl_box_header.php');
      }
    ?>
    Hope I did that right. Thanks so much for the help!


    Here is my site

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

    Default Re: Image Titles Support Thread

    You want to use not the filename, but the id of the actual sidebox. In this case, view source shows
    Code:
    <!--// bof: subscribe //-->
    
    <div class="leftBoxContainer" id="subscribe" style="width: 200px">
    <h3 class="leftBoxHeading" id="subscribeHeading">Newsletter</h3>
    so you would name the image boxhead-subscribe.gif.

  9. #9
    Join Date
    Oct 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: Image Titles Support Thread

    Quote Originally Posted by gjh42 View Post
    You want to use not the filename, but the id of the actual sidebox. In this case, view source shows
    Code:
    <!--// bof: subscribe //-->
    
    <div class="leftBoxContainer" id="subscribe" style="width: 200px">
    <h3 class="leftBoxHeading" id="subscribeHeading">Newsletter</h3>
    so you would name the image boxhead-subscribe.gif.
    I tried that the first time, no luck, and I just tried again, and no luck again. Sorry I should have listed all the things I tried. I also tried newsletter, I tried changing capital letters, with boxhead, with out box head - with centerbox, I tried to go into the code where it says ID=$something- and put that in there, that didn't work, that is why I was thinking it might be in the code above.
    I should say that I am changing the name on the server, instead of re-uploading a new file, that hasn't seemed to matter with anything else before, but I'm so new I'm not sure what is relevant and what isn't.
    thanks again

  10. #10
    Join Date
    Oct 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: Image Titles Support Thread

    Glenn, any ideas at all? I'm super stuck!

 

 
Page 1 of 2 12 LastLast

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