TodayPlus Boards v2

Programming and MOD Forums => SPGM-Vid => Topic started by: VictorC on September 05, 2006, 05:07:56 PM

Title: How to disable showing empty directories?
Post by: VictorC on September 05, 2006, 05:07:56 PM
Hello,
any way how to disable showing empty directories, so that only dirs containing any videos are shown?
thanx.
VicC
Title: How to disable showing empty directories?
Post by: jhollin1138 on September 05, 2006, 11:48:33 PM
Nope, that is something also native to SPGM as well.
Title: How to disable showing empty directories?
Post by: VictorC on September 06, 2006, 02:58:35 AM
well, it is, using gal-hide.txt, but i cant find this in spgm-vid.php... only in spgm.php
Title: How to disable showing empty directories?
Post by: jhollin1138 on September 06, 2006, 08: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.
Title: How to disable showing empty directories?
Post by: VictorC on September 06, 2006, 09:55:15 AM
thanx lot
Title: How to disable showing empty directories?
Post by: jhollin1138 on September 06, 2006, 10: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).
Title: How to disable showing empty directories?
Post by: VictorC on September 06, 2006, 10:54:00 AM
how about option in config: if directory contains "0" videofiles - hide it from listing?
Title: How to disable showing empty directories?
Post by: jhollin1138 on September 06, 2006, 11: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.
Title: How to disable showing empty directories?
Post by: VictorC on September 07, 2006, 03:49:34 AM
i am looking forward, thank you very mutch for your help :-)
Title: How to disable showing empty directories?
Post by: jhollin1138 on September 07, 2006, 08: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.
Title: How to disable showing empty directories?
Post by: VictorC on September 07, 2006, 09:12:42 AM
magic ;]