X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   test site missing what have I stuffed? (https://forum.x-cart.com/showthread.php?t=54623)

xtestedx 07-15-2010 10:27 PM

test site missing what have I stuffed?
 
Hi
Was putting together a new skin in 4.3 and from what i know I just made a new .tpl and included it as normal in home.tpl however I put in in
Code:

<div id="center">
          <div id="center-main">
IN HERE<==================================           
{include file="customer/evaluation.tpl"}
<!-- central space -->

.
Now x-cart says :
Warning: Smarty error: unable to read resource: "customer/evaluation.tpl" in C:\xampp\htdocs\xcart\include\lib\smarty\Smarty.cl ass.php on line 1093

Even after I have taken in out so no Idea what has gone wrong?
Im actually trying to get a full screen bg image fader using Supersized 2 (which is working).

This is the .tpl I was putting in
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">

       

       
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
       
        <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js"></script>
        <script src="http://dev.jquery.com/view/tags/ui/latest/ui/effects.core.js"></script>
        <script src="http://dev.jquery.com/view/tags/ui/latest/ui/effects.slide.js"></script>
        <script type="text/javascript" src="supersized.2.0.js"></script>
        {literal}
        <script type="text/javascript"> 
                $(function(){
                        $.fn.supersized.options = { 
                                startwidth: 640, 
                                startheight: 480,
                                vertical_center: 1,
                                slideshow: 1,
                                navigation: 1,
                                transition: 1, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left
                                pause_hover: 0,
                                slide_counter: 1,
                                slide_captions: 1,
                                slide_interval: 9000 
                        };
                $('#supersize').supersized();
            });
        </script>
    {/literal}
       
        <style type="text/css">
               
                *{
                        margin:0;
                        padding:0;
                }
               
                a{
                        color:#8FC2FF;
                        text-decoration: none;
                        outline: none;
                }
                a:hover{
                        text-decoration: underline;
                }
                img{
                        border:none;
                }
                body {
                        overflow:hidden;/*Needed to eliminate scrollbars*/
                        background:#000;
                }
                #content{
        margin:0px auto;
        height:100px;
        width:100%;
        bottom:1%;
        z-index: 3;
        position:absolute;
                }
                #contentframe{
        overflow: hidden;
        height: 100%;
        text-align:left;
        z-index: 3;
                }
                #slidecounter{
                        float:left;
                        color:#4F4F4F;
                        font:50px "Helvetica Neue", Arial, sans-serif;
                        font-weight:bold;
                        margin:18px 20px;       
                }
                #slidecaption{
                        overflow: hidden;
                        float:left;
                        color:#FFF;
                        font:26px "Helvetica Neue", Arial, sans-serif;
                        font-weight:bold;
                        margin:33px 0;
                }
                /*Supersized Stamp*/
                .stamp{
                        float: right;
                        margin: 25px 20px 0 0;
                }
                /*Supersize Plugin Styles*/
                #navigation{
                        background: url('{$SkinDir}/bgfader/images/navbg.gif') no-repeat;
                        float: right;
                        margin:22px 20px 0 0;
                }
                #loading {
                        position: absolute;
                        top: 49.5%;
                        left: 49.5%;
                        z-index: 3;
                        width: 24px;
                        height: 24px;
                        text-indent: -999em;
                        background-image: url('{$SkinDir}/bgfader/images/progress.gif');
                }
                #supersize{
                        position:fixed;
                }
                #supersize img, #supersize a{
                        height:100%;
                        width:100%;
                        position:absolute;
                        z-index: 0;
                }
                #supersize .prevslide, #supersize .prevslide img{
                        z-index: 1;
                }
                #supersize .activeslide, #supersize .activeslide img{
                        z-index: 2;
                }
               
               
        </style>
</head>

<body>

<!--Loading display while images load-->
<div id="loading">&nbsp;</div>

<!--Slides-->
<div id="supersize">
        <a href="images/IMG_0257.JPG"><img src="{$SkinDir}/bgfader/images/IMG_0257.JPG" title="Lovina Dream -Tie Style &amp; Crossover"/></a>
    <a href="{$SkinDir}/images/IMG_0257.JPG"><img src="{$SkinDir}/bgfader/images/IMG_0407.JPG" title="Blue Feather Effect"/></a>
    <a href="images/IMG_0257.JPG"><img src="{$SkinDir}/bgfader/images/IMG_8770fixed.jpg" title="High Voltage"/></a>
    <a href="images/IMG_0257.JPG"><img src="{$SkinDir}/bgfader/images/IMG_8784fixed..jpg" title="High Voltage"/></a>
    <a href="{$SkinDir}/images/IMG_0257.JPG"><img src="{$SkinDir}/bgfader/images/IMG_8991fixed.jpg" title="Lovina Dream"/></a>
        <a href="http://interfacelift.com/wallpaper_beta/details/988/paradise_lost.html"><img src="{$SkinDir}/bgfader/images/IMG_9007fixed.jpg" title="Lost Paradise - Squiggles"/></a>
        <a href="images/IMG_9011.JPG"><img src="{$SkinDir}/bgfader/images/IMG_9011.JPG" title="Lovina Dream"/></a>
    <a href="images/IMG_0257.JPG"><img src="{$SkinDir}/bgfader/images/IMG_8793fixed.jpg" title="Purple Smoke"/></a>
</div>

<!--Content area that hovers on top-->
<div id="content">
        <div id="contentframe">
       
                <div id="slidecounter"><!--Slide counter-->
                       
                </div>
                <div id="slidecaption"><!--Slide captions displayed here--></div>
                <!--Logo-->
               
       
                <!--Navigation-->
                <div id="navigation">
                        <a href="#" id="prevslide"><img src="{$SkinDir}/bgfader/images/back_dull.gif"/></a><a href="#" id="pauseplay"><img src="{$SkinDir}/bgfader/images/pause_dull.gif"/></a><a href="#" id="nextslide"><img src="{$SkinDir}/bgfader/images/forward_dull.gif"/></a>
                </div>
               
        </div>
</div>

</body>
</html>


Here is my home .tpl file
Code:

<html xmlns="http://www.w3.org/1999/xhtml">{*
$Id: home.tpl,v 1.107 2009/05/26 13:23:24 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<?xml version="1.0" encoding="{$default_charset|default:"iso-8859-1"}"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
{config_load file="$skin_config"}

<head>
  {include file="customer/service_head.tpl"}
<link rel="shortcut icon" href="favicon.ico" >
  <link rel="icon" type="image/gif" href="{$SkinDir}/images/custom/animated_favicon1.gif" >

<!--[if lt IE 7]>
<script src="{$SkinDir}/customer/iefix.js" type="text/javascript"></script>
<![endif]-->
<script type="text/javascript" src="{$SkinDir}/glider/jquery-1.3.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="{$SkinDir}/glider/featuredcontentglider.css" />
<script type="text/javascript" src="{$SkinDir}/glider/featuredcontentglider.js"></script>


</head>
<body{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}{if $container_classes} class="{foreach from=$container_classes item=c}{$c} {/foreach}"{/if}>
<div id="page-container">
  <div id="page-container2">
    <div id="content-container">
      <div id="content-container2">
        <div id="center">
          <div id="center-main">
            {include file="customer/evaluation.tpl"}
<!-- central space -->

            {if $main neq "catalog" || $current_category.category neq ""}
              {include file="customer/bread_crumbs.tpl"}
            {/if}

            {if $gcheckout_enabled && $main ne "cart" && $main ne "checkout" && $main ne "anonymous_checkout" && $main ne "order_message"}
              {include file="modules/Google_Checkout/gcheckout_top_button.tpl"}
            {/if}

            {include file="customer/dialog_message.tpl"}

            {if $page_title}
              <h1>{$page_title|escape}</h1>
            {/if}

            {if $active_modules.Special_Offers}
              {include file="modules/Special_Offers/customer/new_offers_message.tpl"}
            {/if}

            {include file="customer/home_main.tpl"}

            {include file="customer/bottom_menu.tpl"}

<!-- /central space -->

          </div>
        </div>
        <div id="right-bar">

          {if $categories && $active_modules.Flyout_Menus}
            {include file="customer/categories.tpl"}
          {/if}

          {if $active_modules.SnS_connector}
            {include file="modules/SnS_connector/button.tpl"}
          {/if}

          {if $active_modules.Feature_Comparison && $comparison_products ne ''}
            {include file="modules/Feature_Comparison/product_list.tpl" }
          {/if}

          {include file="customer/menu_cart.tpl" }

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

          {if $active_modules.Bestsellers}
            {include file="modules/Bestsellers/menu_bestsellers.tpl" }
          {/if}

          {if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"}
            {include file="modules/Manufacturers/menu_manufacturers.tpl" }
          {/if}

          {if $active_modules.Survey && $menu_surveys}
            {foreach from=$menu_surveys item=menu_survey}
              {include file="modules/Survey/menu_survey.tpl"}
            {/foreach}
          {/if}

          {if $active_modules.XAffiliate && $config.XAffiliate.partner_register eq 'Y' && $config.XAffiliate.display_backoffice_link eq 'Y'}
            {include file="partner/menu_affiliate.tpl" }
          {/if}

          {if $active_modules.Interneka}
            {include file="modules/Interneka/menu_interneka.tpl" }
          {/if}

          {include file="poweredby.tpl" }

        </div>
      </div>
    </div>

    <div class="clearing">&nbsp;</div>

    <div id="header">
      {include file="customer/head.tpl"}
    </div>

    <div id="footer">

      {if $active_modules.Users_online}
        {include file="modules/Users_online/menu_users_online.tpl"}
      {/if}

      {include file="customer/bottom.tpl"}

    </div>

    {if $active_modules.SnS_connector}
      {include file="modules/SnS_connector/header.tpl"}
    {/if}

    {if $active_modules.Google_Analytics && $config.Google_Analytics.ganalytics_code}
      {include file="modules/Google_Analytics/ga_code.tpl"}
    {/if}

  </div>
</div>
</body>
</html>


ARW VISIONS 07-16-2010 12:26 AM

Re: test site missing what have I stuffed?
 
Why is your .tpl an entirely new webpage?

That is not how this works. You need to put the appropriate segments in the appropriate places.

There is already a .tpl fo meta data, JS should go at the top of home.tpl

no need to declare doc type, html and body again.

not sue why it wold still throw the error when removed, but your approach is extremely wrong.

cflsystems 07-16-2010 03:01 AM

Re: test site missing what have I stuffed?
 
As Ashley said you cannot have html page in html page the way you are trying. You need to break the new template file and insert parts in appropriate templates. As for the error - make sure file is there and the name is exactly the same. After removing the code from home.tpl if you still see the error is probably because you need to clear xcart cache - run cleanup.php

xtestedx 07-24-2010 02:37 AM

Re: test site missing what have I stuffed?
 
I know How the templating system works. Dreamweaver adds all the declarations for doc type on its own I couldn't be bother to fix it yet. It looks quite different from the original tpl I'll admit, but if you actually use code diff etc It's not really that different. I general build the front page in one go... easier to edit with firebug changes etc. then move it in it own modules. Yet It has a lot of jquery in it which really needs to be called from the front page.

I could work out either Why it seemingly decided to delete itself... saw half of the files in the trash?? go figure

My next question is how can I get a full screen bg that is not a bg ie a div so I can use supersized2.( bg image fader)

Shamun 07-24-2010 04:24 AM

Re: test site missing what have I stuffed?
 
I couldnt understand that last post of yours, so I'll take a guess what you asked was how to allow fades.

Use png-24 with alphas and it'll allow fading. Then put it in a background declaration with either transparency or solid background.


All times are GMT -8. The time now is 04:05 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.