Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26
  1. #21
    Join Date
    Sep 2006
    Location
    Jacksonville, FL
    Posts
    236
    Plugin Contributions
    0

    Re: Replace Logo Link w/ Banner

    Thanks kobra, I just fixed that, but my header is still colliding with the rest of the page.

    Code:
    ?>
    
    
    
    <?php
    
      // Display all header alerts via messageStack:
    
      if ($messageStack->size('header') > 0) {
    
        echo $messageStack->output('header');
    
      }
    
      if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    
      echo htmlspecialchars(urldecode($_GET['error_message']));
    
      }
    
      if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    
       echo htmlspecialchars($_GET['info_message']);
    
    } else {
    
    
    
    }
    
    ?>
    
    
    
    <!--bof-header logo and navigation display-->
    
    <?php
    
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    
    ?>
    
    
    
    <div id="headerWrapper">
    
    <!--bof-branding display-->
    
    <div id="logoWrapper">
    
       <!--  <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div> -->
    
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    
        <div id="taglineWrapper">
    
    <?php
    
                  if (HEADER_SALES_TEXT != '') {
    
    ?>
    
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    
    <?php
    
                  }
    
    ?>
    
    <?php
    
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
    
                    if ($banner->RecordCount() > 0) {
    
    ?>
    
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    
    <?php
    
                    }
    
                  }
    
    ?>
    
        </div>
    
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    
    </div>
    
    <br class="clearBoth" />
    
    <!--eof-branding display-->
    
    
    <!--bof-navigation display-->
    
    <div id="navMainWrapper">
    
    <div id="navMain">
    
        <ul class="back">
    
        <li>
    	<object width="800" height="144" margin-top="0">
                    
                    <embed src="http://www.studiostyles.net/studiostyles_0905/store/zen-cart-090706/includes/templates/jlawless/images/header.swf" width="800" height="144"></embed>
                    
                    </object></a></li>
     
    <!--  nice 'n ez flash -->
    
    <!-- 
    <?php echo get_flashed('header','800','144');
    
    ?>
     -->
    
    <?php if ($_SESSION['customer_id']) { ?>
    
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    
    <?php
    
          } else {
    
            if (STORE_STATUS == '0') {
    
    ?>
    
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    
    <?php } } ?>
    
    
    
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    
    <?php }?>
    
    </ul>
    
    </div>
    
    <div class="navMainSearch forward"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    
    <br class="clearBoth" />
    
    </div>
    
    <!--eof-navigation display-->
    
    
    
    <!--eof-header logo and navigation display-->
    
    
    
    <!--bof-optional categories tabs navigation display-->
    
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    
    <!--eof-optional categories tabs navigation display-->
    
    
    
    <!--bof-header ezpage links-->
    
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    
    <?php } ?>
    
    <!--eof-header ezpage links-->
    
    </div>
    
    <?php } ?>
    got any other ideas?
    John L.
    MultiMedia Designer

  2. #22
    Join Date
    Oct 2006
    Location
    New Albany Ohio
    Posts
    118
    Plugin Contributions
    2

    Default Re: Replace Logo Link w/ Banner

    Quote Originally Posted by Lawbird123 View Post
    ############llc,

    I've been trying to work your solution into my zencart, but that doesn't seem to be working either. I'm pretty sure I'm following the instructions properly, but I keep getting the following error messages on my catalog site:


    Warning: main(includes/templates/template_default/nnez_com/nnez_flo_output.php): failed to open stream: No such file or directory in /home/content/s/t/u/mysite/html/mycart/includes/init_includes/init_general_funcs.php on line 75

    Warning: main(includes/templates/template_default/nnez_com/nnez_flo_output.php): failed to open stream: No such file or directory in /home/content/s/t/u/mysite/html/mycart/includes/init_includes/init_general_funcs.php on line 75

    Warning: main(): Failed opening 'includes/templates/template_default/nnez_com/nnez_flo_output.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/s/t/u/mysite/html/mycart/includes/init_includes/init_general_funcs.php on line 75

    Any ideas as to what I might be doing wrong?

    yes.

    1) you need to preserve the directory stucture
    2) open /home/content/s/t/u/mysite/html/mycart/includes/init_includes/init_general_funcs.php and delete/uncomment the include nnez_flo_output statement apparently written there
    3) make sure nnez_flo_output.php is uploaded to functions/extra_functions/

  3. #23
    Join Date
    Oct 2006
    Location
    New Albany Ohio
    Posts
    118
    Plugin Contributions
    2

    Default Re: Replace Logo Link w/ Banner

    your posted code

    Code:
    <!-- 
    <script type="text/javascript">embedFlash("/studiostyles_0905/store/zen-cart-090706/includes/templates/template_default/nnez_com/flash/default_2","800","144","");</script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="144" id="nnez_com" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="/studiostyles_0905/store/zen-cart-090706/includes/templates/template_default/nnez_com/flash/default_2.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="/studiostyles_0905/store/zen-cart-090706/includes/templates/nnez_com/default_2.swf" quality="high" bgcolor="#ffffff" width="800" height="144" name="nnez_com" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object></noscript> -->
    indicates that you

    made the call to >> get_flashed($flashfile='jfzxbvl',$w='800',$h='144')

    ie, you changed the default values for the dimensions but not the filename, which defaults to

    'default_'.rand(0,9).'.swf'

    or you actually called get_flashed('default_2')

    do you have a default_2.swf file in /template_default/nnez_com/flash/ ?

  4. #24
    Join Date
    Sep 2006
    Location
    Jacksonville, FL
    Posts
    236
    Plugin Contributions
    0

    Default Re: Replace Logo Link w/ Banner

    No, I dont. How many defaults do I need?
    John L.
    MultiMedia Designer

  5. #25
    Join Date
    Oct 2006
    Location
    New Albany Ohio
    Posts
    118
    Plugin Contributions
    2

    Default Re: Replace Logo Link w/ Banner

    you don't actually need the default_ files.

    the defaults are in place in case you don't actually pass a filename to the function. this is good when you tend to use a function for a specific purpose.

    the point of the question was that your code had 'default_2.swf' as the filename - which indicates you either didn't pass a filename as an argument or else passed a filename that was the same as a default filename...

    and in either case didn't have that file where zc was looking for it.

    i started a thread at http://www.zen-cart.com/forum/showthread.php?t=49224 to support this contribution if you need more assistance.

  6. #26
    Join Date
    Oct 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Replace Logo Link w/ Banner

    EDIT: sorry bout that, wrong thread
    Last edited by akizzle; 21 Oct 2006 at 09:21 AM.

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. How do I replace image logo for live font logo ?
    By gabrielzn in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 15 Aug 2010, 07:00 AM
  2. Replace the normal digital product download link with a different/external link
    By ballyc27 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 Jul 2009, 05:31 PM
  3. replace banner and logo
    By nexgraphics in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 May 2009, 01:24 AM
  4. Logo/Banner link
    By imagehorizons in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Sep 2008, 08:09 PM

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