Author Topic: How to disable showing empty directories?  (Read 7968 times)

VictorC

  • TodayPlus Newbie
  • *
  • Posts: 6
How to disable showing empty directories?
« on: September 05, 2006, 04:07:56 PM »
Hello,
any way how to disable showing empty directories, so that only dirs containing any videos are shown?
thanx.
VicC

jhollin1138

  • Administrator
  • TodayPlus Veteran
  • *****
  • Posts: 785
    • www.jhollin1138.com
How to disable showing empty directories?
« Reply #1 on: September 05, 2006, 10:48:33 PM »
Nope, that is something also native to SPGM as well.
Jim H

VictorC

  • TodayPlus Newbie
  • *
  • Posts: 6
How to disable showing empty directories?
« Reply #2 on: September 06, 2006, 01:58:35 AM »
well, it is, using gal-hide.txt, but i cant find this in spgm-vid.php... only in spgm.php

jhollin1138

  • Administrator
  • TodayPlus Veteran
  • *****
  • Posts: 785
    • www.jhollin1138.com
How to disable showing empty directories?
« Reply #3 on: September 06, 2006, 07:37:57 AM »
Quote from: "VictorC"
well, it is, using gal-hide.txt, but i cant find this in spgm-vid.php... only in spgm.php

:oops: I wasn't aware of this addition to SPGM, I'll have to take a look.
Jim H

VictorC

  • TodayPlus Newbie
  • *
  • Posts: 6
How to disable showing empty directories?
« Reply #4 on: September 06, 2006, 08:55:15 AM »
thanx lot

jhollin1138

  • Administrator
  • TodayPlus Veteran
  • *****
  • Posts: 785
    • www.jhollin1138.com
How to disable showing empty directories?
« Reply #5 on: September 06, 2006, 09:07:41 AM »
Quote from: "VictorC"
thanx lot

I have figured out the problem and thought I had an easy solution, but it only works correctly for sub-galleries for a gallery.  I'll have to think about it some more and nail down the problem this evening (I'm at work now).
Jim H

VictorC

  • TodayPlus Newbie
  • *
  • Posts: 6
How to disable showing empty directories?
« Reply #6 on: September 06, 2006, 09:54:00 AM »
how about option in config: if directory contains "0" videofiles - hide it from listing?

jhollin1138

  • Administrator
  • TodayPlus Veteran
  • *****
  • Posts: 785
    • www.jhollin1138.com
How to disable showing empty directories?
« Reply #7 on: September 06, 2006, 10:00:14 AM »
Quote from: "VictorC"
how about option in config: if directory contains "0" videofiles - hide it from listing?

That actually is the problem that I am having when hiding the gallery, it shows up with "0" videos.  I just have to write something to handle "0" items.  I actually thought I already did, but I must not have.  I just need to play around with it, it shouldn't be that hard.  It is just to hard to focus on SPGM-Vid here at work.
Jim H

VictorC

  • TodayPlus Newbie
  • *
  • Posts: 6
How to disable showing empty directories?
« Reply #8 on: September 07, 2006, 02:49:34 AM »
i am looking forward, thank you very mutch for your help :-)

jhollin1138

  • Administrator
  • TodayPlus Veteran
  • *****
  • Posts: 785
    • www.jhollin1138.com
How to disable showing empty directories?
« Reply #9 on: September 07, 2006, 07:29:19 AM »
Quote from: "VictorC"
i am looking forward, thank you very mutch for your help :-)

I got it working last night.  I'll try and get everything packaged up and release v1.0.8 in the next day or so.
Jim H

VictorC

  • TodayPlus Newbie
  • *
  • Posts: 6
How to disable showing empty directories?
« Reply #10 on: September 07, 2006, 08:12:42 AM »
magic ;]