Ankündigung

Einklappen
Keine Ankündigung bisher.

Sidebox In Define Page

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Sidebox In Define Page

    Hallo,

    weiss jemand wie ich z.B. die Live Multi Sidebox in eine define page bekomme?
    ich meine natürlich den Inhalt der Box.

    vielen lieben dank.

    #2
    Hi,

    wieso willst du diese denn in eine Define Page einbauen?

    Und hilf doch bitte nochmal auf die Sprünge, da ich das Tool nicht kenne...was ist die Live Multi Sidebox??

    Kommentar


      #3
      ist die live multi sidebox nicht eine sidebox wo die bilder entlang laufen?????

      Kommentar


        #4
        Zitat von Lissy73 Beitrag anzeigen
        Hi,

        wieso willst du diese denn in eine Define Page einbauen?

        Und hilf doch bitte nochmal auf die Sprünge, da ich das Tool nicht kenne...was ist die Live Multi Sidebox??
        die live multi ist die skype, messenger sidebox;

        ich habe glaube ich das problem gelöst:

        einfach in includes/templates/deintemplate/modules eine live_multi.php mit dem inhalt der z.B. vorhandenen search.php erstellen und den pfad anpassen.

        die sidebox auf single column stellen.

        den inhalt der /includes/templates/deintemplate/sideboxes/tpl_live_multi.php in der define page einfügen und fertig.


        p.s. die sidebox möchte ich auf der define page haben um nicht das ganze template voll sideboxen zu haben. da ich nur die linke spalte verwende.

        danke trotzdem an alle.

        vielleicht kann das hier ja auch jemand weiterhelfen

        Kommentar


          #5
          Ah ok...

          Vielleicht kannst du ja mal bei Gelegenheit einen Link oder ein Bild einstellen, damit deine Änderung auch Live zu sehen ist.

          @ Windgefluester

          ich glaube was du meinst ist eine Slideshow bzw. gibt es für ua. "Bestseller" eine Scrolling_Sidebox!
          Zuletzt geändert von Lissy73; 13.04.2010, 11:52.

          Kommentar


            #6
            hallo lissy,

            sobald ich das template fertig habe, stelle ich gerne einen link zur verfügung!

            liebe grüße

            Kommentar


              #7
              NewsManager

              sorry wenn ich das thema wieder aufgreife.

              aber ich schaffe es einfach nicht die sidebox des newsmanager aus dem download auf eine define page zu bekommen.

              hat jemand einen rat?

              Kommentar


                #8
                Prinzipiell nimmst Du den kompletten Code der includes/modules/sideboxes/DEINESIDEBOX.php und fügst den in das Template der Define Page ein, in der der Boxinhalt erscheinen soll.
                Hier ein Beispiel:
                Die Box Information soll auf der Seite Shippinginfo erscheinen.
                Dann müsste includes/templates/DEINTEMPLATE/tpl_shippinginfo_dafault.php z.B. so aussehen (Inhalt von includes/modules/sideboxes/information.php wurde eingefügt:

                Code:
                <?php
                /**
                 * Page Template
                 *
                 * @package templateSystem
                 * @copyright Copyright 2003-2005 Zen Cart Development Team
                 * @copyright Portions Copyright 2003 osCommerce
                 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                 * @version $Id: tpl_shippinginfo_default.php 3464 2006-04-19 00:07:26Z ajeh $
                 */
                ?>
                <div class="centerColumn" id="shippingInfo">
                <h1 id="shippingInfoHeading"><?php echo HEADING_TITLE; ?></h1>
                <?php
                /**
                 * information sidebox - displays list of general info links, as defined in this file
                 *
                 * @package templateSystem
                 * @copyright Copyright 2003-2006 Zen Cart Development Team
                 * @copyright Portions Copyright 2003 osCommerce
                 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                 * @version $Id: information.php 4132 2006-08-14 00:36:39Z drbyte $
                 */
                
                  unset($information);
                
                  if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
                    $information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';
                  }
                  if (DEFINE_PRIVACY_STATUS <= 1) {
                    $information[] = '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>';
                  }
                  if (DEFINE_CONDITIONS_STATUS <= 1) {
                    $information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
                  }
                  if (DEFINE_CONTACT_US_STATUS <= 1) {
                    $information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>';
                  }
                
                // Forum (phpBB) link:
                  if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed'])  && (PHPBB_LINKS_ENABLED=='true')) {
                    $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
                // or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
                // or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
                  }
                
                  if (DEFINE_SITE_MAP_STATUS <= 1) {
                    $information[] = '<a href="' . zen_href_link(FILENAME_SITE_MAP) . '">' . BOX_INFORMATION_SITE_MAP . '</a>';
                  }
                
                  // only show GV FAQ when installed
                  if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') {
                    $information[] = '<a href="' . zen_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a>';
                  }
                  // only show Discount Coupon FAQ when installed
                  if (DEFINE_DISCOUNT_COUPON_STATUS <= 1 && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') {
                    $information[] = '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>';
                  }
                
                  if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
                    $information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
                  }
                
                  require($template->get_template_dir('tpl_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_information.php');
                
                  $title =  BOX_HEADING_INFORMATION;
                  $title_link = false;
                
                  require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
                ?>
                <?php if (DEFINE_SHIPPINGINFO_STATUS >= 1 and DEFINE_SHIPPINGINFO_STATUS <= 2) { ?>
                
                <div id="shippingInfoMainContent" class="content">
                    
                <?php
                /**
                 * require the html_define for the shippinginfo page
                 */
                 
                  require($define_page);
                ?>
                </div>
                <?php } ?>
                
                <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
                </div>

                Kommentar


                  #9
                  das klappt bei mir nicht.

                  ich habe den inhalt der includes/modules/sideboxes/news_scroll_box.php

                  in

                  includes/templates/DEINTEMPLATE/templates/tpl_index_default.php

                  kopiert. wird aber nichts angezeigt. die sidebox ist aber aktiv

                  hier der code:

                  PHP-Code:
                  <?php
                  /**
                   * Page Template
                   *
                   * Main index page<br />
                   * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br />
                   * Centerboxes are called as necessary
                   *
                   * @package templateSystem
                   * @copyright Copyright 2003-2006 Zen Cart Development Team
                   * @copyright Portions Copyright 2003 osCommerce
                   * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                   * @version $Id: tpl_index_default.php 3464 2006-04-19 00:07:26Z ajeh $
                   */
                  ?>
                  <div class="centerColumn" id="indexDefault">


                  <?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
                  <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2>
                  <?php ?>

                  <!-- deprecated - to use uncomment this section
                  <?php if (TEXT_MAIN) { ?>
                  <div id="" class="content"><?php echo TEXT_MAIN?></div>
                  <?php ?>-->

                  <!-- deprecated - to use uncomment this section
                  <?php if (TEXT_INFORMATION) { ?>
                  <div id="" class="content"><?php echo TEXT_INFORMATION?></div>
                  <?php ?>-->

                  <?php if (DEFINE_MAIN_PAGE_STATUS >= and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
                  <?php
                  /**
                   * get the Define Main Page Text
                   */
                  ?>
                  <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>

                  <?php
                  //
                  // +----------------------------------------------------------------------+
                  // |zen-cart Open Source E-commerce                                       |
                  // +----------------------------------------------------------------------+
                  // | Copyright (c) 2003 The zen-cart developers                           |
                  // |                                                                      |
                  // | http://www.zen-cart.com/index.php                                    |
                  // |                                                                      |
                  // | Portions Copyright (c) 2003 osCommerce                               |
                  // +----------------------------------------------------------------------+
                  // | This source file is subject to version 2.0 of the GPL license,       |
                  // | that is bundled with this package in the file LICENSE, and is        |
                  // | available through the world-wide-web at the following url:           |
                  // | http://www.zen-cart.com/license/2_0.txt.                             |
                  // | If you did not receive a copy of the zen-cart license and are unable |
                  // | to obtain it through the world-wide-web, please send a note to       |
                  // | license@zen-cart.com so we can mail you a copy immediately.          |
                  // +----------------------------------------------------------------------+
                  // | Do Not Remove: Coded for Zen-Cart by geeks4u.com                     |
                  // | Dedicated to Memory of Amelita "Emmy" Abordo Gelarderes          |
                  // +----------------------------------------------------------------------+
                  // $Id: news_scroll_box.php,v 1.2 2004/08/26
                  //

                  $languages_id zen_db_prepare_input((int)$_SESSION['languages_id']);
                  $news_box_query $db->Execute("select nc.news_title, nc.news_content
                                                  from " 
                  TABLE_BOX_NEWS_CONTENT " nc, " TABLE_BOX_NEWS " n
                                                  where n.box_news_id = nc.box_news_id and nc.languages_id = " 
                  $languages_id " and n.news_status = 1 and now() between n.news_start_date and n.news_end_date");
                  while (!
                  $news_box_query->EOF) {
                    if((
                  $news_box_query->fields['news_title']) || ($news_box_query->fields['news_content'])){
                      require(
                  $template->get_template_dir('tpl_news_scroll_box.php'DIR_WS_TEMPLATE$current_page_base,'sideboxes') . '/tpl_news_scroll_box.php');

                      
                  $title =  BOX_HEADING_SCROLL_BOX;
                      
                  $left_corner false;
                      
                  $right_corner false;
                      
                  $right_arrow false;
                      
                  $title_link false;

                      require(
                  $template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
                      break;
                    } 
                    else{
                      
                  $news_box_query->MoveNext();
                    }
                  }
                  ?>
                  <?php 
                  ?>

                  <?php
                    $show_display_category 
                  $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
                    while (!
                  $show_display_category->EOF) {
                  ?>

                  <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
                  <?php
                  /**
                   * display the Featured Products Center Box
                   */
                  ?>
                  <?php 
                  require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
                  <?php 
                  ?>

                  <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
                  <?php
                  /**
                   * display the Special Products Center Box
                   */
                  ?>
                  <?php 
                  require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
                  <?php 
                  ?>

                  <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
                  <?php
                  /**
                   * display the New Products Center Box
                   */
                  ?>
                  <?php 
                  //require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
                  <?php 
                  ?>

                  <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?>
                  <?php
                  /**
                   * display the Upcoming Products Center Box
                   */
                  ?>
                  <?php 
                  include(DIR_WS_MODULES zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php ?>


                  <?php
                    $show_display_category
                  ->MoveNext();
                  // !EOF
                  ?>
                  </div>

                  Kommentar


                    #10
                    also das kann ich nicht verstehen

                    es geht jede sidebox so wie du es beschrieben hast oder so wie ich sie normalerweis einfüge mit:

                    PHP-Code:
                    <?php require(DIR_WS_TEMPLATE .('modules/live_multi.php')); ?>
                    habe da auch immer unter modules die entsprechende php file angelegt.

                    nur diese sidebox news_scroll_box will auf keiner art funktionieren.

                    wie ist das möglich???


                    p.s. ich hätte einfach gerne auf der startseite ein div mit den letzten news ohne eben die sidebox zu verwenden

                    Kommentar


                      #11
                      Entferne in includes/templates/DEINTEMPLATE/sideboxes/tpl_news_scroll_box.php folgende unnütze Funktion:
                      ca Zeile 45:
                      Code:
                      function prepString($prep_string){
                          $ret_string = '';
                      }
                      Dann gehts.

                      Kommentar

                      Info zu diesem Forenarchiv:
                      Mit Release von 1.5.7 wurde die deutsche Zen Cart Version auf eine reine DIY-Lösung umgestellt.
                      Für einen Support via Forum stehen keine personellen und zeitlichen Ressourcen mehr zur Verfügung.
                      Dieses Supportforum bleibt im Nur-Lesen-Modus als Wissensarchiv noch online verfügbar.
                      PM Funktionalität, Registrierung und Posten neuer Beiträge sind deaktiviert.
                      Zugriff auf Anhänge in den Postings ist auch ohne Registrierung/Einloggen möglich.
                      FAQ und Downloadbereich des Forums wurden in die neue umfangreiche Knowledgebase auf der zen-cart-pro.at Website übernommen.

                      Das Development der deutschen Zen Cart Version geht wie bisher auf Github weiter.
                      Wir werden auch weiterhin neue Versionen bereitstellen und die Onlinedokumentation/Knowledgebase aktualisieren.
                      Fehler in der Software können auf Github als Issues gemeldet werden.
                      Follow us
                      aktuelle version
                      Zen Cart 1.5.7g deutsch
                      vom 12.12.2023
                      [Download]
                      Lädt...
                      X