Forums / Addon Templates / GTI Custonm Templates Support

GTI Custonm Templates Support

Views: 2,628

Results 1 to 9 of 9
25 Mar 2010, 4:39 PM
#1
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

GTI Custonm Templates Support

If you have any questions about my Templates, please ask them here.

Happy Zen-ning

JT

13 Apr 2010, 11:36 AM
#2
sumri avatar

sumri

New Zenner

Join Date:
Mar 2008
Posts:
46
Plugin Contributions:
0

Re: GTI Custonm Templates Support

hi...
thanks for the beautiful GTI templates.
I've applied the red one to my webstore.

I would like to make a little adjustment to the contents and need your help to make it happen. Pls refer attached image for my case.

I want to add new link right beside the Advanced Search in the picture. I've go through every files in your templates. but i can't find where to modified. FYI - i'm not quit familiar with PHP coding.

Thanks.
Regards.

My Online Store
Sumri (The Founder)

13 Apr 2010, 11:59 AM
#3
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

Re: GTI Custonm Templates Support

sumri:

hi...
thanks for the beautiful GTI templates.
I've applied the red one to my webstore.

I would like to make a little adjustment to the contents and need your help to make it happen. Pls refer attached image for my case.

I want to add new link right beside the Advanced Search in the picture. I've go through every files in your templates. but i can't find where to modified. FYI - i'm not quit familiar with PHP coding.

Thanks.
Regards.

Thanks, glad you like it.

The file that you are looking for is located here:
includes/templates/gti_custom_red/common/tpl_header.php

Look around lines 107 to 115

          <div id="altLinks">
             <a href="<?php echo zen_href_link(FILENAME_SPECIALS, '', 'NONSSL'); ?>"><?php echo HEADER_SUB_SPECIALS;?></a> |
             <a href="<?php echo zen_href_link(FILENAME_FEATURED_PRODUCTS, '', 'NONSSL'); ?>"><?php echo HEADER_SUB_FEATURED;?></a> |
             <a href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL, '', 'NONSSL'); ?>"><?php echo HEADER_SUB_ALLPRODUCTS;?></a> |
	     <a href="<?php echo zen_href_link(FILENAME_ADVANCED_SEARCH, '', 'NONSSL'); ?>"><?php echo HEADER_SUB_ADVANCED_SEARCH;?></a>
	     <br /><br />
	     <?php echo HEADER_SUB_SEARCH; ?>
	         <?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>

ADD YOUR LINK HERE

		  <br class="clearBoth" />

Add your link as shown above before the <br class="clearboth">

13 Apr 2010, 1:18 PM
#4
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

Re: GTI Custonm Templates Support

Now that I look at my reply, you want to ADD your link before the 2 <br /><br /> in this line.

<br /><br />
	     <?php echo HEADER_SUB_SEARCH; ?>
	         <?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>

This line is the Search Box on the line below where you want to add your link.

JT

25 Apr 2010, 6:32 AM
#6
sumri avatar

sumri

New Zenner

Join Date:
Mar 2008
Posts:
46
Plugin Contributions:
0

Re: GTI Custonm Templates Support

Still updating my store.
Can somebody help me to center alignment this picture (pls see attached pic).
TQVM.

My Online Store
Sumri (The Founder)

25 Apr 2010, 8:57 PM
#7
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

Re: GTI Custonm Templates Support

sumri:

Still updating my store.
Can somebody help me to center alignment this picture (pls see attached pic).
TQVM.

You need to drop some divisions and the pad the left side a bit. You have this:

<div class="leftBoxContainer" id="ccaccept" style="width: 190px;">
<h3 class="leftBoxHeading" id="ccacceptHeading">We Accept ...</h3>
<div id="ccacceptContent" class="sideBoxContent">
</div>
<img id="ccMC" class="cc_img" src="images/cc_logos/logo_mb2u.gif" alt="Maybank2u">
<div id="ccacceptContent" class="sideBoxContent">
</div>

Change to to this:

<div class="leftBoxContainer" id="ccaccept" style="width: 190px;">
<h3 class="leftBoxHeading" id="ccacceptHeading">We Accept ...</h3>
<div id="ccacceptContent" class="sideBoxContent">
<img id="ccMC" class="cc_img" src="images/cc_logos/logo_mb2u.gif" alt="Maybank2u">
</div>

Then pad the .cc_img in your stylesheet.css .
This will also put it inside the sidebox instead of between them.

26 Apr 2010, 10:18 AM
#8
sumri avatar

sumri

New Zenner

Join Date:
Mar 2008
Posts:
46
Plugin Contributions:
0

Re: GTI Custonm Templates Support

JTheed:

You need to drop some divisions and the pad the left side a bit. You have this:

<div class="leftBoxContainer" id="ccaccept" style="width: 190px;"> <h3 class="leftBoxHeading" id="ccacceptHeading">We Accept ...</h3> <div id="ccacceptContent" class="sideBoxContent"> </div> <img id="ccMC" class="cc_img" src="images/cc_logos/logo_mb2u.gif" alt="Maybank2u"> <div id="ccacceptContent" class="sideBoxContent"> </div> ``` > > Change to to this: > ``` <div class="leftBoxContainer" id="ccaccept" style="width: 190px;"> <h3 class="leftBoxHeading" id="ccacceptHeading">We Accept ...</h3> <div id="ccacceptContent" class="sideBoxContent"> <img id="ccMC" class="cc_img" src="images/cc_logos/logo_mb2u.gif" alt="Maybank2u"> </div> ``` > > Then pad the .cc_img in your stylesheet.css . > This will also put it inside the sidebox instead of between them.

Thanks for the quick reply.
This is the original scripts in tpl_cc_accept.php

$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
$content .= '<img id="ccMC" class="cc_img" src="images/cc_logos/logo_mb2u.gif" alt="Maybank2u"/>' . "\n" .
$content .= '</div>' . "\n";

seems like the given solution has been converted into full html script i guess.

My Online Store
Sumri (The Founder)

26 Apr 2010, 10:27 AM
#9
kuroi avatar

kuroi

Totally Zenned

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

Re: GTI Custonm Templates Support

Just adding #ccaccept {text-align: center} would center your image.

But there is a different problem in that your add-in seems to be repeating the bix divs, and that couldn't be done by the code that you have posted. Is that code being overridden somewhere in your template.

Kuroi Web Design and Development | Twitter

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