Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Content Seiten OHNE Boxen

    ElectricArts

    • Frisch an Board
    • Beiträge: 79
    Content Seiten OHNE Boxen
    Antwort #75 am: 19. Mai 2011, 14:10:46
    Hallo,

    ich hab das, wie von Torsten vorgeschlagen, mit einer zweiten "index.html" und der Änderung der "index.php" gemacht. Nun fehlt mir aber beim Aufruf der boxenlosen "startseite.html" der ganze (modified eCommerce Shopsoftware)-Copyright-Teil. Was hab ich denn da vergessen?

    Viele Grüße

    Mario

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Content Seiten OHNE Boxen
    Antwort #76 am: 19. Mai 2011, 15:24:26
    Da hast du bestimmt vergessen ein DIV zu schliessen.

    Hast du mal einen Link zur Seite?

    Grüße

    Torsten

    ElectricArts

    • Frisch an Board
    • Beiträge: 79
    Content Seiten OHNE Boxen
    Antwort #77 am: 19. Mai 2011, 18:24:24
    Leider nicht, ich kämpfe im Moment noch lokal. Ich könnte aber meine "startseite.html" zeigen. ;-)

    Code: PHP  [Auswählen]
    {config_load file="$language/lang_$language.conf" section="index"}
    <div id="page_wrap">
        <div id="header">
        <div class="wrap">
        {*Home-Link Logo*}
            <a href="{php}echo xtc_href_link('index.php');{/php}"><img src="{$tpl_path}img/layout/header_logo.jpg" alt="{$store_name}" id="logo" /></a>
            {*Home-Link Logo Ende*}
            <div id="search">{$box_SEARCH}</div>
          </div>
        </div>
        <div id="topmenuwrap">
           <div class="wrap">
            <ul id="topmenu">
                        <li><a href="{$index}"{if strstr ($smarty.server.PHP_SELF, $smarty.const.FILENAME_DEFAULT)} {if $smarty.get.cPath==null and $smarty.get.manufacturers_id==''} class="active"{/if}{/if}>{#link_index#}</a></li>
                       <li><a href="{$cart}"{if strstr ($smarty.server.PHP_SELF, $smarty.const.FILENAME_SHOPPING_CART)} class="active"{/if}>{#link_cart#}</a></li>
                       {if $account}
                        <li><a href="{$account}"{if strstr ($smarty.server.PHP_SELF, $smarty.const.FILENAME_ACCOUNT)} class="active"{/if}>{#link_account#}</a></li>
                       {/if}
                        {*if $smarty.session.customers_status.customers_status_id == '1'}
                        <li><a href="{php}echo xtc_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL');{/php}"{if strstr ($smarty.server.PHP_SELF, $smarty.const.FILENAME_CREATE_ACCOUNT)} class="active"{/if}>{#new_customer#}</a></li>
                       {/if*}
                        <li><a href="{$checkout}"{if strstr ($smarty.server.PHP_SELF, $smarty.const.FILENAME_CHECKOUT_SHIPPING)} class="active"{/if}>{#link_checkout#}</a></li>
                       {if $smarty.session.customer_id}
                        <li><a href="{$logoff}"{if strstr ($smarty.server.PHP_SELF, $smarty.const.FILENAME_LOGOFF)} class="active"{/if}>{#link_logoff#}</a></li>
                       {else}
                        <li><a href="{$login}"{if strstr ($smarty.server.PHP_SELF, $smarty.const.FILENAME_LOGIN)} class="active"{/if}>{#link_login#}</a></li>
                       {/if}
                    </ul>
              <div id="languages">{$box_LANGUAGES}</div>
           </div>
        </div>
        <div class="wrap">
        <div id="breadcrumb">{$navtrail}
        </div>
        </div>
        <div class="wrap">
        <div id="contentwrap">

        {*Box Kategorien Startseite*}      

        <div id="start_categories">
        <img class="start_cat" src="{$tpl_path}img/layout/front_mode.jpg" alt="" />
        <img class="start_cat" src="{$tpl_path}img/layout/front_taschen.jpg" alt="" />
        <img class="start_cat" src="{$tpl_path}img/layout/front_acess.jpg" alt="" />
        </div>

        {*Box Kategorien Startseite Ende*}  

        </div>
        </div>
        <div id="footer">
        <div class="wrap">
        <div id="payment_section">
        </div>
    <div id="more_section">
    {$box_CONTENT}
    </div>
    <p class="footercopy">{$smarty.const.TITLE} © {$smarty.now|date_format:"%Y"}</p>
    </div>
    </div>
    </div>
     
    Viele Grüße

    Mario

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Content Seiten OHNE Boxen
    Antwort #78 am: 19. Mai 2011, 22:25:50
    Argh... ich wollte jetzt keine DIVs um die Uhrzeit zählen. :-PP

    Kannst du das nicht auf deinem Testserver mal hochladen und einen Link posten?

    Grüße

    Torsten

    ElectricArts

    • Frisch an Board
    • Beiträge: 79
    Content Seiten OHNE Boxen
    Antwort #79 am: 20. Mai 2011, 05:46:40
    Ok, aber nur weil Du es bist ...  :D

    Link

    User: caz
    PW: cazandemma

    Viele Grüße

    Mario

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Content Seiten OHNE Boxen
    Antwort #80 am: 20. Mai 2011, 09:49:44
    Aus irgendeinem Grund wird bei dir auf der "startseite.html" die "/includes/application_bottom.php" nicht inkludiert, daher sind dort auch folgende Fehler mit dem HTML Validator zu finden:
    Result: 2 Fehler / 0 Warnungen

    line 151 column 1 - Fehler: end tag for "body" omitted, but OMITTAG NO was specified
    line 85 - Info: start tag was here
    line 151 column 1 - Fehler: end tag for "html" omitted, but OMITTAG NO was specified
    line 2 - Info: start tag was here
    Schau mal in die "/includes/application_bottom.php", dort findest du:

    Code: PHP  [Auswählen]
    echo '</body></html>';
     
    Grüße

    Torsten

    ElectricArts

    • Frisch an Board
    • Beiträge: 79
    Content Seiten OHNE Boxen
    Antwort #81 am: 20. Mai 2011, 13:15:12
    Verstehe ich nicht. Ich habe eben eine originale index.html kopiert und eine startseite.html daraus gemacht. Selbes Ergebnis. Kein Copyright auf der Startseite.  :?

    Viele Grüße

    Mario

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Content Seiten OHNE Boxen
    Antwort #82 am: 20. Mai 2011, 13:31:54
    Ahhh, okay! Dann hast du einen Fehler beim Einbinden des Codes in der "index.php" gemacht. Poste mal bitte den Code, den du unten nach Anleitung ("Verschiedene Templates in einem xt:Commerce Onlineshop") geändert hast.

    Grüße

    Torsten

    ElectricArts

    • Frisch an Board
    • Beiträge: 79
    Content Seiten OHNE Boxen
    Antwort #83 am: 20. Mai 2011, 13:58:57
    Das hatte ich mir auch schon gedacht, aber nichts gefunden. Ich muss mich wirklich mit PHP beschäftigen. Ich komm da wohl nicht vorbei. Gibt's Buchempfehlungen (gerne auch englisch)?

    Hier meine komplette "index.php":

    Code: PHP  [Auswählen]
    <?php

    /* -----------------------------------------------------------------------------------------
       $Id: index.php 1321 2005-10-26 20:55:07Z mz $  

       XT-Commerce - community made shopping
       http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))

       Copyright (c) 2003 XT-Commerce
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(default.php,v 1.84 2003/05/07); www.oscommerce.com
       (c) 2003      nextcommerce (default.php,v 1.13 2003/08/17); www.nextcommerce.org

       Released under the GNU General Public License
       -----------------------------------------------------------------------------------------
       Third Party contributions:
       Enable_Disable_Categories 1.3                Autor: Mikel Williams | mikel@ladykatcostumes.com
       Customers Status v3.x  (c) 2002-2003 Copyright Elari elari@free.fr | www.unlockgsm.com/dload-osc/ | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/


    include ('includes/application_top.php');

    // create smarty elements

    $smarty = new Smarty;

    // include boxes
    require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php');

    // the following cPath references come from application_top.php
    $category_depth = 'top';
    if (isset ($cPath) && xtc_not_null($cPath)) {
            $categories_products_query = "select count(*) as total from ".TABLE_PRODUCTS_TO_CATEGORIES." where categories_id = '".$current_category_id."'";
            $categories_products_query = xtDBquery($categories_products_query);
            $cateqories_products = xtc_db_fetch_array($categories_products_query, true);
            if ($cateqories_products['total']> 0) {
                    $category_depth = 'products'; // display products
            } else {
                    $category_parent_query = "select count(*) as total from ".TABLE_CATEGORIES." where parent_id = '".$current_category_id."'";
                    $category_parent_query = xtDBquery($category_parent_query);
                    $category_parent = xtc_db_fetch_array($category_parent_query, true);
                    if ($category_parent['total']> 0) {
                            $category_depth = 'nested'; // navigate through the categories
                    } else {
                            $category_depth = 'products'; // category has no products, but display the 'no products' message
                    }
            }
    }

    require (DIR_WS_INCLUDES.'header.php');

    include (DIR_WS_MODULES.'default.php');
    $smarty->assign('language', $_SESSION['language']);

    $smarty->caching = 0;
    if($category_depth == 'top'){
    $smarty->display(CURRENT_TEMPLATE.'/startseite.html');
    }else{
    $smarty->display(CURRENT_TEMPLATE.'/index.html');
    }
     

    koshiro

    • Fördermitglied
    • Beiträge: 2.297
    Content Seiten OHNE Boxen
    Antwort #84 am: 20. Mai 2011, 14:51:22
    Hallo ElektricArts,
    tausche mal das hier
    Code: PHP  [Auswählen]
    $smarty->caching = 0;
    if($category_depth == 'top'){
    $smarty->display(CURRENT_TEMPLATE.'/startseite.html');
    }else{
    $smarty->display(CURRENT_TEMPLATE.'/index.html');
    }
    Gegen das hier.

    Code: PHP  [Auswählen]
    $smarty->caching = 0;
    if (!defined('RM'))
      $smarty->load_filter('output', 'note');
    if($category_depth == 'top'){
    $smarty->display(CURRENT_TEMPLATE.'/startseite.html');
    }else{
    $smarty->display(CURRENT_TEMPLATE.'/index.html');
    }
    include ('includes/application_bottom.php');
    Müßte so passen.
    Gruß
    Micha

    ElectricArts

    • Frisch an Board
    • Beiträge: 79
    Content Seiten OHNE Boxen
    Antwort #85 am: 20. Mai 2011, 15:01:26
    Hi Micha,

    vielen Dank! Hat geklappt. Was hab ich denn falsch gemacht? Ich dachte, wenigstens copy & paste kann ich ...  :oops:

    Viele Grüße

    Mario

    GTB

    • modified Team
    • Gravatar
    • Beiträge: 6.306
    • Geschlecht:
    Content Seiten OHNE Boxen
    Antwort #86 am: 20. Mai 2011, 16:06:47
    [...] Gibt's Buchempfehlungen (gerne auch englisch)?
    [...]

    Schau mal die Links in meiner Signatur an. ;)

    Gruß Gerhard

    ElectricArts

    • Frisch an Board
    • Beiträge: 79
    Content Seiten OHNE Boxen
    Antwort #87 am: 20. Mai 2011, 16:14:09
    Hallo Gerhard,

    danke! Hatte ich als Bookmark schon. Lesen am Monitor lässt mich nach längerer Zeit ziemlich ermüden. Gibts auch was empfehlenswertes als gedruckte Ausgabe? Zum nachschlagen ist online ja ok, aber um das komplett zu lernen wäre mir ein richtiges Buch lieber ...

    Viele Grüße

    Mario

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Content Seiten OHNE Boxen
    Antwort #88 am: 20. Mai 2011, 17:36:59
    [...] Was hab ich denn falsch gemacht? Ich dachte, wenigstens copy & paste kann ich ...  :oops:
    [...]

    Eigentlich gar nicht, wie ich gerade sehe... die Anleitung ist einfach falsch!

    Ich erstelle dafür mal eine neue Anleitung, siehe: ANLEITUNG: Startseite mit eigenem Template

    [...] Gibt's Buchempfehlungen (gerne auch englisch)?
    [...]

    Zitat
    PHP 5.3 und MySQL 5.1: Grundlagen, Anwendung, Praxiswissen, Objektorientierung, MVC, Sichere Webanwendungen, PHP-Frameworks, Performancesteigerungen, CakePHP (Galileo Computing)
    ISBN-10: 9783836213776
    ISBN-13: 978-3836213776
    ASIN: 383621377X

    bzw.:

    Zitat
    PHP 5.3 und MySQL 5.5: Grundlagen, Anwendung, Praxiswissen, Objektorientierung, MVC, Sichere Webanwendungen, PHP-Frameworks, Performancesteigerungen, CakePHP (Galileo Computing)
    ISBN-10: 9783836216456
    ISBN-13: 978-3836216456
    ASIN: 3836216450

    Grüße

    Torsten

    joachim.k

    • Neu im Forum
    • Beiträge: 3
    Re: Content Seiten OHNE Boxen
    Antwort #89 am: 27. Oktober 2011, 11:29:31
    Hallo und einen schönen guten Morgen.

    Ich möchte nochmal den Beitrag vom 20. Juli 2009 aufgreifen:

    In der 1.05 Version funktioniert das offensichtlich nicht oder ich habe ein dickes Brett vor dem Kopf. Kann mir einer sagen, was hier falsch läuft? Es kommt keine Fehlermeldung, aber es wird einfach die id=contenthalf nicht angesprochen, also funktioniert die Abfragebedingung nicht, denke ich. Ich finde den Fehler aber nicht. Das Ausblenden der Boxen funktioniert problemlos.

    Die Seite ist hier zu finden: http://winnlodge.de/modified eCommerce Shopsoftwareod/ (noch Baustelle) und hier kommt die "index.html":

    Code: PHP  [Auswählen]
    {config_load file="$language/lang_$language.conf" section="index"}
    <div id="staticcart">
      <div id="staticcartinner">
        <div id="links"> {if $smarty.session.customers_status.customers_status_id == '1'} &raquo; <a href="{php}echo xtc_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL');{/php}"><strong>{#new_customer#}</strong></a>    
        {/if}
          {if $smarty.session.customer_id} &raquo; <a href="{$logoff}"><strong>{#link_logoff#}</strong></a>    
        {else} &raquo; <a href="{$login}"><strong>{#link_login#}</strong></a>    
        {/if} </div>
        <div id="cart">{if !strstr ($smarty.server.PHP_SELF, 'checkout')}{$box_CART}{/if}</div>
        <div id="suche">{$box_SEARCH}</div>
      </div>
    </div>
    <div id="wrap">
        <div id="header">
            <div id="logo"><img src="{$tpl_path}img/spacer.gif" width="400" alt="{$store_name}" /></div>
        </div>
         <div id="breadcrumb">{$navtrail}</div>  
        <div id="contentwrap"> {if !strstr ($smarty.server.PHP_SELF, 'checkout')}
            <div id="leftcol">{$box_CATEGORIES}{$box_CONTENT}{$box_INFORMATION}{$box_LAST_VIEWED}{$box_SPECIALS}{$box_WHATSNEW}{$box_LOGIN}{$box_ADMIN}</div>
            {/if}
            <div
                    {if strstr ($smarty.server.PHP_SELF, 'content')}
                                    id="contenthalf"
                            {elseif !strstr ($smarty.server.PHP_SELF, 'checkout')}
                                    id="content"
                            {else}
                                    id="contentfull"
                    {/if}
                     >
            {if strstr ($smarty.server.PHP_SELF, 'index')}
                {if $smarty.get.cPath==null and $smarty.get.manufacturers_id==''}
                     {if $BANNER}{$BANNER}{/if}
               {/if}
            {/if}
            {$main_content}</div>
        {if !strstr ($smarty.server.PHP_SELF, 'checkout')}
       
                    {if strstr($smarty.server.PHP_SELF, 'index')}
                            {if $smarty.get.cPath==null and $smarty.get.manufacturers_id==''}
                                    <div id="rightcol">
                                            {$box_TAG_CLOUD}
                                            <a href="" alt="Info Wellpappe" title="Info Wellpappe"><img  src="http://kartonabwerk.de/images/banner/wellpappe.jpg"></a>
                                            <a href="" alt="Info Wellpappe" title="Info Wellpappe"><img  src="http://kartonabwerk.de/images/banner/wellarten.jpg"></a>
                                            <a href="" alt="Info FEFCO-Code" title="Info FEFCO-Code"><img  src="http://kartonabwerk.de/images/banner/fefco.jpg"></a>
                                            <a href="" alt="Info Paketgr&ouml;&szlig;en" title="Info Paketgr&ouml;&szlig;en"><img  src="http://kartonabwerk.de/images/banner/versandgr.jpg"></a>
                                    </div>
                            {/if}
                    {/if}
            </div>
        {/if} </div>
    <p class="footer">{$smarty.const.TITLE} &copy; {$smarty.now|date_format:"%Y"} | Template &copy; 2009 by modified eCommerce Shopsoftware eCommerce Shopsoftware</p>
    </div>

    Die css ist um die zusätzliche Klasse erweitert

    Code: CSS  [Auswählen]
    /* MAIN CONTENT */
    #content {
    float:left;
    width:590px;
    padding:0 25px;
    margin-bottom:15px;
    }
    #contenthalf {
    width:725px;
    padding:0 0 0 225px;
    margin-bottom:15px;
    }
    #contentfull {
    width:920px;
    padding:0 30px;
    margin-bottom:15px;
    }

    /* CATEGORY MENU */

    Einen schönen Tag und schon mal ein fettes Danke.

    Joachim
    0 Antworten
    1932 Aufrufe
    12. März 2014, 15:28:54 von Toby
    10 Antworten
    8250 Aufrufe
    15. Juni 2012, 15:03:17 von pastor
    3 Antworten
    3585 Aufrufe
    05. Dezember 2011, 16:57:26 von Tomcraft
    10 Antworten
    7814 Aufrufe
    03. April 2015, 10:46:01 von Nils