Forums / Addon Templates / Free Template "Future Zen" v1.2 Support Thread

Free Template "Future Zen" v1.2 Support Thread

Locked

Views: 20,326

Results 61 to 70 of 70
This thread is locked. New replies are disabled.
3 Mar 2010, 6:21 PM
#61
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Free Template "Future Zen" v1.2 Support Thread

I see, I knew I had enabled them. So I thought that would definitely not be the issue, but then I actually went and looked, (after I replied, haha), and they were all disabled. That was good. But now I would like to move the side box heading text, or title to the middle of the background header image and make it bigger..... what file do I need to change? I can't find it. But with my luck it is an easy thing and I am just not looking hard enough. Sorry to bother you so much.

3 Mar 2010, 6:29 PM
#62
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Free Template "Future Zen" v1.2 Support Thread

For that you would need to add a line-height to the h3 styling for your leftBoxHeading and rightBoxHeading that matches the height your have given them (42px).

That won't work for the labels, such as you have for the currency box, so you would probably have to do something similar, but more specifically targeted for them.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

3 Mar 2010, 7:03 PM
#63
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Free Template "Future Zen" v1.2 Support Thread

That did it! Thanks, you are a rock star! :clap::flex::bigups:

12 Mar 2010, 10:36 AM
#64
tagyourbaby avatar

tagyourbaby

New Zenner

Join Date:
Feb 2008
Location:
Auckland, NZ
Posts:
53
Plugin Contributions:
0

Re: Free Template "Future Zen" v1.2 Support Thread

The sideboxes are really close to the edges how can i move them in some more so there is a gap between the edge and the sideboxes? PS its on a dummy store im using so isnt showing for my current store :)

2 Apr 2010, 12:42 PM
#65
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Free Template "Future Zen" v1.2 Support Thread

Sorry, a bit bad form I know, as this is actually a double post and I normally wouldn't do it, but I hadn't realised there was a specific support thread, so thought I'll ask here in the hope there's a better chance someone can help (it was suggested that there is a solution in one of the Future Zen support theads somewhere but I can't find it despite reading pretty much all of the posts).

So, apologies over for double posting, but does anybody have any ideas why this is broken in the side box for Random Products On Special for SideBox?

I've now set the maximum values to 1 so can't give you a working link to demonstrate as the site is live (unless someone can quickly take a look whilst I briefly switch it back to 2 again - this is the site in question)

2 Apr 2010, 3:12 PM
#66
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Free Template "Future Zen" v1.2 Support Thread

See post #52

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

2 Apr 2010, 3:37 PM
#67
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Free Template "Future Zen" v1.2 Support Thread

gjh42:

That is a defect in the coding for the new products sidebox - it repeats the .sideBoxContent div for each product, instead of having one .sideBoxContent div with three inner divs for the products. I fixed it on my test installation a couple of years ago. You can copy
/includes/templates/template_default/sideboxes/tpl_whatsnew.php to
/includes/templates/your_template/sideboxes/tpl_whatsnew.php, and replace its contents with this:```php

<?php /** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2007 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_whats_new.php 6128 2007-04-08 04:53:32Z birdbrain $ divs corrected by gjh42 20080930 */ $content = ""; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">'; $whats_new_box_counter = 0; while (!$random_whats_new_sidebox_product->EOF) { $whats_new_box_counter++; $whats_new_price = zen_get_products_display_price($random_whats_new_sidebox_product->fields['products_id']); $content .= '<div class="sideBoxContentItem">'; $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($random_whats_new_sidebox_product->fields['master_categories_id']) . '&products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); $content .= '<br />' . $random_whats_new_sidebox_product->fields['products_name'] . '</a>'; $content .= '<div>' . $whats_new_price . '</div>'; $content .= '</div>'; $random_whats_new_sidebox_product->MoveNextRandom(); } $content .= '</div>'; ?>


Okay, so I am trying to do the same for 'specials, taking Glenn's code and using it for tpl_specials.php this is the code I came up with...

```php
<?php
/**
 * tpl_specials.php
 * 
 * @package templateSystem
 * @copyright Copyright 2003-2007 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_specials.php 6128 2007-04-08 04:53:32Z birdbrain $ divs corrected by gjh42  20080930
 */
   $content = "";
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
   $specials_box_counter = 0;
  while (!$random_specials_sidebox_product->EOF) {
    $specials_box_counter++;
    $specials_box_price = zen_get_products_display_price($random_specials_sidebox_product->fields['products_id']);
    $content .= '<div class="sideBoxContent">';    $content .= '<a href="' . zen_href_link(zen_get_info_page($random_specials_sidebox_product->fields["products_id"]), 'cPath=' . zen_get_generated_category_path_rev($random_specials_sidebox_product->fields["master_categories_id"]) . '&products_id=' . $random_specials_sidebox_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_specials_sidebox_product->fields['products_image'], $random_specials_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); 
    $content .= '<br />' . $random_specials_sidebox_product->fields['products_name'] . '</a>';
    $content .= '<div>' . $specials_box_price . '</div>';
    $content .= '</div>';
    $random_specials_sidebox_product->MoveNextRandom();
  }
  $content .= '</div>';
?>
```and below is the result I get... I'm not actually so bothered about it, just showing one special is enough, it was more a learning exercise than anything, but if anyone could work it out I'd be grateful for the tips :smile:
2 Apr 2010, 3:59 PM
#68
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Free Template "Future Zen" v1.2 Support Thread

So close... :)

You are just missing the "Item" added to the end of the second "sideBoxContent" class tag.```php

<?php /** * tpl_specials.php * * @package templateSystem * @copyright Copyright 2003-2007 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_specials.php 6128 2007-04-08 04:53:32Z birdbrain $ divs corrected by gjh42 20080930 */ $content = ""; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">'; $specials_box_counter = 0; while (!$random_specials_sidebox_product->EOF) { $specials_box_counter++; $specials_box_price = zen_get_products_display_price($random_specials_sidebox_product->fields['products_id']); $content .= '<div class="sideBoxContentItem">'; $content .= '<a href="' . zen_href_link(zen_get_info_page($random_specials_sidebox_product->fields["products_id"]), 'cPath=' . zen_get_generated_category_path_rev($random_specials_sidebox_product->fields["master_categories_id"]) . '&products_id=' . $random_specials_sidebox_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_specials_sidebox_product->fields['products_image'], $random_specials_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); $content .= '<br />' . $random_specials_sidebox_product->fields['products_name'] . '</a>'; $content .= '<div>' . $specials_box_price . '</div>'; $content .= '</div>'; $random_specials_sidebox_product->MoveNextRandom(); } $content .= '</div>'; ?>
2 Apr 2010, 4:02 PM
#69
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Free Template "Future Zen" v1.2 Support Thread

Grrrrrrrrr. I **HATE **you :hug:

Here it is then :smile:

16 Jul 2010, 5:00 AM
#70
meandk0610 avatar

meandk0610

New Zenner

Join Date:
May 2009
Posts:
20
Plugin Contributions:
0

Re: Free Template "Future Zen" v1.2 Support Thread

i've just installed future zen and cannot figure out how to remove the link that's in the logo spot nor how to center my tagline in the header image.

also, how would i change the header image in the future?

tia!

sarah
http://www.schoolsuppliesplus.com