Author Topic: no_upload.txt  (Read 3343 times)

0 Members and 1 Guest are viewing this topic.

Offline Alex

  • album.pl User
  • *
  • Posts: 4
  • Karma: +0/-0
  • MetallicA
no_upload.txt
« on: September 04, 2002, 19:13:40 »
Hey,

Here's what I have:
-------------------------
*[Dir_with_pictures]
...
*[Another_Dir]
 *[Sub_Dir]
        *[Sub_Dir_of_Sub_Dir]
--------------------------
if I put no_upload.txt into every one of those dirs the following happens: In any top level directory such as Dir_with_pictures, everything works fine, but in directories that contain subdirs - it doesn't not... In upload page those dirs are still visible in Category selection, and it's still possible to upload in those directoris and any subdirs they contain eventhough there's a "no_upload.txt" in every single one of them.
:-[

tried to look at the code.. i'm afraid i'll mess up the whole thing if i'll start fixing it :-/
tried searching forum/readme files.. nothing.

Thanks,
Alex
(I hope I explained the problem clearly)
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »
it's all good

Offline Andrew

  • album.pl Hacker
  • ****
  • Posts: 114
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • WHITEWATER!
Re: no_upload.txt
« Reply #1 on: September 05, 2002, 01:55:59 »
see this thread.....

http://perl.cdnarmy.ca/cgi-bin/yabb/YaBB.cgi?board=album.pl_features;action=display;num=1026782314

I am having the same problem...Mike is looking into it right now I think.

Peace,

Andrew
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: no_upload.txt
« Reply #2 on: September 05, 2002, 04:17:25 »
Haha, well there's even *more* conclusive evidnce that it's a bug!!

Thanks guys!

P.S. Alex, I know how you feel - sometimes I'm afraid I'll mess up the whole thing too!  ;D

Offline Alex

  • album.pl User
  • *
  • Posts: 4
  • Karma: +0/-0
  • MetallicA
Re: no_upload.txt
« Reply #3 on: September 05, 2002, 16:39:12 »
Hey,
Thanks for the reply guys!

Yep Andrew, you are absolutely correct :-/ ... that's the thread I needed...I was searching for no_uploads.txt instead of no_upload.txt that's why never found anything. Sorry about the post, my bad  :-X

I guess then I'm waiting for the new release. In a mean time I'll go take a look at the beta.(and also check the code out.. there are so many things I can learn from it. Mike, thanks for all the comments you put there to make it all easier to understand)

Thanks again,
Alex
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »
it's all good

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: no_upload.txt
« Reply #4 on: September 05, 2002, 16:59:31 »
No problem! I try to comment it reasonably well, though I'm sure it's still horrible to try to read through...

I *will* fix the no_upload(s).txt problem, I promise. ;)

Cheers
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: no_upload.txt
« Reply #5 on: September 05, 2002, 17:19:24 »
Ok, I think I got it. I've updated the beta with the fix, let me know how it looks!

Cheers
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Alex

  • album.pl User
  • *
  • Posts: 4
  • Karma: +0/-0
  • MetallicA
Re: no_upload.txt
« Reply #6 on: September 06, 2002, 16:25:21 »
Quote

Failed basic sanity test: Config file is version 6.0 Beta 1 but you are running version 6.0 Beta 1 of this program. Please fix!

*sigh*
first I tried to upgrade, so I made all the backups, and uploaded the new cfg and pl files.. didn't work.. then I created a new dir to see if I messed something up.. the album still gave me the same error when i tried to install it in a new directory.
-ERROR: Line 4582-

Thanks,
Alex
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »
it's all good

Offline Andrew

  • album.pl Hacker
  • ****
  • Posts: 114
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • WHITEWATER!
Re: no_upload.txt
« Reply #7 on: September 06, 2002, 16:42:36 »
Hi Alex...

Until Mike get's around to addressing the problem you mentioned directly (I don't quite understand what it is or how to correct it) you might want to  take a look at my post concerning the no upload.txt deal.   All you really need to do to get this feature to work properly is edit ONE line of code in you album.pl file....this line of code and it's correction Mike describes in a response to my post.

Get out your backup of album.pl and open it in notepad.  Search for the line

Code: [Select]
if (!-e "$album_dir/$already_scanned/$single_directory/no_upload.txt")

and replace it with

Code: [Select]
if (!-e "$album_dir/$single_directory/no_upload.txt")

My album pl is pretty different from stock so I always go for the shortcut if I can avoid another round of modifications to it.  This worked for me....just wonderfully...I am real excited about this little addition to the program.   Album.pl is already a superb gallery app but additions such as this are what make it truly a customisable scalable tool.  Right on Mike....you are a coding stud!!!!


Peace and Inner Harmony,

Andrew
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Alex

  • album.pl User
  • *
  • Posts: 4
  • Karma: +0/-0
  • MetallicA
Re: no_upload.txt
« Reply #8 on: September 06, 2002, 22:30:29 »
Hey Andrew, thanks buddy!
It worked  :)
Wow, one line of code.. out of 8000+..

I agree, Mikes hobby is really something eventhou he says it went terribly wrong  8)
I do admire it.

And for you Andrew - Congrads on the 100th post!  =]

Thanks again,
Alex
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »
it's all good

Offline Kheperi

  • album.pl Tester
  • **
  • Posts: 31
  • Karma: +0/-0
  • I did, I did change the default text!
Re: no_upload.txt
« Reply #9 on: September 07, 2002, 00:57:10 »
This was an option i needed too! I had to move pics almost every time after an upload, when it was put in the rootdir of the album again.
Now its fixed!! :)
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: no_upload.txt
« Reply #10 on: September 07, 2002, 04:36:35 »
Glad to hear it works guys.

And Alex, I'd guess your issue was whitespace with the version number. Maybe like this "cfgver=6.0 Beta 1 " in album.cfg.

Just a guess though...

Edit: And add my congratulations to Andrew on his 100th post. You're the most active user on this board!

Offline Kheperi

  • album.pl Tester
  • **
  • Posts: 31
  • Karma: +0/-0
  • I did, I did change the default text!
Re: no_upload.txt
« Reply #11 on: September 08, 2002, 00:53:08 »
And you congrats with your 644th post Mike!! 644, a nice round number for linux users   ;D
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: no_upload.txt
« Reply #12 on: September 08, 2002, 05:20:29 »
Heheh. Thanks! Next up: 777! ;D
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re: no_upload.txt
« Reply #13 on: September 30, 2002, 10:10:05 »
So how exactly does this work? If I have albums with sub albums with sub albums, if I put no_upload.txt into the parent album, will it prevent uploads into all the children albums, or do I need to put that in each and every directory that I want to limit? If it's the latter, what happens if I put no_upload.txt into the parent directory and not a sub sub child directory? Will users still be able to upload there, even though they can't upload on the parent?

Perhaps I'll just experiment myself... let me know if there's a concrete answer. 8)
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re: no_upload.txt
« Reply #14 on: September 30, 2002, 11:24:15 »
For our knowledge base:

I experimented... I guess you have to put that file in each and every directory. I just did that. Boy did I have alot of subdirectories and sub-sub directories! Oh well. It's done.
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan