Posted: Thu 18. Nov 2004, 20:11
Hal, have you added this line to your config.inc.php file?:
Code: Select all
$phpwcms["calendar_mod"] = 1;
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
$phpwcms["calendar_mod"] = 1;
great question TRIP!!!!trip wrote:Hi
is it possible to click on an event name and only have this event displayed?
Code: Select all
// CALENDAR MODULE...
// you take this line and add it to your /include/inc_conf/conf.inc.php file
$phpwcms["calendar_mod"] = 1; // enable calendar mod = 1, disable = 0
if ($phpwcms["calendar_mod"]) { // enabled/disable Calendar Module
$subnav .= subnavtext("Calendar Module", "phpwcms.php?do=modules&p=300", $p, "300", 0);
}
Code: Select all
case "modules": //modules
$wcsnav["modules"] = "".$wcsnav["modules"]."";
if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
$subnav .= subnavtext($BL['be_subnav_graphicaltext_mod'], "phpwcms.php?do=modules&p=2", $p, "2", 0);
}
Code: Select all
case 300: // Caledar Mod
if ($phpwcms["calendar_mod"]) { //enabled/disable calendar mod
include_once("./include/inc_module/mod_calendar/main.inc.php");
}
break;
Code: Select all
case 2: // Graphical Text MOD
if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
include_once("./include/inc_module/mod_graphical_text/main.inc.php");
}
break;
default: echo 'Thanks to Jérôme for his <a href="phpwcms.php?do=modules&p=2">Graphical Text MOD</a>.';
echo '<br> <br>Other modules might follow. GT MOD will be moved to admin section.';
}
break;
And when I press the button to install the script it gives me the following errors:Warning: main(PHPWCMS_ROOT/include/inc_module/mod_calendar/inc_lib/main.config.php): failed to open stream: No such file or directory in /customers/kvistnet.dk/kvistnet.dk/httpd.www/include/inc_module/mod_calendar/install/config.php on line 2
Warning: main(): Failed opening 'PHPWCMS_ROOT/include/inc_module/mod_calendar/inc_lib/main.config.php' for inclusion (include_path='.:/usr/lib/php') in /customers/kvistnet.dk/kvistnet.dk/httpd.www/include/inc_module/mod_calendar/install/config.php on line 2
Calendar Module Administration Area
Welcome to the calendar module. You can add/edit/delete items on the calendar as well as add categories to different events.
To install the mod make sure you have read the readme for the changes that needed to be made to the base. Once that is done you can click the button below to setup the database.
"BUTTON"
kvistnet.dk@localhost isn't my username for my DB - where can I change this information? I was under the impression that the calendar mod got its information from phpWCMS, but that's apparently not the case...!?Warning: main(PHPWCMS_ROOT/include/inc_module/mod_calendar/inc_lib/main.config.php): failed to open stream: No such file or directory in /customers/kvistnet.dk/kvistnet.dk/httpd.www/include/inc_module/mod_calendar/install/config.php on line 2
Warning: main(): Failed opening 'PHPWCMS_ROOT/include/inc_module/mod_calendar/inc_lib/main.config.php' for inclusion (include_path='.:/usr/lib/php') in /customers/kvistnet.dk/kvistnet.dk/httpd.www/include/inc_module/mod_calendar/install/config.php on line 2
Warning: mysql_query(): Access denied for user: 'kvistnet.dk@localhost' (Using password: NO) in /customers/kvistnet.dk/kvistnet.dk/httpd.www/include/inc_module/mod_calendar/install/install.php on line 6
Warning: mysql_query(): A link to the server could not be established in /customers/kvistnet.dk/kvistnet.dk/httpd.www/include/inc_module/mod_calendar/install/install.php on line 6
Error creating the events table: Access denied for user: 'kvistnet.dk@localhost' (Using password: NO)
--------------------------------------------------------------------------------
CREATE TABLE `` ( `id` int(11) NOT NULL auto_increment, `date` date NOT NULL default '0000-00-00', `span` int(11) NOT NULL default '1', `time` varchar(100) NOT NULL default '', `title` varchar(150) NOT NULL default '', `category` int(11) NOT NULL default '0', `price` varchar(60) NOT NULL default '', `location` varchar(100) NOT NULL default '', `description` text NOT NULL, `extrainfo` text NOT NULL, `approved` tinyint(1) NOT NULL default '0', `setid` int(11) NOT NULL default '0', `userId` int(11) NOT NULL default '0', PRIMARY KEY (`id`), KEY `id` (`id`) )
Code: Select all
<?php
include ("../inc_lib/main.config.php");
// open the connection to MySQL database
$phpwcms["db_host"] = "localhost";
$phpwcms["db_user"] = "your_username";
$phpwcms["db_pass"] = "your_password";
$phpwcms["db_table"] = "your_database_name";
$db = mysql_connect($phpwcms["db_host"], $phpwcms["db_user"], $phpwcms["db_pass"]);
mysql_select_db($phpwcms["db_table"],$db);
//from here it was identical with the original file
Code: Select all
case "files": //files
$wcsnav["files"] = "<strong class=\"navtexta\">".$wcsnav["files"]."</strong>";
$subnav .= subnavtext($BL['be_subnav_file_center'], "phpwcms.php?do=files", $p, "", 0);
$subnav .= subnavtext($BL['be_subnav_file_ftptakeover'], "phpwcms.php?do=files&p=8", $p, "8", 0);
break;
case "modules": //modules
$wcsnav["modules"] = "<strong class=\"navtexta\">".$wcsnav["modules"]."</strong>";
if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
$subnav .= subnavtext($BL['be_subnav_graphicaltext_mod'], "phpwcms.php?do=modules&p=2", $p, "2", 0);
}
// CALENDAR MODULE...
// you take this line and add it to your /include/inc_conf/conf.inc.php file
//$phpwcms["calendar_mod"] = 1; // enable calendar mod = 1, disable = 0
if ($phpwcms["calendar_mod"]) { // enabled/disable Calendar Module
$subnav .= subnavtext("Calendar", "phpwcms.php?do=modules&p=3", $p, "3", 0);
}
break;
case "messages": //messages
Code: Select all
("./include/inc_tmpl/message.subscribersimport.tmpl.php");
break;
}
break;
case "modules": //Modules
switch ($p) {
case 2: // Graphical Text MOD
if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
include_once("./include/inc_module/mod_graphical_text/main.inc.php");
}
break;
case 3: // Caledar Mod
if ($phpwcms["calendar_mod"]) { //enabled/disable calendar mod
include_once("./include/inc_module/mod_calendar/main.inc.php");
}
break;
default: echo 'Thanks to Jérôme for his <a href="phpwcms.php?do=modules&p=2" >Graphical Text MOD</a>.';
echo '<br> <br>Other modules might follow. GT MOD will be moved to admin section.';
break;
}
break;
case "admin": //Administration
Code: Select all
require_once "Mail.php"; // PEAR mail class