| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
how to movie login menu to left column on top | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I want to move my auth.tpl or login tpl to left side on top where x-cart standard menu is, on the top of that. here is my code, ---------------------------------------------------------------------------------- {* $Id: home.tpl,v 1.50 2003/04/09 07:41:05 olga Exp $ *} { config_load file="$skin_config" } <html> <head> <title>{$lng.txt_site_title} {if $main eq "catalog"} {if $location eq ""} {$lng.txt_subtitle_home} {else} {strip} {section name=position loop=$location start=0 } {if %position.last% eq "true"} - {$location[position].0|escape}{/if} {/section} {/strip} {/if} {elseif $main eq "product"} {if $product.product ne ''} - {$product.product}{/if} {elseif $main eq "help"} {$lng.txt_subtitle_help} {elseif $main eq "cart"} {$lng.txt_subtitle_cart} {elseif $main eq "checkout"} {$lng.txt_subtitle_checkout} {elseif $main eq "order_message"} {$lng.txt_subtitle_thankyou} {/if} </title> { include file="meta.tpl" } <link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}"> </head> <body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> { include file="rectangle_top.tpl" } { include file="head.tpl" } {foreach from=$cat_levels item=v key=cat_level} {if $cat_level eq 0} <TABLE cellspacing=0 cellpadding=0 width=100%> <tr height=38> <td nowrap width=48 background="{$ImagesDir}/tab_space.gif">[img]{$ImagesDir}/spacer.gif[/img]</td> {foreach from=$v item=v2 key=k} {if $k > 0} <td width=3 background="{$ImagesDir}/tab_space.gif">[img]{$ImagesDir}/spacer.gif[/img]</td> {/if} {if $v2.selected eq "Y"} <td width=6>[img]{$ImagesDir}/tab_s_1.gif[/img]</td> <td nowrap align=center background="{$ImagesDir}/tab_s_2.gif"><font style="font-size: 12px; color: #ffffff; FONT-WEIGHT: bold;">{$v2.category}</font></td> <td width=6>[img]{$ImagesDir}/tab_s_3.gif[/img]</td> {else} <td width=6>[img]{$ImagesDir}/tab_n_1.gif[/img]</td> <td nowrap align=center background="{$ImagesDir}/tab_n_2.gif"><font style="font-size: 12px; color: #ffffff; FONT-WEIGHT: bold;">{$v2.category}</font></td> <td width=6>[img]{$ImagesDir}/tab_n_3.gif[/img]</td> {/if} {/foreach} <td width=100% background="{$ImagesDir}/tab_space.gif">[img]{$ImagesDir}/spacer.gif[/img]</td> </tr> </TABLE> {elseif $cat_level eq 1} <TABLE cellspacing=3 cellpadding=2 width=100% bgcolor=#ff8040> <tr> <td bgcolor="#FB8040" style="font-size: 12px;"> {foreach from=$v item=v2 key=k} {if $k > 0}|{/if} {if $v2.selected eq "Y"} <font style="color: #ffef42; FONT-WEIGHT: bold;">{$v2.category}</font> {else} {$v2.category} {/if} {/foreach} </td> </tr> </TABLE> {/if} {/foreach} <TABLE cellspacing=0 cellpadding=0 bgcolor=#ff8040 width=100%> <TR> <TD height=10 bgcolor=#ff8040>[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> </TABLE> <table border=0 width="100%" cellpadding=0 cellspacing=0 align="center"> <tr> <td class=VertMenuBox width=6></td> <td class=VertMenuBox width=150 valign=top> {* include file="customer/categories.tpl" *} {if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"} { include file="modules/Bestsellers/menu_bestsellers.tpl" } {/if} { include file="sale.tpl" } {if $active_modules.Gift_Certificates ne "" or $active_modules.Product_Configurator ne ""} {include file="customer/special.tpl"} {/if} {*include file="customer/main/menu_new_products.tpl"*} {include file="customer/main/menu_cs_products.tpl"} { include file="help.tpl" } </td> <td width=20></td> <td valign=top> {include file="customer/home_main.tpl"} </td> <td width=20></td> <td width=150 valign=top> { include file="customer/main/mh_products.tpl" } { include file="customer/main/u_products.tpl" } { include file="customer/menu_cart.tpl" } {if $login eq "" } { include file="auth.tpl" } {else} { include file="authbox.tpl" } {/if} { include file="news.tpl" } {if $active_modules.Interneka ne ""} { include file="modules/Interneka/menu_interneka.tpl" } {/if} { include file="poweredby.tpl" } </td> </tr> </table> { include file="rectangle_bottom.tpl" } </body> </html> <font color="#FFFFFF">Hindi movies, Tamil movies, Malayalam movies, Gujarati movies, Punjabi movies, Kannada movies, Bengali movies, Indian dvd rentals, Bollywood, Bollywood movies, Bollywood films, Desi movies, Desi dvds, Indian portal, Desipadam, Telugu movies,</font> --------------------------------------------------------------------------------- sorry but i am really dumb in php i tried to movie it but does not show up correctly. Thanks |
|||||||
#2
|
|||||||
|
|||||||
![]() why dont you try things before posting...it is a lot easier to learn that way
![]()
__________________
ex x-cart guru ![]() |
|||||||
#3
|
|||||||
|
|||||||
![]() I tried that 3 times, but when I go for preview whole page stays blank freezed
|
|||||||
#4
|
|||||||
|
|||||||
![]() Code:
is the bit that puts the log in menu where it is, move it to wherever you like ![]()
__________________
ex x-cart guru ![]() |
|||||||
#5
|
|||||||
|
|||||||
![]() Thanks it Worked!
|
|||||||
#6
|
|||||||
|
|||||||
![]() thanks - for this I have successfully managed to change the order of the bits in my Vertical Right Column doing this !
If you visit www.makeuwell.com.au and look at the right column, I am also trying to shift the bulkbuy inside a menu border just like the logon section and the cart section. Ultimately I would also like to add a border around the health alerts too. I have tried placing the menu_border.tpl everywhere but everytime I shift it, I stuff something else up...any suggestions for how to get the words in the right boxes? <br /> {capture name=menu} Spend over $180 in one order to receive free shipping! <br> <br> Simply enter the coupon code <br><br><strong>bulkbuy</strong> <br> <br> when you check out. {/capture} {include file="menu_border.tpl" dingbats="dingbats_categorie.gif"} {include file="menu.tpl" dingbats="dingbats_orders.gif" menu_title=$lng.TITLE_LNG_NAME menu_content=$smarty.capture.menu } <br /> {include file="poweredby.tpl" } <br /> </tr> </table> {include file="rectangle_bottom.tpl" } {if $active_modules.Google_Analytics ne "" && $config.Google_Analytics.ganalytics_code ne ""} {include file="modules/Google_Analytics/ga_code.tpl"} {/if} </body> </html> {/if}
__________________
x-cart gold 4.1.9 x-cart gold 4.1.5 www.makeuwell.com.au www.amberbebe.com Sydney Australia |
|||||||
#7
|
|||||||||
|
|||||||||
![]() make .tpl files for you content
like this.. {* $Id: authbox.tpl,v 1.25.2.1 2007/09/03 06:15:21 max Exp $ *} {capture name=menu} Spend over $180 in one order to receive free shipping! <br> <br> Simply enter the coupon code <br><br><strong>bulkbuy</strong> <br> <br> when you check out. {/capture} { include file="menu.tpl" dingbats="dingbats_whateveryouwant.gif" menu_title="Bluk Menu" menu_content=$smarty.capture.menu } ok change the dingbat name to whatever you want the dingbat name to be. you must have the associated image. also change the menu_title to whatever you want. up load the new .tpl files to your home.tpl folder. include the new .tpl filed where ever you want them. {include file="bulk.tpl"} That should do it.
__________________
xcart 5.1.2 |
|||||||||
#8
|
|||||||
|
|||||||
![]() thanks, I think have it...
So if I have understood correctly you are saying the best way to accomplish this is to create a new .tpl file and then call up that file in the vert right column is that right? Also when you say call the dingbat whatever you like - do i first have to create a new graphic for it? or can I just have no graphic?
__________________
x-cart gold 4.1.9 x-cart gold 4.1.5 www.makeuwell.com.au www.amberbebe.com Sydney Australia |
|||||||
#9
|
|||||||||
|
|||||||||
![]() that's right.
and you can have no dingbat just leave it as ""
__________________
xcart 5.1.2 |
|||||||||
#10
|
|||||||
|
|||||||
![]() HI ashley,
thanks for all your help. Just a couple of little things... 1) where do I save the image for the dingbat to? 2) If I want to put the news.tpl in a box too, do I just go: {* $Id: authbox.tpl,v 1.25.2.1 2007/09/03 06:15:21 max Exp $ *} {include file="news.tpl" } { include file="menu.tpl" dingbats="dingbats_news.gif" menu_title=$lng.lbl_news menu_content=$smarty.capture.menu }
__________________
x-cart gold 4.1.9 x-cart gold 4.1.5 www.makeuwell.com.au www.amberbebe.com Sydney Australia |
|||||||
|
|||
X-Cart forums © 2001-2020
|