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

adding new box with links below Authentication

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-19-2004, 10:56 AM
 
pcdoktorn pcdoktorn is offline
 

Member
  
Join Date: Dec 2004
Posts: 22
 

Default adding new box with links below Authentication

Hi

Did check on forum for something that the subject is about and tested but does not seems to work on the version I use or I am completely stupid.
I am looking for a way to indert a box below Authentication where I could put in links.So when ppl would click on the link a new window would popup to tha tlink.Guess it is possible but Iam not even a bit of a coder so all info that you ppl could inform me with would be nice.
PS my english is not so good but hope you understand what I want
__________________
Version 4.0.9
Reply With Quote
  #2  
Old 12-20-2004, 05:53 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Hi pcdoktorn, it is actually easier than you think. Let's see if we can walk you though it.

1. Create a new menu file. Click on 'Edit Templates' in your admin menu. Scroll down below all the files and look for a box that says 'Create New File'. Let's call it links.tpl. Type that in the box and click on 'Create'.

2. Now we will need to tell X-cart to display this information. Click on Edit Templates again, and open Customer/home.tpl and replace this:

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

with this:

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

3. Now we need to actually put something in the links menu. Open up the file you created (links.tpl) and paste this code in the box:

Code:
{capture name=menu} Insert content here {/capture} { include file="menu.tpl" menu_title=$lng.lbl_links menu_content=$smarty.capture.menu }

Where it says 'Insert Content Here' you will put your links in, or whatever else you want to put in the box.

4. Now we will need to create a title label for the menu box. In your admin menu, click on Languages. Select your language, and then scroll down to where it says 'Select Topic' and select Labels. Scroll down to where it says 'Add New Entry'. In the first box, type $lbl_links. The second box type the name of the label (in this case Links is fine). In the third box, type how you want the Label (title) to actually appear. In this case, Links will be fine. Hit Apply Changes.

That should do it! Now a new menu should appear between the Authentication Menu and the News menu with the content you created. This works for version 4.0.x.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-20-2004, 07:11 AM
 
pcdoktorn pcdoktorn is offline
 

Member
  
Join Date: Dec 2004
Posts: 22
 

Default

Thx works like a charm
Was not that difficult in the end.
But it is for a person that got no skills in webpage creating
__________________
Version 4.0.9
Reply With Quote
  #4  
Old 12-20-2004, 07:43 AM
 
pcdoktorn pcdoktorn is offline
 

Member
  
Join Date: Dec 2004
Posts: 22
 

Default

Next problem
If I want to put in a php file into the box like http://pcdoktorn.wondernet.nu/orgcal/minical.php
How should it be written so it opens the file in that box ?
__________________
Version 4.0.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:02 AM.

   

 
X-Cart forums © 2001-2020