Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Navigation in batch add  (Read 3011 times)

0 Members and 1 Guest are viewing this topic.

Scuzz

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 1
Navigation in batch add
« 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
« Last Edit: November 22, 2004, 09:36:56 am by GauGau »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Navigation in batch add
« Reply #1 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.
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 38
    • Galaxy Warzone Interactive
Re: Navigation in batch add
« Reply #2 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
Logged

paulaerison

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 38
    • Galaxy Warzone Interactive
Re: Navigation in batch add
« Reply #3 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.

Logged

paulaerison

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 38
    • Galaxy Warzone Interactive
Re: Navigation in batch add
« Reply #4 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"]."';\">
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 21 queries.