Hi Vuud,
I do not know what version the others are talking about, I am trying to make the cpmfetch v1.9.5.
Here are what I have tried:
Method 1:
The following are in the main directory:
*/gal001 -> this is the CPG folder
*/cpmfetch2 -> this is the cpmfetch folder
*/pics -> this is the directory where the photos are kept (outside of the CPG) folder
Intallation:
http:/mysite.org/cpmfetch2/install.php
Result:
ERROR: Did not find config file at ../include/config.inc.php
Fatal error: Call to undefined function: getdefaults() in /home/public/public_html/cpmfetch2/cpmfetch_dao.php on line 69
__________
The error was localized here:
__________
// TODO: Add config file versus dao version check here
// Load config settings
$this->cfg =
array_merge(getDefaults(),
getCpgConfiguration(),
getUserDefined(),
getUserOverrides()
);
__________
Notes:
Correction1&2 applied:
../cpmfetch2/cpmfetch.inc.php
or
../../cpmfetch2/cpmfetch.inc.php
did not rectify the error, nor trigger population of the "cpmfetch_config.php"
Method 2:
The following are in the main directory:
*/gal001 -> this is the CPG folder
*/pics -> this is the directory where the photos are kept (outside of the CPG) folder
*/gal001/cpmfetch2 -> this is the cpmfetch folder
Result:
Test images:
If all went well, you will see some random images from your gallery displayed here. If not, you may in fact have a problem and will need to seek help by clicking here.
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000d_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000a_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_32.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_31.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000d_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000a_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_32.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_31.jpg
%f
%h views
%f1%h views
%f2%h views
%f3%h views
%f4These images were generated by using the following PHP code:
<?php
include "./cpmfetch.php";
$objCpm = new cpm();
$objCpm->cpm_viewLastAddedMedia(1,4);
$objCpm->cpm_close();
?>
For
Method 2, while the images did not show up, the links:
%f1 ~
%f2 ~
%f3 &
%f4 were clickable and provide the correct images.
Also, the "cpmfetch_config.php" file was populated with the values relevant to gal001:
// Full URL to your CPG gallerys album directory
// $cfg['cpg_album_url'] = '
http://mysite.org/gal001/../pics/';The
Method 1 over
Method 2 configuration would be preferred.
I think the "override function" would still be needed because of the unique location of the photos. There are related questions, but I will raise those later. Thanks.
Cornelio