Navigation in batch add Navigation in batch add
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Navigation in batch add

Started by Scuzz, November 21, 2004, 12:27:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Scuzz

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

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

paulaerison

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

paulaerison

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.


paulaerison

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: 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: 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"]."';\">