Results 1 to 10 of 156

Hybrid View

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

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

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

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

    Default Re: Image Titles Support Thread

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

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

    Default Re: Image Titles Support Thread

    I downloaded the Newsletter Subscribe mod and looked at its files, but can't see anything in there that would cause the image title to not work. It seems to call the standard tpl_box_default_left/right.php.
    I do think that you want subscribe.php and not subscribe_header.php for the sidebox application you are using.

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

    Default Re: Image Titles Support Thread

    "I do think that you want subscribe.php and not subscribe_header.php for the sidebox application you are using. "

    I don't understand this. Should I change something somewhere? Sorry to be slow.

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

    Default Re: Image Titles Support Thread

    I think the subscribe_header.php you posted was irrelevant to the sidebox problem.

 

 

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