News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

Main Menu

Coppermine don't accept directory names while batch adding please help

Started by crippe, March 22, 2005, 10:31:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

crippe

While batch adding I found a problem. The batch add function don't accept a directory with a dot in it ( album.name )

You can see ( see bold text ) that searchnew.php cuts out everything in the directory name that comes after the . ( real name ( album.name ))

I may sound silly you might say, just rename the directory....... But the problem is that the content is already live and published so I really don't want to change the directory structure.

Warning: opendir(album/): failed to open dir: No such file or directory in /web/sites/mydomain.com/members/copperminevid/searchnew.php on line 191

Warning: readdir(): supplied argument is not a valid Directory resource in /web/sites/mydomain.com/members/copperminevid/searchnew.php on line 192

Warning: closedir(): supplied argument is not a valid Directory resource in /web/sites/mydomain.com/members/copperminevid/searchnew.php on line 202



Regards

Crippe

Nibbler

Find this line:

//if (is_dir($CONFIG['fullpath'] . $folder . $file) && $file != "." && $file != "..") { // removed by following line for 'do not show folders with dots': gaugau 03-11-02

in searchnew.php, uncomment it, and comment out the line immediately below instead.

crippe

Hi Nibbler thanks for getting back to me so fast  :D,

Nope that didn't do it, still the same result  :\'( The directory name is still getting cut off after the . so coppermine can't find the files in that directory. Coppermine actually list the directory name correctly on the bach page.


Nibbler

Comment out this:

$dir = str_replace(".","" ,$dir);

We'll get there in the end :)

crippe

Hi Nibbler

Yepp that did the trick!

Thanks for great support !

Regards

Crippe