View Single Post
  #16  
Old 11-26-2002, 08:24 AM
 
designfinger designfinger is offline
 

Newbie
  
Join Date: Nov 2002
Location: UK
Posts: 5
 

Default About us page..... can't get it to work

Hi,
can anyone help me. I've tried and tried desperately to get the about us page to work as per:

************************************************** **********
Q: I want to add aditional text page to X-cart where I can place some additional info about my site, how it can be done?
A: 1. First you have to edit template customer/home.tpl

Create new menu item that will point to your page, you can put it for example after help menu section (the code between HTML comments):

{ include file="help.tpl" }

<table border=0 cellPadding=5 cellSpacing=0 width=100%>
<tr><td colspan=2 class="TableLeftElements">
About us
</td></tr>
</table>

</td>
<td width=20> </td>
<td valign=top>



Then add selector which will diplay your About Us template in the center of the cart:



{if $smarty.get.mode eq "subscribed"}
{include file="main/subscribe_confirmation.tpl"}


{elseif $smarty.get.mode eq "about_us"}
{include file="main/about_us.tpl"}


{elseif $smarty.get.mode eq "unsubscribed"}
{include file="main/unsubscribe_confirmation.tpl"}

2. Then create About Us template that will be displayed in the center, create file skin1/main/about_us.tpl and put the following lines there:

{ include file="location.tpl" last_location="About Us"}
{capture name=dialog}
Put your about us text here...
{/capture}
{ include file="dialog.tpl" title="Information about our company" content=$smarty.capture.dialog extra="width=1 00%"}
************************************************** *********

I've edited the code in home.tpl and home_main.tpl as specified, and i have created a file "about_us.tpl" in folder skin1/main/about_us.tpl.

All i'm getting is:

"Parse error: parse error in /home/folder/public_html/V2/Cart/templates_c/N17/N1714041693/0.php on line 12"

on the home page and the about us link refuses to work.

What's wrong with it? Is there a typo error in the information given in the FAQ?

I can't seem to be able to change the file CHMOD settings through CuteFTP either from 666 to 777. Does anyone else find this?


I hope someone can help me,
many thanks in advance,

Mark ("Frustrated Carter!!! )
Reply With Quote