Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Extra center module for logos?

Extra center module for logos?

Locked

Views: 1,429

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
12 Oct 2006, 4:45 PM
#1
scattered avatar

scattered

New Zenner

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

Extra center module for logos?

Hi folks,

I'm not one to just post without searching and as I spent the last 20 mins trying to find an answer without success, here goes...

I want to add another module to the centre column in the same format as New Products, Specials, Upcoming etc. I started off by grabbing and modifying the code from tpl_index_default.php which displays the modules. I then created my own page and referenced where needed but it won't display.

I thought maybe in PHP (I'm a PHP n00b!) I can only use a key once? i.e. I can't say "switch on this that the other when one key is flagged 'yes"

Any thoughts?

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
<?php
/**
 * display the Tech Logos Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_tech_logos.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_tech_logos.php'); ?>
<?php } ?>
<?php
/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_modules_whats_new.php 2935 2006-02-01 11:12:40Z birdbrain $
 */
  $zc_show_new_products = false;
  include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEW_PRODUCTS));
?>

<!-- bof: tech logos -->
<?php if ($zc_show_new_products == true) { ?>
<div class="centerBoxWrapper" id="techLogos">
<?php echo '<a href="http://www.trustlogo.com/">Trust Logo</a>'; ?>
</div>
<?php } ?>
<!-- eof: tech logos -->
12 Oct 2006, 7:13 PM
#3
scattered avatar

scattered

New Zenner

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

Re: Extra center module for logos?

Interesting! I might give that a go. It never crossed my mind to try something like that as I'm a PHP n00b and didn't fancy trying and testing downloads for older versions of ZC.

Any other thoughts appreciated but I may give this a whirl too... :)

15 Oct 2006, 10:05 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Extra center module for logos?

scattered,

You will note that this was updated in June of 2006 and this was for 1.3.x but this did not get listed as being for 1.3.x....