Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Replace Logo Link w/ Banner

Replace Logo Link w/ Banner

Locked

Views: 5,598

Results 21 to 26 of 26
This thread is locked. New replies are disabled.
17 Oct 2006, 8:25 PM
#21
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Replace Logo Link w/ Banner

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

?>



<?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?

17 Oct 2006, 11:16 PM
#22
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

Re: Replace Logo Link w/ Banner

Lawbird123:

neunetllc,

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/
17 Oct 2006, 11:36 PM
#23
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

Re: Replace Logo Link w/ Banner

your posted 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/ ?

18 Oct 2006, 12:56 PM
#24
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: Replace Logo Link w/ Banner

No, I dont. How many defaults do I need?

18 Oct 2006, 3:17 PM
#25
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

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.

21 Oct 2006, 8:17 AM
#26
akizzle avatar

akizzle

New Zenner

Join Date:
Oct 2006
Posts:
12
Plugin Contributions:
0

Re: Replace Logo Link w/ Banner

EDIT: sorry bout that, wrong thread