coppermine-gallery.com/forum

Support => Older/other versions => cpg1.1d PHPnuke Support (deprecated) => Topic started by: yrret on October 12, 2003, 08:31:04 PM

Title: picmgmtbatch.inc.php can paths be variables?
Post by: yrret on October 12, 2003, 08:31:04 PM
on lines 28-30

        $image = "modules/coppermine/albums/$image";
        $normal = "modules/coppermine/albums/$normal";
        $thumb = "modules/coppermine/albums/$thumb";


I like to keep my albums folder outside my Nuke folder to ease back-up chores. The batch upload is not modified by the configuration file variable. I have changed this to be hard coded specific to my site, but wonder if I could just stick a variable in there (one that exists). I am still getting my brain around the code and appreciate any help.
Title: same problem
Post by: tallar on October 22, 2003, 09:50:04 PM
is there anybody whw can help us??
Title: ????
Post by: tallar on October 26, 2003, 02:35:18 AM
Hello ????
Title: picmgmtbatch.inc.php can paths be variables?
Post by: DJMaze on October 26, 2003, 06:17:19 AM
Go to your coppermine config page.

There you can setup the directories.
Title: Actually I posted this because the paths don't change
Post by: yrret on November 01, 2003, 09:24:23 PM
The problem I am talking about is that if you move the folder outside your nuke folder, the batch function is not using the paths from the variable. Which is pretty evident when you look at the code I posted.

$image = "modules/coppermine/albums/$image";
   $normal = "modules/coppermine/albums/$normal";
   $thumb = "modules/coppermine/albums/$thumb";

If you want to move your folder, change to hard code your path till the new nuke version is out... (The new coppermine uses the variables here)

$image = "../albums/$image";
   $normal = "../albums/$normal";
   $thumb = "../albums/$thumb";


So the ../ is telling coppermine to jump up one level, instead of starting at the root level of your nuke intsall.
If your albums folder is different than albums, you will have to change it in the code.