coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: crippe on March 22, 2005, 10:31:04 PM

Title: Coppermine don't accept directory names while batch adding please help
Post by: crippe on March 22, 2005, 10:31:04 PM
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
Title: Re: Coppermine don't accept directory names while batch adding please help
Post by: Nibbler on March 22, 2005, 10:46:14 PM
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.
Title: Re: Coppermine don't accept directory names while batch adding please help
Post by: crippe on March 22, 2005, 11:05:11 PM
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.

Title: Re: Coppermine don't accept directory names while batch adding please help
Post by: Nibbler on March 22, 2005, 11:30:21 PM
Comment out this:

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

We'll get there in the end :)
Title: Re: Coppermine don't accept directory names while batch adding please help
Post by: crippe on March 23, 2005, 09:42:09 AM
Hi Nibbler

Yepp that did the trick!

Thanks for great support !

Regards

Crippe