MyGallery Installation Problems
Posted: Tue 18. Apr 2006, 21:18
When I type:
http://localhost/cms/include/inc_module ... nstall.php
after having followed the procedures mentioned it says:
Error creating the events table: Incorrect table name '' CREATE TABLE ``
( `id` int(11) unsigned NOT NULL default '0', `album_order` int(11) NOT NULL default '0', `title` varchar(150) NOT NULL default '', `description` text, `pic_count` int(11) NOT NULL default '0', PRIMARY KEY (`id`) )
The Gallery Module shows as a link but does nothing if I click on it. I am including the code I changed according to the instructions given.
/var/www/html/cms/include/inc_module/mygallery/inc_lib/main.config.php
// table names
$prefix = "akd_";
$tables['gal_albums'] = $prefix . "phpwcms_gal_albums";
$tables['gal_caption'] = $prefix . "phpwcms_gal_caption";
$tables['gal_config'] = $prefix . "phpwcms_gal_config";
//$tables['cal_langList'] = $prefix . "phpwcms_cm_languageList";
/var/www/html/cms/config/phpwcms/conf.inc.php
// content values
$phpwcms["file_maxsize"] = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"] = 538; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"] = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"] = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"] = 538; //max width of the large preview image
$phpwcms["img_prev_height"] = 400; //max height of the large preview image
$phpwcms["max_time"] = 1800; //logout after max_time/60 seconds
//modules
$phpwcms["gt_mod"] = 0; //0 = Graphical Text MOD disabled, 1 = enabled
$phpwcms["gallery_mod"] = 1; // enable gallery mod = 1, disable = 0
// other stuff
$phpwcms["compress_page"] = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms["imagick"] = 0; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 1; //0 = GD1, 1 = GD2
/var/www/html/cms/phpwcms.php
case "modules": //modules
$wcsnav["modules"] = "<strong class=\"navtexta\">".$wcsnav["modules"]."</strong>";
//GT Module
if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
$subnav .= subnavtext($BL['be_subnav_graphicaltext_mod'], "phpwcms.php?do=modules&p=2", $p, "2", 0);
}
// Calender Module
if ($phpwcms["calendar_mod"]) { // enabled/disable Calendar Module
$subnav .= subnavtext("Calendar Module", "phpwcms.php?do=modules&p=3", $p, "3", 0);
}
// Gallery Module
if ($phpwcms["gallery_mod"]) { // enabled/disable Gallery Module
$subnav .= subnavtext("Gallery Module", "phpwcms.php?do=modules&p=5", $p, "5", 0);
}
break;
The alteration:
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;
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;
case 5: //Gallery Mod
if ($phpwcms["gallery_mod"]) {
include_once("./include/inc_module/mygallery/main.inc.php");
}
break;
/var/www/html/cms/include/inc_front/content.func.inc.php
// -------------------------------------------------------------
// Jérôme's Graphical Text MOD
// Coypright (C) 2004 by
if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
require_once ('include/inc_module/mod_graphical_text/inc_front/gt.func.inc.php');
}
// Gallery MOD by Scraper
if($phpwcms["gallery_mod"]) { //enabled/disable Gallery MOD
require_once ('./include/inc_module/mygallery/inc_front/func.inc.php');
}
// -------------------------------------------------------------
It is then advised:
upload the mygallery folder to: PHPWCMS_ROOT/include/inc_modules/
Would this reflect as: /var/www/html/cms/include/inc_modules/
Please advise...
Thanks,
Grant
http://localhost/cms/include/inc_module ... nstall.php
after having followed the procedures mentioned it says:
Error creating the events table: Incorrect table name '' CREATE TABLE ``
( `id` int(11) unsigned NOT NULL default '0', `album_order` int(11) NOT NULL default '0', `title` varchar(150) NOT NULL default '', `description` text, `pic_count` int(11) NOT NULL default '0', PRIMARY KEY (`id`) )
The Gallery Module shows as a link but does nothing if I click on it. I am including the code I changed according to the instructions given.
/var/www/html/cms/include/inc_module/mygallery/inc_lib/main.config.php
// table names
$prefix = "akd_";
$tables['gal_albums'] = $prefix . "phpwcms_gal_albums";
$tables['gal_caption'] = $prefix . "phpwcms_gal_caption";
$tables['gal_config'] = $prefix . "phpwcms_gal_config";
//$tables['cal_langList'] = $prefix . "phpwcms_cm_languageList";
/var/www/html/cms/config/phpwcms/conf.inc.php
// content values
$phpwcms["file_maxsize"] = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"] = 538; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"] = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"] = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"] = 538; //max width of the large preview image
$phpwcms["img_prev_height"] = 400; //max height of the large preview image
$phpwcms["max_time"] = 1800; //logout after max_time/60 seconds
//modules
$phpwcms["gt_mod"] = 0; //0 = Graphical Text MOD disabled, 1 = enabled
$phpwcms["gallery_mod"] = 1; // enable gallery mod = 1, disable = 0
// other stuff
$phpwcms["compress_page"] = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms["imagick"] = 0; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 1; //0 = GD1, 1 = GD2
/var/www/html/cms/phpwcms.php
case "modules": //modules
$wcsnav["modules"] = "<strong class=\"navtexta\">".$wcsnav["modules"]."</strong>";
//GT Module
if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
$subnav .= subnavtext($BL['be_subnav_graphicaltext_mod'], "phpwcms.php?do=modules&p=2", $p, "2", 0);
}
// Calender Module
if ($phpwcms["calendar_mod"]) { // enabled/disable Calendar Module
$subnav .= subnavtext("Calendar Module", "phpwcms.php?do=modules&p=3", $p, "3", 0);
}
// Gallery Module
if ($phpwcms["gallery_mod"]) { // enabled/disable Gallery Module
$subnav .= subnavtext("Gallery Module", "phpwcms.php?do=modules&p=5", $p, "5", 0);
}
break;
The alteration:
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;
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;
case 5: //Gallery Mod
if ($phpwcms["gallery_mod"]) {
include_once("./include/inc_module/mygallery/main.inc.php");
}
break;
/var/www/html/cms/include/inc_front/content.func.inc.php
// -------------------------------------------------------------
// Jérôme's Graphical Text MOD
// Coypright (C) 2004 by
if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
require_once ('include/inc_module/mod_graphical_text/inc_front/gt.func.inc.php');
}
// Gallery MOD by Scraper
if($phpwcms["gallery_mod"]) { //enabled/disable Gallery MOD
require_once ('./include/inc_module/mygallery/inc_front/func.inc.php');
}
// -------------------------------------------------------------
It is then advised:
upload the mygallery folder to: PHPWCMS_ROOT/include/inc_modules/
Would this reflect as: /var/www/html/cms/include/inc_modules/
Please advise...
Thanks,
Grant