Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Mar 2010
    Location
    Green Bay, WI
    Posts
    360
    Plugin Contributions
    1

    Default Re: Template Modifying

    Quote Originally Posted by stevesh View Post
    If you mean the Auto Parts Shop image, just create your new image, name it logo.gif, and upload it to includes/templates/theme346/images, overwriting the old one. If you want to use a .jpg image, you'll need to put it in the same folder, then edit includes/languages/english/theme346/header.php.
    That was what I had thought of doing, but I had never done that before. I can save my logo as any file type right now so i will just do that and hoepfully it should be good to go!

    Thanks
    Forums are for helping people!! if you don't want to help people then shut up and get off the forum!

  2. #12
    Join Date
    Mar 2010
    Location
    Green Bay, WI
    Posts
    360
    Plugin Contributions
    1

    Default Re: Template Modifying

    So half of it worked!

    First I uploaded my logo as a .gif. That worked but the logo looks like crap!

    Then I uploaded it as a .jpg and edited the includes/languages/english/theme346/header.php so that it was looking for a .jpg image. I changed the file permissions, uploaded the file and nothing. It still is looking at the old logo and when I view the page source it is still pointing to the old logo. Any thoughts on why? Should I be editting another file?
    Forums are for helping people!! if you don't want to help people then shut up and get off the forum!

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

    Default Re: Template Modifying

    The tpl_header.php file has been heavily modified by TM. What does the code look like around the section that generates this output?
    Code:
    						<!-- ========== LOGO ========== -->
    							<span><a href="http://www.only240sx.com/index.php?main_page=index"><img src="includes/templates/theme346/images/logo.gif" alt="" width="236" height="39" /></a></span>
    						<!-- ========================== -->
    Does it call for a constant in the logo display, or something else? Is it the same constant you redefined in header.php?

  4. #14
    Join Date
    Mar 2010
    Location
    Green Bay, WI
    Posts
    360
    Plugin Contributions
    1

    Default Re: Template Modifying

    Quote Originally Posted by gjh42 View Post
    The tpl_header.php file has been heavily modified by TM. What does the code look like around the section that generates this output?
    Code:
    						<!-- ========== LOGO ========== -->
    							<span><a href="http://www.only240sx.com/index.php?main_page=index"><img src="includes/templates/theme346/images/logo.gif" alt="" width="236" height="39" /></a></span>
    						<!-- ========================== -->
    Does it call for a constant in the logo display, or something else? Is it the same constant you redefined in header.php?
    Call me stupid but I didn't really understand what you just said! Sorry
    Forums are for helping people!! if you don't want to help people then shut up and get off the forum!

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

    Default Re: Template Modifying

    Look at /includes/templates/theme346/common/tpl_header.php. There will be a section of code between the
    <!-- ========== LOGO ========== -->
    and
    <!-- ========================== -->
    comments; post that whole section so we can see what it is trying to do.

  6. #16
    Join Date
    Mar 2010
    Location
    Green Bay, WI
    Posts
    360
    Plugin Contributions
    1

    Default Re: Template Modifying

    Quote Originally Posted by gjh42 View Post
    Look at /includes/templates/theme346/common/tpl_header.php. There will be a section of code between the
    <!-- ========== LOGO ========== -->
    and
    <!-- ========================== -->
    comments; post that whole section so we can see what it is trying to do.
    Thank you sir! This is the code
    Code:
    <!-- ========== LOGO ========== -->
    							<span><a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.gif'); ?></a></span>
    						<!-- ========================== -->
    Forums are for helping people!! if you don't want to help people then shut up and get off the forum!

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

    Default Re: Template Modifying

    The idiots have hard-coded logo.gif into the code, so that nobody can use a different filename for their logo.

    <span><a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.gif'); ?></a></span>

    The stock tpl_header.php has this:
    PHP Code:
        <div id="logo"><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?></div>
    Try changing

    zen_image(DIR_WS_TEMPLATE.'images/logo.gif')

    to

    zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT)


    Make sure you have defined
    HEADER_LOGO_IMAGE
    and
    HEADER_ALT_TEXT

  8. #18
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Template Modifying

    Quote Originally Posted by gjh42
    The idiots have hard-coded logo.gif into the code,
    They seem to go to lengths to keep standard ZenCart functions from working....

    And why I am fully against them

  9. #19
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Template Modifying

    Just for my 5 cents: there are more than 100 free ZC compliant templates available on this site (Zencart), all of which can be modified to suit your needs.

    The worst place to go and get a template is TM! Let alone pay for something that is full of bugs ....

  10. #20
    Join Date
    Mar 2010
    Location
    Green Bay, WI
    Posts
    360
    Plugin Contributions
    1

    Default Re: Template Modifying

    Quote Originally Posted by gjh42 View Post
    The idiots have hard-coded logo.gif into the code, so that nobody can use a different filename for their logo.

    <span><a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.gif'); ?></a></span>

    The stock tpl_header.php has this:
    PHP Code:
        <div id="logo"><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?></div>
    Try changing

    zen_image(DIR_WS_TEMPLATE.'images/logo.gif')

    to

    zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT)


    Make sure you have defined
    HEADER_LOGO_IMAGE
    and
    HEADER_ALT_TEXT


    By define do you mean to make sure I change HEADER_LOGO_IMAGE to my image name?


    Quote Originally Posted by frank18 View Post
    Just for my 5 cents: there are more than 100 free ZC compliant templates available on this site (Zencart), all of which can be modified to suit your needs.

    The worst place to go and get a template is TM! Let alone pay for something that is full of bugs ....
    I am beginning to think so to. When I first looked into it it was a mixed bag of results. It was really easy to load and get onto the site (with a few minor changes) and then making other things work seems to be a pain in the ########!
    Forums are for helping people!! if you don't want to help people then shut up and get off the forum!

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Inserting Manufacturers sidebox - (modifying Template Monster template)
    By squire11 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Oct 2007, 02:11 PM
  2. Need help modifying a Template Monster template
    By liquidpictures in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Oct 2007, 05:59 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