#1 (permalink)  
Alt 07.08.2005, 23:52
 
Registriert seit: 23.12.2003
Beiträge: 128
Standard

Hallo zusammen.

ich hatte das Thema schon geposted, aber aus versehen unter der falschen kategorie. Da dort keine Antworten kommen, versuche ich es mal hier.

Ich habe nun hier im Forum rumgesucht, aber ich finde nicht wirklich eine Erkl?rung, warum meine Box box_news nicht angezeigt wird.

Im Content Manager kann ich sie ausw?hlen "informationen, content, news"! Sichtbar in der Box ist auch angeklickt. In boxes.php ist auch alles eingetragen und in der news.php auch. eine box_news.html ist auch angelegt.

Ich bin irgendwie total am Ende mit meinem Wissen. Habe schon mehrere Varianten ausprobiert...sie erscheint einfach nicht.

Hier mal meine news.php

CODE<?php
/* -----------------------------------------------------------------------------------------
$Id: information.php,v 1.4 2004/02/22 16:15:30 fanta2k Exp $

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

Copyright &copy; 2003 XT-Commerce
-----------------------------------------------------------------------------------------
based on:
&copy; 2000-2001 The Exchange Project (earlier name of osCommerce)
&copy; 2002-2003 osCommerce(information.php,v 1.6 2003/02/10); www.oscommerce.com
&copy; 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=3 and content_status=1");
while ($content_data=xtc_db_fetch_array($content_quer y)) {

$content_string .= '[img]templates/'.CURRENT_TEMPLATE.'/img/icon_arrow.jpg[/img] ' . $content_data['content_title'] . '
';
}

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_information= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_news.html');
} else {
$box_smarty->caching = 1;
$box_smarty->cache_lifetime=CACHE_LIFETIME;
$box_smarty->cache_modified_check=CACHE_CHECK;
$cache_id = $_SESSION['language'];
$box_information= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_news.html',$cache_id);
}

$smarty->assign('box_NEWS',$box_news);
}
?>

Den file_flag habe ich in der Datenbank ebenfalls durch hinzuf?gen eingegeben mit dem Namen = news und file_flag = 3.

Sollte deshalb ja eigentlich auch laufen.

Hier noch der abschnitt aus der index.html

CODE <tr valign="top">
<td width="250" background="{$tpl_path}img/search_bg.jpg" class="main">{$box_SEARCH}</span></td>
<td width="250" class="contentIndex">{$box_NEWS}</td>
<td height="100" width="250" bgcolor="#EBEBEB" class="contentIndex">{$box_CONTENT}</span></td>
<td width="250" bgcolor="#EBEBEB" class="contentIndex">{$box_INFORMATION}</span></td>
</tr>[CODE]

ich hoffe jemand von euch weiss eventuell eine L?sung, da ich echt nicht mehr weiss, was ich ausprobieren soll doer wo ein Fehler sein k?nnte.

Gr?sse

BJS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 08.08.2005, 09:46
 
Registriert seit: 12.04.2004
Beiträge: 775
Standard

Versuch mal der index.html die Variable einzugeben

{$box_NEWS}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 08.08.2005, 20:04
 
Registriert seit: 23.12.2003
Beiträge: 128
Standard

Hallo!

Das habe ich ja schon...siehe hier

Zitat:
<td width="250" class="contentIndex">{$box_NEWS}</td>
Deshalb finde ich ja cuh keinen Fehler mehr.

Sonst noch ne Idee?

Grus

BJS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
angelegte, angezeigt, box

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 04:39 Uhr.

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

xt:Commerce is a SafeCharge brand