|
||||
|
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]); 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>
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); } ?> 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 --> Ich danke mal f?r jeden antwort. |
|
|||
|
Code:
$content_string .= '<a href="' . xtc_href_live(FILENAME_CONTENT,'coID='.$content_data['content_group']) . '">' . $content_data['content_title'] . '</a><br>'; 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'); |
|
||||
|
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>
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:. |
|
||||
|
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:. |
|
||||
|
Zitat:
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 ?? |
![]() |
| Lesezeichen |
| Stichworte |
| 1problem, geht#39s, los |
| Themen-Optionen | |
| Ansicht | |
|
|