wer kann mir helfen... auf einmal spuckt meine kalendermodul na ganz komische fehlermeldung beim aufruf auf.... sonst lief alles einwandfrei..... anscheinend liegt es wohl an der datenbank...
Wer kann mir helfen????
http://web511.sv14.pixelx.de/community4you/modules.php?name=Kalender
schon jetzt mal recht herzlichen dank....
Zitatdescr: Table 'usr_web511_2.TABLE_CAL_EVENTS' doesn't exist ( mysql 1146 )
Sagt doch alles aus, die Tabelle ist nicht vorhanden!
Überprüf doch mal mittels PhpMyAdmin deine Datenbank.
Moin :)
@ Gerry
TABLE_CAL_EVENTS ist nicht der Tabellenname, sondern eine Konstante, die normalerweise den Tabellennamen als Wert enthält. Hat also nix mit der DB zu tun ;)
@ hannover-jung
da der Fehler nur von dem Block block-Calendar_combi.php kommt, scheint mit dem etwas nicht zu stimmen. Das Modul selbst bringt ja keine Fehlermeldungen.
Ist die folgende Zeile bei Dir im Block vorhanden?
if (!defined("CAL_MODULE_NAME")) define("CAL_MODULE_NAME","Kalender");
Zitat von: Tora am 31 Oktober 2004, 13:09:35
Moin :)
@ Gerry
TABLE_CAL_EVENTS ist nicht der Tabellenname, sondern eine Konstante, die normalerweise den Tabellennamen als Wert enthält. Hat also nix mit der DB zu tun ;)
Mano, ich sag`s wenn man mit den Gedanken nicht ganz bei der Sache ist! *fg*
:-\ :D
also hab jetzt mal die beiden blöcke gelöscht.... jetzt tauchst der fehler tatsächlich nicht mehr auf..... :) aber warum war der fehler vorher nicht da?
@ Gerry :morgen:
Zitataber warum war der fehler vorher nicht da
Gute Frage, nächste Frage ;) HalloWeen? :D
Spass beiseite, häng den Block doch mal als Anhang hier an das Posting. (erweiterte Optionen)
na war wohl der halloween-geist der mich da ärgern will.... :D
soll ich dir hier den ganzen block posten.... hab insgesamt 4 böcke für´n kalender...
Hi :)
nö, nur den calendar_combi, der den Fehler verursacht hat ;)
ok hier ist er... :) hatte ja gleich beide böcke gelöscht da bei beiden der fehler aufgerufen wurde....
<?php // $Id: block-Calendar_combi.php,v 20.3 2003/11/16 19:19:35 EllselAn Exp $
/************************************************************************/
/* KalenderMx v1.2.a                          */
/* ===================Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â */
/*Â Calendar Module for vkpMx 2.x & phpNuke 5.5-6.0Â Â Â Â Â Â Â Â Â Â Â */
/*Â Copyright (c) 2003 by A.Ellsel (info@shiba-design.de)Â Â Â Â Â Â Â Â */
/* http://www.shiba-design.de                     */
/* -------------------------------------------------------------------- */
/* KalenderMx is based on EventCalendar 2.0Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â */
/* Copyright (c) 2001 Originally by Rob Sutton             */
/*Â http://smart.xnettech.net (Nuke Site)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â */
/* Development continued by Aleks A.-Lessmann             */
/* Included some ideas and changes by:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â */
/* flobee, bulli-frank, kicks, kochloeffel, FrankySz, Jubilee     */
/* -------------------------------------------------------------------- */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 or a newer version.  */
/************************************************************************/
### !!!! don't change this 3 lines !!!! #########################################
$thisfile=basename(__file__);
if (eregi($thisfile, $GLOBALS["HTTP_SERVER_VARS"]["PHP_SELF"])) die ("classement: You can't access this file directly...");
global $currentlang, $language, $lang, $bgcolor1,$bgcolor2,$bgcolor3,$bgcolor4,$bgcolor5,$textcolor1,$textcolor2;
#################################################################################
$mxblockcache = FALSE;
###### Einstellungen fuer den Block ###################################################
if (!defined("_CAL_MODULE_NAME")) define("_CAL_MODULE_NAME","Kalender");Â // CHANGE THIS IF YOU CHANGE THE CALENDAR-MODULES FOLDER NAME
#########################################################################################
$sort = "asc"; # Sortierung der Liste:Â asc =aufsteigend / desc =absteigend
$scrolling = 1; # Eintraege scrollen
$scrolldirection = "up" ; # Richtung des Scrollens: up / down
$scrollheight = 70 ; # Hoehe des scrollenden Bereichs
$scrolldelay = 350 ; # Scrollgeschwindigkeit: grosser Wert = langsamer / kleiner Wert = schneller
$listcount = 5 ; # count of entries in the List-Block, 0 hides the List-Block
$listEnddate = 1 ; # display the ending Date in List-View: 0=nein / 1=ja
$listStarttime = 0 ; # display the starting Time in List-View: 0=nein / 1=ja
$listEndtime = 0 ; # display the ending Time in List-View: 0=nein / 1=ja
$showNewlink = 1 ; # Link Event vorschlagen anzeigen: 0=nein / 1=ja
$showLegend = 1 ; # Farblegende anzeigen: 0=nein / 1=ja
###### Einstellungen fuer den Monats-Block ############################################
$todaycolor = "$textcolor1"; # Textfarbe HEUTE
$todaybackground = "$bgcolor1"; # Hintergrundfarbe HEUTE
$daycolor = "$textcolor2"; # Textfarbe normale Tage
$daybackground = "$bgcolor2"; # Hintergrundfarbe normale Tage
$showtodayevents = 1 ; # heutige Termine anzeigen
$showsymbols = 0 ; # Bildsymbole anzeigen
######### Definition der Farben und Rahmen ###############################################################
$listbgcolor1 = $bgcolor1; # Hintergrund erste Zeile ( "" fuer Transparent )
$listtxtcolor1 = $textcolor1; # Text erste Zeile
$listbgcolor2 = $bgcolor2; # Hintergrund naechste Zeile
$listtxtcolor2 = $textcolor2; # Text naechste Zeile
$listbordercolor = ""; # Rahmenfarbe um Liste
$scrollbgcolor = ""; # Hintergrundfarbe des Marquee-Tags (Zwischenraum Scrollinhalte)
$listtableborder = 0; # html Rahmen um Liste
$listtablecellspacing = 1; # abstand zwischen Events (auch Rahmenbreite)
$listtablecellpadding = 2;Â Â # this will make the Events lines larger or smaller depending on value
###### Ende der Einstellungen, ab hier nichts veraendern !! #############################
get_lang(_CAL_MODULE_NAME);
if (!defined("_CAL_IMAGE_PATH")) @include("modules/"._CAL_MODULE_NAME."/config.php");
if (!function_exists("calGetSqlEventpoints")) include_once("modules/"._CAL_MODULE_NAME."/functions.inc.php");
if (!defined("_CAL_VERSION")){
$content = "<b>Error!</b><br>You must change the constant '\"_CAL_MODULE_NAME\"' in file: <br>".__file__."";
return;
}
if (!calDetectGoodBrowser ()) {$scrolling=0;}
$curMonth = (int)Date("m");
$curDay = (int)Date("d");
$curYear = (int)Date("Y");
/**** Get the Day (Integer) for the first day in the month */
$First_Day_of_Month_Date = mktime(0, 0, 0, $curMonth, 1, $curYear);
$Day_of_First_Week = Date("w",$First_Day_of_Month_Date)-_CALWEEKBEGINN;
if ($Day_of_First_Week < 0) $Day_of_First_Week=6;
$day_of_week = $Day_of_First_Week + 1;
/**** Find the last day of the month */
$lastday = (int)Date("t",$First_Day_of_Month_Date);
$curMonthName = calGetMonthName($curMonth)." $curYear";
$whereoption= "categorie in(".calGetSqlEventpoints().") AND activ=1";
$qrydate = "$curYear-$curMonth-$curDay";
$qry="SELECT count(eid) FROM ".TABLE_CAL_EVENTS."
WHERE (startDate>= '$qrydate' or endDate>= '$qrydate')
and ($whereoption)";
list($icount) = sql_fetch_row(sql_query($qry));
#print "$icount <br> $qry";
if ($icount>$listcount) $icount=$listcount;
$content = "\n<!-- $thisfile output start -->\n<center>";
$i = 0; $ievents = 0;
if ($icount) {
setlocale (LC_TIME, _CALLOCALE);
$imgprops= "align=\"absmiddle\" hspace=\"1\" vspace=\"2\" width=\"9\" height=\"9\" border=\"0\" alt=\"\"";
if ($icount<3) {$scrolling=0;}
if ($scrolling) {
$content.="<marquee behavior='scroll' direction='$scrolldirection' height='$scrollheight' hspace='0' vspace='5' loop='' scrolldelay='$scrolldelay' onmouseover='this.stop()' onmouseout='this.start()'>";
}
$content.="<table cellspacing=\"$listtablecellspacing\" cellpadding=\"$listtablecellpadding\" bgcolor=\"$listbordercolor\" bordercolor=\"$listbordercolor\" border=\"$listtableborder\" width=\"96%\">";
$qry="SELECT eid, title, hometext, posteddate, topic, informant, year(startDate), month(startDate), dayofmonth(startDate), hour(startTime), minute(startTime), year(endDate), month(endDate), dayofmonth(endDate), hour(endTime), minute(endTime), alldayevent, categorie FROM ".TABLE_CAL_EVENTS."
WHERE (startDate>= '$qrydate' or endDate>= '$qrydate')
and ($whereoption)
order by startDate $sort, endDate $sort
limit 0,$icount";
$result=sql_query($qry);
while(list($eid, $title, $hometext, $posteddate, $topic, $informant, $y1, $m1, $d1, $h1, $mi1, $y2, $m2, $d2, $h2, $mi2, $alldayevent, $categorie) = sql_fetch_row($result)) {
$title = htmlspecialchars(strip_tags(stripslashes($title)), ENT_QUOTES);
$fontstyle = ($listStarttime) ? "tiny" : "content";
$dateStart = strftime(_CALSHORTDATEFORMAT, mktime(0, 0, 0, $m1, $d1, $y1));
if ($listStarttime && !$alldayevent) {
$dateStart.= " ".strftime(_CALTIMEFORMAT, mktime($h1, $mi1, 0, $m1, $d1, $y1));
}
$dateEnd = ($listEnddate) ? strftime(_CALSHORTDATEFORMAT, mktime(0, 0, 0, $m2, $d2, $y2)) : "";
if ($listEndtime && !$alldayevent) {
$dateEnd.= " ".strftime(_CALTIMEFORMAT, mktime($h2, $mi2, 0, $m2, $d2, $y2));
}
$bgcolornew = ($i==0) ? $listbgcolor1 : $listbgcolor2;
$txtcolornew = ($i==0) ? $listtxtcolor1 : $listtxtcolor2;
$i = ($i==0) ? 1 : 0;
$alttext = ($hometext && !$scrolling) ? strip_tags(htmlentities(stripslashes($hometext))) : "";
$content.="<tr bgcolor=\"$bgcolornew\">
<td valign=\"top\"><img src=\"".calGetBarImage("ball",$categorie)."\" $imgprops></td>\n
<td><div title=\"$alttext\"><font class=\"tiny\" color=\"$txtcolornew\">$dateStart - $dateEnd<br>\n
<a href=\"modules.php?name="._CAL_MODULE_NAME."&op=view&eid=$eid\">$title</a></font></div></td>\n</tr>\n";
$ievents++;
}
if (function_exists("sql_free_result")) sql_free_result($result);
$content .= ($scrolling) ? "</table></marquee>" : "</table>";
setlocale (LC_TIME, $GLOBALS["locale"]);
}
$bgcolornew = ($i==1) ? $listbgcolor2 : $listbgcolor1;
if (!$scrolling){
$content.="<hr size=\"1\" color=\"$listbgcolor2\" width=\"96%\" noshade>";
}
$content.="</center>";
###############################
/**** Build Month */
$qry ="SELECT startDate, endDate
FROM ".TABLE_CAL_EVENTS."
WHERE (((startDate<='$curYear-$curMonth-01') Or (startDate>='$curYear-$curMonth-01' And startDate<='$curYear-$curMonth-$lastday')) AND (endDate>='$curYear-$curMonth-01')
AND ($whereoption))
ORDER BY startDate, endDate";
$result = sql_query($qry);
while(list($startDate, $endDate) = sql_fetch_row($result)) {
$aStartDate = explode("-",$startDate);
$startDay = (int)$aStartDate[2];
$startMon = (int)$aStartDate[1];
$startYea = (int)$aStartDate[0];
if ($startDate != $endDate) {
$aEndDate = explode("-",$endDate);
$endDay = (int)$aEndDate[2];
$endMon = (int)$aEndDate[1];
$endYea = (int)$aEndDate[0];
$lday = ($curMonth < $endMon || $curYear < $endYea) ? $lastday : $endDay;
$fday = ($curMonth > $startMon || $curYear > $startYea) ? 1 : $startDay;
for ($countDay = $fday ; $countDay <= $lday ; $countDay++){
$daycount[$countDay] = (empty($daycount[$countDay])) ? 1 : $daycount[$countDay]+1;
}
}
else {
if ($curYear == $startYea && $curMonth == $startMon) {
$daycount[$startDay] = (empty($daycount[$startDay])) ? 1 : $daycount[$startDay]+1;
}
}
}
/**** Build Current Month */
$cmonth = "";
for ($day = 1 ; $day <= $lastday ; $day++){
if ($day_of_week == 1){
$cmonth .= "<TR>\n";
}
$dayrows = (isset($daycount[$day])) ? $daycount[$day] : 0;
$dayrows = ($dayrows >= 4) ? 4 : $dayrows;
$bgcolor = ($day == Date("d")) ? $todaybackground : $daybackground;
$fncolor = ($day == Date("d")) ? $todaycolor : $daycolor;
$xday  = ($day == Date("d")) ? "<b>$day</b>" : $day;
$imgprops= "width=\"13\" height=\"14\" border=\"0\"";
$cmonth .= "<TD align=\"center\" bgcolor=\"$bgcolor\">";
$cmonth .= "<a href=\"modules.php?name="._CAL_MODULE_NAME."&m=$curMonth&d=$day&y=$curYear&op=day\">";
$cmonth .= "<FONT color=\"$fncolor\" class=\"tiny\">$xday</font>";
if($showsymbols) $cmonth .= "<br><img src=\""._CAL_IMAGE_PATH."/events".$dayrows.".gif\" $imgprops>";
$cmonth .= "</a></td>\n";
if ($day_of_week == 7){
$day_of_week = 0;
$cmonth .= "</tr>\n";
}
$day_of_week += 1;
}
/**** Build Month */
$content .= "\n<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"$bgcolor1\" width=\"100%\">";
$content .= "\n<TR>\n<TH colspan=\"7\" bgcolor=\"$bgcolor2\">";
$content .= "<FONT class=\"tiny\"><a href=\"modules.php?name="._CAL_MODULE_NAME."&m=$curMonth&d=1&y=$curYear&op=month\">";
$content .= "$curMonthName</a></FONT></TH>\n</tr>\n";
$content .= "\n<TR>";
/**** Previous Greyed month days */
if ($Day_of_First_Week != 0){
$content .= "\n<TD colspan=\"$Day_of_First_Week\" bgcolor=\"$daybackground\"> </td>\n";
}
$content .= $cmonth;
/**** Next Greyed month days */
#$day = 1;
if ($day_of_week != 1){
$tmp = 8 - $day_of_week;
$content .= "<TD colspan=\"$tmp\" bgcolor=\"$daybackground\"> </td>\n</tr>\n";
}
$content .= "</TABLE>\n";
$content.="";
if ($showNewlink) {
#$content.="<hr size=\"1\" color=\"$listbgcolor2\" width=\"96%\" noshade>";
$content.="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><a href=\"modules.php?name="._CAL_MODULE_NAME."&file=submit\"><img src=\""._CAL_IMAGE_PATH."/sign.gif\" alt=\""._CALSUBMITEVENT."\" width=\"16\" height=\"16\" border=\"0\" align=\"absmiddle\" hspace=\"0\" vspace=\"1\"></a></td><td valign=\"middle\"><font class=\"tiny\"> <a href=\"modules.php?name="._CAL_MODULE_NAME."&file=submit\">"._CALSUBMITEVENT."</a></font></td></tr></table>";
}
if ($showNewlink && $showLegend) {
$content.="<hr size=\"1\" color=\"$listbgcolor2\" width=\"96%\" noshade>";
}
if ($showLegend) {
$imgprops= "align=\"absmiddle\" hspace=\"6\" vspace=\"3\" width=\"9\" height=\"9\" border=\"0\" alt=\"\"";
$content.=calBuildColorLegendSideBlocks();
}
$content.="";
$content .= "\n<!-- $thisfile output end -->\n<!-- nukeCalendar Å by shiba-design.de -->\n";
$content=ereg_replace("\t","",$content);
if ($ievents==0){
$blockfiletitle = _CALNAME;
}
else {
if (empty($icount)) {$icount="";}
$blockfiletitle = _CALNEXT." $icount "._CALLISTDESCRIPTION2;
}
?>
Zitat<?php // $Id: block-Calendar_combi.php,v 20.3 2003/11/16 19:19:35 EllselAn Exp $
/************************************************************************/
/* KalenderMx v1.2.a */
Hmm, der Block ist noch von Version 1.2 die im vkpMx Addonpack drin ist. Als Modul läuft aber schon die 1.4er Version des Kalenders.
Könnte sein, dass das Pronlem daher kommt...
und wo bekomm ich denn block her... hab als ich die dateien hochgeladen habe das ganze paket aus dem 1.4 kalender-modul hochgeladen....
Hmm, müsste eigentlich im Zipfile drin sein.
Egal, hier sind die neusten vom Kalender 1.4.a:
Vielen Dank!!!! :D
hhm... ist auch nun schon ne zeitlang her, das ich mir das gesaugt habe.....
HiHo :)
dann aktualisiere am besten gleich auf 1.4.a
http://vkp.shiba.de/modules.php?name=News&file=article&sid=72
vielen dank hab ich mir gleich gesaugt.... ;)