Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: What Did I Do Wrong?

    Now for each of the defines that were located, do a search on the constant in each, example:
    define('BUTTON_IMAGE_NEXT', 'button_next.gif');

    in the bottom input box enter:
    BUTTON_IMAGE_NEXT

    select Catalog ... clock SEARCH ...

    What shows up on each of them?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #12
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: What Did I Do Wrong?

    Search for BUTTON_IMAGE_NEXT:

    /home/a132536/public_html/includes/languages/english/button_names.php

    define('BUTTON_IMAGE_NEXT', 'button_next.gif')

    /home/a132536/public_html/includes/languages/english/piccadilly_posh/button_names.php

    Line #32 : define('BUTTON_IMAGE_NEXT', 'button_next.gif');

    Here's something new:

    /home/a132536/public_html/includes/modules/product_prev_next.php

    Line #119 : $next_item_button = zen_image_button(BUTTON_IMAGE_NEXT, BUTTON_NEXT_ALT);

    home/a132536/public_html/includes/templates/includes/languages/english/piccadilly_posh/button_names.php

    Line #32 : define('BUTTON_IMAGE_NEXT', 'button_next.gif');

    I have a question. Am I SUPPOSED to have an includes/templates/includes/languages/english/piccadilly_posh/button_names.php ? It makes me wonder because of the double use of includes in the name.

    Search for BUTTON_IMAGE_SEARCH:

    /home/a132536/public_html/includes/languages/english/button_names.php
    define('BUTTON_IMAGE_SEARCH', 'button_search.gif')


    /home/a132536/public_html/includes/languages/english/piccadilly_posh/button_names.php
    Line #37 : define('BUTTON_IMAGE_SEARCH', 'button_search.gif');

    Line #38 : define('BUTTON_IMAGE_SEARCH_HEADER', 'GO.png');


    home/a132536/public_html/includes/templates/includes/languages/english/piccadilly_posh/button_names.php

    Line #37 : define('BUTTON_IMAGE_SEARCH', 'button_search.gif');

    Line #38 : define('BUTTON_IMAGE_SEARCH_HEADER', 'button_search_header.png'); FOUND THIS AND CORRECTED IT TO GO.png

    /home/a132536/public_html/includes/templates/piccadilly_posh/sideboxes/tpl_search.php

    Line #17 : $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);

    Line #20 : $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '<br />' . zen_image_submit(BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);


    /home/a132536/public_html/includes/templates/piccadilly_posh/sideboxes/tpl_search_header.php

    Line #16 : $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '&nbsp;' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);

    Line #18 : $content .= zen_draw_input_field('keyword', '', 'size="6" class="search-header-box" maxlength="30" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '&nbsp;' . zen_image_submit (BUTTON_IMAGE_SEARCH_HEADER,HEADER_SEARCH_BUTTON);

    home/a132536/public_html/includes/templates/template_default/templates/tpl_advanced_search_default.php

    Line #71 : <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEARCH, BUTTON_SEARCH_ALT); ?></div>

    Search for BUTTON_IMAGE_RETURN_TO_PROD_LIST:

    /home/a132536/public_html/includes/languages/english/button_names.php

    define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see_all_products_by_this_designer.gif'


    /home/a132536/public_html/includes/languages/english/piccadilly_posh/button_names.php

    Line #35 : define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see_all_products_by_this_designer.gif');

    /home/a132536/public_html/includes/templates/includes/languages/english/piccadilly_posh/button_names.php

    Line #35 : define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'button_return_to_product_list.gif'); FOUND THIS AND CORRECTED IT!

    /home/a132536/public_html/includes/templates/piccadilly_posh/templates/tpl_products_next_previous.php

    Line #26 : <div class="navNextPrevList"><a href="<?php echo zen_href_link(FILENAME_DEFAULT, "cPath=$cPath"); ?>"><?php echo zen_image_button(BUTTON_IMAGE_RETURN_TO_PROD_LIST, BUTTON_RETURN_TO_PROD_LIST_ALT); ?></a></div>



    /home/a132536/public_html/includes/templates/template_default/templates/tpl_products_next_previous.php

    Line #26 : <div class="navNextPrevList"><a href="<?php echo zen_href_link(FILENAME_DEFAULT, "cPath=$cPath"); ?>"><?php echo zen_image_button(BUTTON_IMAGE_RETURN_TO_PROD_LIST, BUTTON_RETURN_TO_PROD_LIST_ALT); ?></a></div>

    I was so sure when I changed the two that had the old names it woud be corrected, but it still shows no image.

  3. #13
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: What Did I Do Wrong?

    I looked for instructions on changing the buttons for zen cart and it just says to enter changes in includes/languages/english/button_names.php.

    The Go.png was not in there, nor was any define for the search header.
    The button_next.gif and the button_prev.gif were in there.
    The button see_all_products_by_this_designer.gif was in there.

  4. #14
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: What Did I Do Wrong?

    OMG I fixed it! I took a look at the define in:

    includes/languages/english/piccadilly_posh from the list you had me make up and something didn't look right.

    home/a132536/public_html/includes/languages/english/button_names.php

    define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see_all_products_by_this_designer.gif');

    I had omitted the word "button" from the new name! I checked and I did the same thing for the GO.png

    I'd still like to know if this is a valid file:

    /home/a132536/public_html/includes/templates/includes/languages/english/piccadilly_posh/button_names.php

    the double use of the word includes has me puzzled. The php file inside is called button_names 3.php

    After all of this I'm wondering if I should change the colors of the prev/see all etc./next buttons. I couldn't duplicate the other buttons I have and this almost looks like a poor attempt at doing so. What do you think of black with white lettering to match the header bar?

    Let me take this opportunity to thank you for your patience and help. If you hadn't suggested a list of the words, I don't think I ever would have caught the error.
    Last edited by traytray; 19 Oct 2012 at 10:43 PM.

  5. #15
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: What Did I Do Wrong?

    Thanks for the update that you were able to get everything sorted out and that these hints were able to lead you in the right direction ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. what did i do wrong?
    By christayah in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Oct 2015, 07:19 AM
  2. What did I do wrong ?
    By vipinc in forum Installing on a Linux/Unix Server
    Replies: 12
    Last Post: 26 Nov 2010, 04:07 PM
  3. Uh oh what the heck did I do wrong?!?!?
    By NickJRE in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 6 Jun 2008, 08:52 PM
  4. What did I do wrong?
    By harmeet in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 19 Apr 2007, 02:06 PM
  5. What did I do wrong?
    By landsknecht in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Mar 2007, 08:34 PM

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