Posted: Tue 13. Mar 2007, 10:58
Tried it, sadly it didn't work out, still get the same error msg
Anybody around who got this mod running on 1.3.0 ?
Anybody around who got this mod running on 1.3.0 ?
The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
Code: Select all
5. In phpwcms.php, find:
case "modules": //Modules
switch ($p)
{
Insert after:
case 444: // QCalendar
if($phpwcms["calendar_mod"])
{
include_once("./include/inc_module/mod_qcal/backend.inc.php");
}
break;
Code: Select all
<?php
// This file is required, but below code is really not necessary at this point
include_once (PHPWCMS_ROOT . '/include/inc_module/mod_qcal/conf.inc.php');
include_once ($qcal["path"] . '/inc_lang/en/lang.inc.php');
$BLM = $lang;
?>
Code: Select all
<?php
// Module/Plug-in QCalendar
// register module name
//DO NOT USE SPECIAL CHARS HERE, NO WHITE SPACES, USE LOWER CASE!!!
$_module_name = 'qcalendar';
// module type - defines where used
// 0 = BE and FE, 1 = BE only, 2 = FE only
$_module_type = 0;
// Set if it should be listed as content part
// has content part: true or false
$_module_contentpart = false;
?>
Code: Select all
<?php
// ----------------------------------------------------------------
// obligate check for phpwcms constants
if (!defined('PHPWCMS_ROOT')) {
die("You Cannot Access This Script Directly, Have a Nice Day.");
}
// ----------------------------------------------------------------
if(isset($phpwcms['modules'][$module]['path'])) {
include_once (PHPWCMS_ROOT . '/include/inc_module/mod_qcal/conf.inc.php');
include_once ($qcal["path"] . '/backend.inc.php');
}
?>
Code: Select all
<?php
$lang["weekDays"] = array("So","Mo","Di","Mi","Do","Fr","Sa");
$lang["monthNames"] = array("Januar","Februar","März","April","Mai","Juni","Juli", "August", "September", "Oktober", "November", "Dezember");
$lang["locale"] = array("de_DE","de", "ge_GE");
$lang["today"] = "Heute";
$lang["no_events"] = "Heute keine Ereignisse.";
$lang["date"] = "Datum";
$lang["time"] = "Uhrzeit";
$lang["location"] = "Ort";
$lang["repeat"] = "wiederholen";
$lang["repeat_every"] = "wiederholen jeden";
$lang["repeat_until"] = "wiederholen bis";
$lang["day(s)"] = "Tage(e)";
$lang["week(s)"] = "Woche(n)";
$lang["month(s)"] = "Monat(e)";
$lang["year(s)"] = "Jahr(e)";
$lang["calendar"] = "Kalender";
$lang["span"] = "Zeitraum";
$lang["description"] = "Beschreibung";
$lang["set_info"] = "Dieser Eintrag gehört zu einer Serie mit %s Elementen.";
$lang["confirm_delete"] = "Wollen sie diesen Eintrag wirklich löschen ?";
$lang["confirm_delete_set"] = "Wollen Sie diese Serie wirklich löschen ?";
$lang["confirm_delete_calendar"] = "Wollen sie diesen Kalender wirklich löschen ?";
$lang["title"] = "Titel";
$lang["records_inserted"] = "%s Elemente eingefügt.";
$lang["records_updated"] = "%s Elemente aktualisiert.";
$lang["records_deleted"] = "%s Elemente gelöscht.";
$lang["records_moved"] = "%s Elemente verschoben.";
$lang["records_copied"] = "%s Element kopiert.";
$lang["all"] = "Alle";
$lang["delete_event"] = "Eintrag löschen";
$lang["delete_event_set"] = "Serie löschen";
$lang["edit_button"] = "bearbeiten";
$lang["move_button"] = "verschieben";
$lang["copy_button"] = "kopieren";
$lang["del_button"] = "löschen";
$lang["add_event"] = "Eintrag hinzufügen";
$lang["new_event"] = "Neuer Eintrag";
$lang["update"] = "aktualisieren";
$lang["update_set"] = "Serie aktualisieren";
$lang["update_single"] = "Nur diesen Eintrag aktualisieren";
$lang["cancel"] = "Abbruch";
$lang["import"] = "Import";
$lang["export"] = "Export";
$lang["add"] = "Hinzufügen";
$lang["edit"] = "Bearbeiten";
$lang["add_calendar"] = "Kalender hinzufügen";
$lang["new_calendar"] = "Neuer Kalender";
$lang["edit_calendar"] = "Kalender bearbeiten";
$lang["save"] = "Speichern";
$lang["delete"] = "Löschen";
$lang["from_date"] = "von Datum";
$lang["to_date"] = "bis datum";
$lang["export_ical"] = "nach iCal exportieren";
$lang["move_to"] = "verschieben nach";
$lang["move_set"] = "Serie verschieben";
$lang["move_single"] = "Nur diesen Eintrag verschieben";
$lang["move"] = "verschieben";
$lang["copy_to"] = "kopieren nach";
$lang["copy_set"] = "Serie kopieren";
$lang["copy_single"] = "nur diesen Eintrag kopieren";
$lang["copy"] = "kopieren";
$lang["session_timeout"] = "Session unterbrochen: bitte erneut anmelden.";
$lang["no_events_month"] = "Diesen Monat keine Einträge.";
$lang["days"] = "Tage";
$lang["h_update_event"] = "Eintrag aktualisieren";
$lang["h_add_event"] = "Eintrag hinzufügen";
$lang["h_move_event"] = "Einträge verschieben";
$lang["h_copy_event"] = "Einträge kopieren";
$lang["h_add_calendar"] = "Kalender hinzufügen";
$lang["h_edit_calendar"] = "Kalender bearbeiten";
$lang["h_ical_export"] = "nach iCalendar exportieren";
?>
Code: Select all
/config/phpwcms/conf.inc.php
Code: Select all
include/inc_module/mod_qcal/backend.inc.php
Code: Select all
include/inc_module/module.default.php
Yep, you are right! That should do it, don't know why it is not. When you hover over the "Qcalendar" link in backend, what does it say? How does this differ from "Glossary"? Does "glossary" work?I noticed that one of the files we need to create is
Shouldn't this file be inside mod_qcal dir?Code: Select all
include/inc_module/module.default.php
(When I tried that all I got was a blank site on both front and backend, I had to move it again to it's original place)
I don't think so, but I'm not sure!I'm using a fresh install of 1.3.0, maybe I'm missing some extra files?
I read your suggestions in the forum and i changed:Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /*/*****/htdocs/phpwcms/include/inc_module/mod_qcal/inc_lib/QCalendar.php on line 434
Error:SELECT event.*, cat.name as catName FROM DB_PREPENDphpwcms_cm_events AS event INNER JOIN DB_PREPENDphpwcms_cm_categories AS cat ON cat.id = event.category WHERE approved = 1 AND ((MONTH(date) + (YEAR(date) * 12)) <= (3 + (2007 * 12))) AND ((MONTH(DATE_ADD(date, INTERVAL(span - 1) DAY)) + (YEAR(DATE_ADD(date, INTERVAL(span - 1) DAY)) * 12)) >= (3 + (2007 * 12))) ORDER BY date ASC, time ASC