#1 (permalink)  
Alt 30.06.2004, 01:31
Benutzerbild von karabey
Erfahrener Benutzer
 
Registriert seit: 13.04.2004
Beiträge: 156
Standard

Hallo

Da gibts mal einige Probleme bei mir und das sogar bei den Boxen. Boxen die ich bis jetzt erstellte hatten war keine Problem aber mit dem gibt es probleme. Also ich fang mal besser gesagt mit die Boxen an.

Bei boxes.php

Code:
include(DIR_WS_BOXES . 'categories.php');
include(DIR_WS_BOXES . 'links.php');
include(DIR_WS_BOXES . [COLOR=red]'live.php'[/COLOR]);
erstellt

box_live.html

Code:
{config_load file="$language/lang_$language.conf" section="boxes"} 

<table width="224" border="0" cellpadding="0" cellspacing="0">
 <tr>
  <td class="infoBoxHeading"><table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
     <td class="infoBoxHeading">{#heading_live#} </td>
         </tr>
  </table></td>
 </tr>
 <tr>
  <td class="infoBox" align="right" background="{$tpl_path}img/block-bg.gif"><table width="95%" border="0" cellpadding="2" cellspacing="0">
   <tr>
 <td class="bodyleft"><img src="{$tpl_path}img/pixel_trans.gif" width="3" height="1" alt="" style="display: block;" /></td>
 <td class="bodymain">

<!#{$BOX_CONTENT} BEGIN --> 

 <p align="center" style="margin-top: 0; margin-bottom: 0">
<b><font face="Tahoma" size="1">Nehmen Sie Kontakt mit Uns</font></b><p align="center" style="margin-top: 0; margin-bottom: 0">
<b><font face="Tahoma" size="1"><a href="http://www.semaf.de/hcl/lh/live.php?email=x&department=Karabey"><img alt="Hier Klicken" src="http://www.semaf.de/hcl/lh/image_email.php?department=Karabey" border="0" alt="image" /></a></td>
 <td class="bodyright"><img src="{$tpl_path}img/pixel_trans.gif" width="3" height="1" alt="" style="display: block;" /></td>
  </tr>
  </table></td>
 </tr>
</table>
und live.php sieht so aus
Code:
<?php
/* -----------------------------------------------------------------------------------------
  $Id: live.php,v 1.4 2004/02/22 16:15:30 fanta2k Exp $

  XT-Commerce - community made shopping
  http://www.xt-commerce.com

  Copyright (c) 2003 XT-Commerce
  -----------------------------------------------------------------------------------------
  based on:
  (c) 2000-2001 The Exchange Project (earlier name of osCommerce)
  (c) 2002-2003 osCommerce(information.php,v 1.6 2003/02/10); www.oscommerce.com
  (c) 2003 nextcommerce (information.php,v 1.8 2003/08/21); www.nextcommerce.org

  Released under the GNU General Public License
  ---------------------------------------------------------------------------------------*/
$box_smarty = new smarty;
$box_smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');
$content_string ='';
$content_query=xtc_db_query("SELECT
   content_id,
   categories_id,
   parent_id,
   content_title,
   content_group
   FROM ".TABLE_CONTENT_MANAGER."
   WHERE languages_id='".(int)$_SESSION['languages_id']."'
   and file_flag=0 and content_status=1");
 while ($content_data=xtc_db_fetch_array($content_query)) {
 
 $content_string .= '<a href="' . xtc_href_live(FILENAME_CONTENT,'coID='.$content_data['content_group']) . '">' . $content_data['content_title'] . '</a><br>';
}

 if ($content_string!='') {
  $box_smarty->assign('BOX_CONTENT',$content_string);
 $box_smarty->assign('language', $_SESSION['language']);
    // set cache ID
 if (USE_CACHE=='false') {
 $box_smarty->caching = 0;
 $box_live= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_live.html');
 } else {
 $box_smarty->caching = 1;	
 $box_smarty->cache_lifetime=CACHE_LIFETIME;
 $box_smarty->cache_modified_check=CACHE_CHECK;
 $cache_id = $_SESSION['language'];
 $box_live= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_live.html',$cache_id);
 }

  $smarty->assign('box_LIVE',$box_live);
 } 
 ?>
Also so gut ich sehe sollten keine Probleme da sein aber ich verstehe nicht warum es nicht geht. :wall: :wall: :wall:

Hier die FEHLER Meldung nach dem Aktualieseren der Seite


Fatal error: Call to undefined function: xtc_href_live() in /home/www/web194/html/shop/templates/redtech/source/boxes/live.php on line 31




Das 2. Problem liegt bei LIVE SUPPORT. Nachdem man ein Department angelegt hat und sich den Code generiert hat f?r den jeweiligen Department zeigt der Code das Bild nicht

Code:
<!#BEGIN Help Center Live Code, ? Michael Bird 2004 -->
<div id="HCLInitiate" style="position:absolute; z-index:1; top: 40%; left:40%; visibility: hidden;"><a href="javascript:initiate_accept()"><img src="http://www.semaf.de/hcl/inc/skins/default/images/lh/initiate.gif" border="0"></a><br><a href="javascript:initiate_decline()"><img src="http://www.semaf.de/hcl/inc/skins/default/images/lh/initiate_close.gif" border="0"></a></div>
<script type="text/javascript" language="javascript" src="http://www.semaf.de/hcl/lh/live.php?department=Karabey"></script>
<!#END Help Center Live Code, ? Michael Bird 2004 -->
Der Pfad ist in ordnung.

Ich danke mal f?r jeden antwort.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 30.06.2004, 01:45
HHGAG
Gast
 
Beiträge: n/a
Standard

Code:
$content_string .= '<a href="' . xtc_href_live(FILENAME_CONTENT,'coID='.$content_data['content_group']) . '">' . $content_data['content_title'] . '</a><br>';
Du rufst folgende Funktion auf:
xtc_href_live

Hast Du sie auch erstellt?
Wenn Sie im:
/inc/
Verzeichnis sein sollte musst Du es in der:
/includes/application_top.php
mit:
Code:
require_once(DIR_FS_INC . 'xtc_href_live.inc.php');
includen.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 30.06.2004, 07:18
 
Registriert seit: 06.11.2003
Beiträge: 42
Standard

hallo,

tolle sache aber was muss nu in der xtc_href_live.inc.php drin stehen ?
w?re f?r eine antwort sehr dankbar!


MfG
Equinox
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 30.06.2004, 09:49
Benutzerbild von polkhigh33
xt:C Supportmitarbeiter
 
Registriert seit: 26.10.2003
Ort: Hamburg
Beiträge: 6.862
Standard

also was ihr hier vorhabt ist sicherlich die technisch sauberere l?sung, aber dem geht auch einfacher. ich hab mir einfach ne box 'hardcodiert' und dort das script reingelegt.
Code:
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="145">
       <TR>
        <TD WIDTH="5" HEIGHT="22" BACKGROUND="{$tpl_path}img/plusnavHeadLeft.gif"><IMG SRC="{$tpl_path}img/blank000.png" WIDTH="5" HEIGHT="22"></TD>
        <TD ALIGN="center" WIDTH="100%" HEIGHT="22" BACKGROUND="{$tpl_path}img/plusnavHead.gif"><div align="left"><font size="3" face="Courier New, Courier, mono"><strong>Noch Fragen ? </strong></font></div></TD>
        <TD WIDTH="8" HEIGHT="22" BACKGROUND="{$tpl_path}img/plusnavHeadRight.gif"><IMG SRC="{$tpl_path}img/blank000.png" WIDTH="8" HEIGHT="22"></TD>
       </TR>
       <TR>
        <TD WIDTH="5" BACKGROUND="{$tpl_path}img/plusnavContentLeft.gif"><IMG SRC="{$tpl_path}img/blank000.png" WIDTH="5" HEIGHT="1"></TD>
        <TD WIDTH="100%" BACKGROUND="{$tpl_path}img/plusnavContent.gif"><div align="center">
         <script type="text/javascript" language="javascript" src="//www.hifi-hoschi.de/hcl/lh/live.php"></script>
        </div></TD>
        <TD WIDTH="8" BACKGROUND="{$tpl_path}img/plusnavContentRight.gif"><img src="{$tpl_path}img/blank000.png" width="8" height="1"></TD>
       </TR>
       <TR>
        <TD WIDTH="5" HEIGHT="8" BACKGROUND="{$tpl_path}img/plusnavBottomLeft.gif"><IMG SRC="{$tpl_path}img/blank000.png" WIDTH="5" HEIGHT="8"></TD>
        <TD WIDTH="100%" HEIGHT="8" BACKGROUND="{$tpl_path}img/plusnavBottom.gif"><IMG SRC="{$tpl_path}img/blank000.png" WIDTH="5" HEIGHT="8"></TD>
        <TD WIDTH="8" HEIGHT="8" BACKGROUND="{$tpl_path}img/plusnavBottomRight.gif"><IMG SRC="{$tpl_path}img/blank000.png" WIDTH="8" HEIGHT="8"></TD>
       </TR>
      </TABLE>
gruss
thomas
__________________
dieser beitrag ist ohne gewähr und stellt nur meine meinung und keinesfalls eine rechtsberatung dar. im zweifelsfalle ist er ironisch gemeint.
.:netzdesign33.de:. | .:blog33.de:.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 30.06.2004, 10:11
 
Registriert seit: 06.11.2003
Beiträge: 42
Standard

mhh das funzt bei mir nich!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #6 (permalink)  
Alt 30.06.2004, 10:39
Benutzerbild von polkhigh33
xt:C Supportmitarbeiter
 
Registriert seit: 26.10.2003
Ort: Hamburg
Beiträge: 6.862
Standard

oh oh oh....
hab gar net gesehn, das es dieses script ja seit gestern im dl-bereich gibt :fear:

ich verwende das original von http://www.helpcenterlive.com/

gruss
thomas
__________________
dieser beitrag ist ohne gewähr und stellt nur meine meinung und keinesfalls eine rechtsberatung dar. im zweifelsfalle ist er ironisch gemeint.
.:netzdesign33.de:. | .:blog33.de:.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #7 (permalink)  
Alt 30.06.2004, 10:54
Benutzerbild von DeluXXXe  
Registriert seit: 07.01.2004
Beiträge: 185
Standard

der einfachste weg:

kopier dir einfach den quellcode einer beliebigen box in deine index.html und ersetze <!#{$BOX_CONTENT} BEGIN --> mit dem vom script generierten code
---------------------------------------------------------------------------------------------
Code:
<!#BEGIN Help Center Live Code, ? Michael Bird 2004 -->
<div id="HCLInitiate" style="position:absolute; z-index:1; top: 40%; left:40%; visibility: hidden;"><a href="javascript:initiate_accept()"><img src="http://www.semaf.de/hcl/inc/skins/default/images/lh/initiate.gif" border="0"></a><br><a href="javascript:initiate_decline()"><img src="http://www.semaf.de/hcl/inc/skins/default/images/lh/initiate_close.gif" border="0"></a></div>
<script type="text/javascript" language="javascript" src="http://www.semaf.de/hcl/lh/live.php?department=Karabey"></script>
<!#END Help Center Live Code, ? Michael Bird 2004 -->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #8 (permalink)  
Alt 30.06.2004, 11:04
Benutzerbild von chris70
Erfahrener Benutzer
 
Registriert seit: 14.02.2004
Beiträge: 130
Standard

Cool !

Vielen Dank an DeluXXXe

Das war ja leicht!!!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #9 (permalink)  
Alt 30.06.2004, 11:09
Benutzerbild von DeluXXXe  
Registriert seit: 07.01.2004
Beiträge: 185
Standard

no prob und wer ne das sprachfile in der SIE-Form braucht kann die von mir bekommen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #10 (permalink)  
Alt 30.06.2004, 12:46
Benutzerbild von karabey
Erfahrener Benutzer
 
Registriert seit: 13.04.2004
Beiträge: 156
Standard

Zitat:
Originally posted by HHGAG@Jun 30 2004, 01:45 AM
Code:
$content_string .= '<a href="' . xtc_href_live(FILENAME_CONTENT,'coID='.$content_data['content_group']) . '">' . $content_data['content_title'] . '</a><br>';
Du rufst folgende Funktion auf:
xtc_href_live

Hast Du sie auch erstellt?
Wenn Sie im:
/inc/
Verzeichnis sein sollte musst Du es in der:
/includes/application_top.php
mit:
Code:
require_once(DIR_FS_INC . 'xtc_href_live.inc.php');
includen.
Die xtc_href_live.inc.php habe ich von xtc_href_link.inc.php kopiert und umgestellt. Aber es geht immer noch nicht und kommt noch das gleiche fehler.


Hier das Code von xtc_href_live.inc.php

Code:
<?php
/* -----------------------------------------------------------------------------------------
  $Id: xtc_href_live.inc.php,v 1.4 2004/03/16 15:01:16 fanta2k Exp $  

  XT-Commerce - community made shopping
  http://www.xt-commerce.com

  Copyright (c) 2003 XT-Commerce
  -----------------------------------------------------------------------------------------
  based on: 
  (c) 2000-2001 The Exchange Project (earlier name of osCommerce)
  (c) 2002-2003 osCommerce(html_output.php,v 1.52 2003/03/19); www.oscommerce.com 
  (c) 2003 nextcommerce (xtc_href_live.inc.php,v 1.3 2003/08/13); www.nextcommerce.org

  Released under the GNU General Public License 
  ---------------------------------------------------------------------------------------*/
  
// The HTML href live wrapper function
 function xtc_href_live($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
  global $request_type, $session_started, $http_domain, $https_domain;

  if (!xtc_not_null($page)) {
   die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');
  }

  if ($connection == 'NONSSL') {
   $live = HTTP_SERVER . DIR_WS_CATALOG;
  } elseif ($connection == 'SSL') {
   if (ENABLE_SSL == true) {
    $live = HTTPS_SERVER . DIR_WS_CATALOG;
   } else {
    $live = HTTP_SERVER . DIR_WS_CATALOG;
   }
  } else {
   die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');
  }

  if (xtc_not_null($parameters)) {
   $live .= $page . '?' . $parameters;
   $separator = '&';
  } else {
   $live .= $page;
   $separator = '?';
  }

  while ( (substr($live, -1) == '&') || (substr($live, -1) == '?') ) $live = substr($live, 0, -1);

// Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
  if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) {
   if (defined('SID') && xtc_not_null(SID)) {
    $sid = SID;
   } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
    if ($http_domain != $https_domain) {
     $sid = session_name() . '=' . session_id();
    }
   }    
  }

  if (xtc_check_agent()==1) {

  $sid=NULL;

  }
  if (isset($sid)) {
   $live .= $separator . $sid;
  }

  if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {
   while (strstr($live, '&&')) $live = str_replace('&&', '&', $live);

   $live = str_replace('?', '/', $live);
   $live = str_replace('&', '/', $live);
   $live = str_replace('=', '/', $live);
   $separator = '?';
  }

  return $live;
 }

 ?>


@Deluxxx

Meinst du den Quellcode von einer php Box oder Html Box ??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
1problem, geht#39s, los

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 11:06 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand