Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default new sidebox change text to *.gif

    Hi there,
    I've created a new sidebox called Good to know.
    I've created a header (gif file) for it called goodtoknowhead.gif

    How do I change the text currently displayed to use my custom image?

    Hope this makes sense!!

    Thanks

    Maxy
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  2. #2
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: new sidebox change text to *.gif

    Ok I got the image working for the good to know heading.
    I forgot to add the image to my template file and update the stylesheet headings.php file.

    Somehow the text "Good to Know" is below the sidebox image. Even though it's not visible it's there and it's making any page I place under the good to know heading be out of alignment.

    Do you know how I can get rid of the text?
    I was given instructions for a similar issue in another thread but this is really doing my head in. I just can't work it out.

    please help!!

    Maxy
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	text visible.jpg 
Views:	64 
Size:	14.4 KB 
ID:	8741   Click image for larger version. 

Name:	no text visible.jpg 
Views:	60 
Size:	10.9 KB 
ID:	8742  
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

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

    Default Re: new sidebox change text to *.gif

    Use the Images for Titles mod from Free Addons for your sidebox heading. That automatically handles the headings where you have images properly named and leaves the rest alone.

    Or you can change the define for your new sidebox title to be the image instead of text:
    PHP Code:
    define('YOUR_SIDEBOX_TITLE'zen_image(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/your_sidebox_image.gif''Your Sidebox Heading')); 
    Save the image file in /includes/templates/your_template/buttons/english/.

  4. #4
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: new sidebox change text to *.gif

    Quote Originally Posted by gjh42 View Post
    Use the Images for Titles mod from Free Addons for your sidebox heading. That automatically handles the headings where you have images properly named and leaves the rest alone.

    Or you can change the define for your new sidebox title to be the image instead of text:
    PHP Code:
    define('YOUR_SIDEBOX_TITLE'zen_image(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/your_sidebox_image.gif''Your Sidebox Heading')); 
    Save the image file in /includes/templates/your_template/buttons/english/.

    Hi there,
    where do i find define('YOUR_SIDEBOX_TITLE', zen_image(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/your_sidebox_image.gif', 'Your Sidebox Heading'))

    I searched for zen_image(DIR_WS_TEMPLATE . 'buttons/' . in Admin> dev tools but it didn't show up!!
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

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

    Default Re: new sidebox change text to *.gif

    You won't find it. You need to find the existing define for whatever the custom sidebox title is and change it similar to the example. I can't write it exactly for you because I don't know your sidebox id, image filename, etc.

    Use Tools > Developers Toolkit to find the file where the current sidebox title text is defined.

  6. #6
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: new sidebox change text to *.gif

    Thank you!!

    I think I've found it :)
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  7. #7
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: new sidebox change text to *.gif

    I used the images for titles mod and the text is still there.
    I need to get rid of this.

    Any other suggestions??

    Thanks for reading
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  8. #8
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: new sidebox change text to *.gif

    I changed the blank_sidebox_defines.php file from this
    <?php
    /**
    * blank sidebox definitions - text for inclusion in a new blank sidebox
    *
    * @package templateSystem
    * @copyright 2007 Kuroi Web Design
    * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
    */

    define('BOX_HEADING_BLANK_SIDEBOX', 'Good to Know');
    define('TEXT_BLANK_SIDEBOX', '<a href="http://www.lovetovape.com.au/index.php?main_page=page&id=14">E-Juice</a>');

    ?>

    to this

    <?php
    /**
    * blank sidebox definitions - text for inclusion in a new blank sidebox
    *
    * @package templateSystem
    * @copyright 2007 Kuroi Web Design
    * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
    */

    define('GOOD_TO_KNOW_TITLE', zen_image(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/goodtoknowhead.gif', 'Good to Know'));
    define('TEXT_BLANK_SIDEBOX', '<a href="http://www.lovetovape.com.au/index.php?main_page=page&id=14">E-Juice</a>');

    ?>

    The text that was there has now changed to
    BOX_HEADING_BLANK_SIDEBOX


    I searched for that in admin and it came up with 4 matches
    they are shown in the attached image.

    Which one do I need to change?

    Cheers,

    Maxy
    Attached Images Attached Images  
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

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

    Default Re: new sidebox change text to *.gif

    There is no Images for Titles image there - it is still the background image. What filename did you use for the header image, and where exactly is it located?
    You appear to have deleted the define for BOX_HEADING_BLANK_SIDEBOX, which is why that particular text is showing. If you find the language file where it should be and add

    define('BOX_HEADING_BLANK_SIDEBOX', '');

    you will get no actual text in that location.


    The tpl_ or box file is still looking for BOX_HEADING_BLANK_SIDEBOX, not GOOD_TO_KNOW_TITLE, and since you have deleted it, it can only show the constant name.

  10. #10
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: new sidebox change text to *.gif

    I changed the Blank_sidebox_defines.php file located here /includes/languages/english/extra_definitions.

    now the text is showing as good to know again.

    The file name is goodtoknowhead.gif and it's located in includes/templates/surfshop/buttons/english/

    and also in includes/templates/template_default/buttons/english/

    Cheers,

    maxy
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Need to Change Sidebox Header Text
    By spiralmedia in forum Basic Configuration
    Replies: 1
    Last Post: 21 Jan 2010, 06:44 PM
  2. How do I change sidebox text / wording
    By LadyMorgana in forum General Questions
    Replies: 7
    Last Post: 3 Nov 2008, 01:19 PM
  3. Change zen cart defined icon.gif to text?
    By nev in forum General Questions
    Replies: 0
    Last Post: 1 Jun 2008, 11:02 PM
  4. Change the Manufacturers sidebox to text links
    By hipmaster in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 10 May 2006, 02:29 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR