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

how to movie login menu to left column on top

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-04-2003, 10:24 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default how to movie login menu to left column on top

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
Reply With Quote
  #2  
Old 08-04-2003, 10:28 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

why dont you try things before posting...it is a lot easier to learn that way
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 08-04-2003, 10:56 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default .

I tried that 3 times, but when I go for preview whole page stays blank freezed
Reply With Quote
  #4  
Old 08-04-2003, 11:00 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Code:
{if $login eq "" } { include file="auth.tpl" } {else} { include file="authbox.tpl" } {/if}

is the bit that puts the log in menu where it is, move it to wherever you like
__________________
ex x-cart guru
Reply With Quote
  #5  
Old 08-04-2003, 09:27 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default .

Thanks it Worked!
Reply With Quote
  #6  
Old 01-12-2009, 04:40 PM
 
ladybird ladybird is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 93
 

Default Re: how to move login menu to left column on top

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
Reply With Quote
  #7  
Old 01-12-2009, 05:15 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: how to movie login menu to left column on top

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
Reply With Quote
  #8  
Old 01-12-2009, 07:19 PM
 
ladybird ladybird is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 93
 

Default Re: how to movie login menu to left column on top

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
Reply With Quote
  #9  
Old 01-12-2009, 07:22 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: how to movie login menu to left column on top

that's right.

and you can have no dingbat just leave it as ""
__________________
xcart 5.1.2
Reply With Quote
  #10  
Old 01-13-2009, 01:19 AM
 
ladybird ladybird is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 93
 

Default Re: how to movie login menu to left column on top

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
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 07:22 AM.

   

 
X-Cart forums © 2001-2020