forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: Scuzz on November 21, 2004, 12:27:42 pm

Title: Navigation in batch add
Post by: Scuzz on November 21, 2004, 12:27:42 pm
I'd like to see collapsible directories, and/or a "used/done" mark beside the directory listing when batch adding.
I'm currently using a year/month/subject listing and it's getting long.
If I add 20 galleries a month for 2 years, My list is gonna take a week to find the new stuff to add!
EG:
2004
      Oct
            Category1
                        Gallery1
                        Gallery2
                        Gallery3
                        Gallery4
                        Gallery5
                        Etc.
          Category2
                        Gallery1
                        Gallery2
                        Gallery3
                        Gallery4
                        Gallery5
                        Etc.
          Category Etc.
                        GalleryEtc
      Nov
            Category1
                        Gallery1
                        Gallery2
                        Gallery3
                        Gallery4
                        Gallery5
                        Etc.
          Category2
                        Gallery1
                        Gallery2
                        Gallery3
                        Gallery4
                        Gallery5
                        Etc.
          Category Etc.
                        GalleryEtc

     Dec
            Category1
                        Gallery1
                        Gallery2
                        Gallery3
                        Gallery4
                        Gallery5
                        Etc.
          Category2
                        Gallery1
                        Gallery2
                        Gallery3
                        Gallery4
                        Gallery5
                        Etc.
          Category Etc.
                        GalleryEtc
Title: Re: Navigation in batch add
Post by: Casper on November 21, 2004, 01:11:53 pm
Version 1.4 has a browser style batch add, so when you first go to it, you will only see '2004, 2005, etc'.
Click on 2004, you will see 'Oct, Nov, etc'.

Much more user friendly.  There is no 'done'mark next to the folders though, as this would require the database to run a query for every pic on the server to see if it already existed on the db, every time you went to the batch add.
Title: Re: Navigation in batch add
Post by: paulaerison on November 23, 2004, 10:26:45 pm
a checkbox at the top for "show only new images" would be handy.

It would take all of 10 lines of code as CPG already "auto-check-marks" new images... I will work on it tonight
Title: Re: Navigation in batch add
Post by: paulaerison on November 24, 2004, 07:01:47 am
actually, it amounted to more like 30 lines including comments. I broke my own mod making this one, and had to mod my mod. To hairy to show the mod mod fixes and this mod, so, here's the whole file...

CGP ver 1.3.2
Bug testing: clean within searchnew.php
addtl bug test: none
regression testing: none
progression testing: none

backup your original before using this.

Title: Re: Navigation in batch add
Post by: paulaerison on November 24, 2004, 07:16:05 am
bug fixed -> typ-o forgot the _ in $_REQUEST, instead it was $REQUEST["nonexistent array populated by auto-type-casting"]
cause a break in my pagignation mod and the all/new filter mod reverted to 10 images/page all the time...

FILEMANE: searchnew.php
HAYSTACK: function CPGscandir($dir, &$expic_array)
NEEDLE:
Code: [Select]
echo "<td colspan=\"1\" class=\"tableh2\"><select name=\"cpgImgShow\" class=\"listbox_lang\" onchange=\"if (this.options[this.selectedIndex].value) window.location.href='/searchnew.php?sh=' + this.options[this.selectedIndex].value + '&pl=".$REQUEST["pl"]."&pg=1&startdir=".$_REQUEST["startdir"]."';\">

REPLACE:
Code: [Select]
echo "<td colspan=\"1\" class=\"tableh2\"><select name=\"cpgImgShow\" class=\"listbox_lang\" onchange=\"if (this.options[this.selectedIndex].value) window.location.href='/searchnew.php?sh=' + this.options[this.selectedIndex].value + '&pl=".$_REQUEST["pl"]."&pg=1&startdir=".$_REQUEST["startdir"]."';\">