Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Add New Block in Side Menu - Color Help

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-13-2004, 04:44 AM
 
RobbeUSA RobbeUSA is offline
 

Member
  
Join Date: May 2003
Posts: 13
 

Default Add New Block in Side Menu - Color Help

Hi,

Need a little help here...... What I need to accomplish is to add a new "block" area at the bottom right of the screen, located under the NEWS block area, displaying the Comodo SSL Certificate Seal, with the correct background color.....

IБ─≥ve almost got it, except for the background color on the customer side of xcart, thatБ─≥s my problemБ─╕Б─╕

Here is what I did:

1 I created a new template: "/skin1/comodo_ssl.tpl"

2 Copied the contents of the "news.tpl" over to my new template "comodo_ssl.tpl".

3 Added the needed code/script to the "comodo_ssl.tpl" to display my SSL Seal.

4 Then deleted almost all of the old news code within the "comodo_ssl.tpl" file.

5 Now the "comodo_ssl.tpl" file is displaying the text and seal properly, time to add it to the bottom of the right hand menu.

Below is the "comodo_ssl.tpl" file.

Code:
{ include file="menu.tpl" dingbats="dingbats_secure.gif" menu_title=$lng.txt_128ssl } Point or click below to verify. <!-- TrustLogo Html Builder Code: Shows the logo at URL http://robbeusa.com/images/secure_site.gif Logo type is Secure Site Seal - For SSL Certificate holders ("SC") Not Floating //--> <center><script type="text/javascript">TrustLogo("http://robbeusa.com/images/secure_site.gif", "SC", "none");</script></center>


6 Within the template: "skin1/customer/home.tpl" I added { include file="comodo_ssl.tpl" } at the bottom of the file in order to display this new "block" at the bottom right.

7 Within the template: "single/home.tpl" I added { include file="comodo_ssl.tpl" } just under the "poweredby.tpl".

8 The new "comodo_ssl.tpl" is displayed properly (location) in both the customer side of xcart, and the admin side. But notice on the customer side, the background of the "comodo_ssl.tpl" is white, and on the admin side of xcart it's grey, like it should be....

-------- CUSTOMER SIDE --------

http://www.robbeusa.com/misc/xcart_customer_ssl.gif

-------- ADMIN SIDE --------

http://www.robbeusa.com/misc/xcart_admin_ssl.gif

What do I need to change in order to get the background of this new "comodo_ssl.tpl" to be grey on the customer side, instead of white?

Thanks,

Jeff Galford
Reply With Quote
  #2  
Old 01-13-2004, 04:49 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default

Try this revised 'comodo_ssl.tpl' :

Code:
{capture name=menu} Point or click below to verify. <!-- TrustLogo Html Builder Code: Shows the logo at URL http://robbeusa.com/images/secure_site.gif Logo type is Secure Site Seal - For SSL Certificate holders ("SC") Not Floating //--> <center> <script type="text/javascript"> TrustLogo("http://robbeusa.com/images/secure_site.gif", "SC", "none"); </script> </center> {/capture} { include file="menu.tpl" dingbats="dingbats_secure.gif" menu_title=$lng.txt_128ssl }
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #3  
Old 01-13-2004, 05:25 AM
 
RobbeUSA RobbeUSA is offline
 

Member
  
Join Date: May 2003
Posts: 13
 

Default

Hi,

THanks for the code update, but still have some problems. I cut and pasted your code from above, into the "comodo_ssl.tpl" file I have.

-------- Customer Side --------

http://www.robbeusa.com/misc/xcart_revised_1.gif

Now the only thing there is the title of the new block.

ANy ideas?

THx,
Jeff

BTW: I don't know if it means anything, but I also have code within the head.tpl which goes along with this "ssl site seal". The code in both places are needed to display the graphic, and get a popup / new window.
Reply With Quote
  #4  
Old 01-13-2004, 07:17 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

this should help

http://forum.x-cart.com/viewtopic.php?t=8138&highlight=
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 01-13-2004, 09:18 AM
 
RobbeUSA RobbeUSA is offline
 

Member
  
Join Date: May 2003
Posts: 13
 

Default

Shan,

Rock on buddy!!! That thread you linked nailed it....... dead nutz!!!

Mucho THANKS!!!

Jeff G
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:27 PM.

   

 
X-Cart forums © 2001-2020