WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Temp_ files

Version:
printPrint


Temp_ files
dreamweaver
Experienced
Avatar

Usergroup:
Joined: May 05, 2004
Total Topics: 12
Total Posts: 53
Posted 10/10/04 - 05:07 AM:
quote post
#1
I have only very recently noticed the "temp_" files that seem to be automatically created. Putting aside for the moment the fact that images cannot be edited at all (even when they have their own "temp_" file), just when did these come into use? Since, I can't say that I noticed them with the old version.

It seems like a bad way of using the function because I often go to "Unused attachments" to clear out the trash there; but, now, I get a whole big bunch of "temp_" files.

Not really sure what's best to do, but if those are only created for image editing, I think it'll be a good idea -- at least, for me -- to disable it and just take that feature out. Any help?
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5965
Posted 10/10/04 - 09:07 PM:
quote post
#2
Unused attachments should not remove any temp_ files. Does it?

just when did these come into use?

Version 1.00 I believe. They have always been there. I don't think they were auto-created until the issue of not watermarking thumbnails came up maybe 6 months ago, before that they may only have been created when someone did editing.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
dreamweaver
Experienced
Avatar

Usergroup:
Joined: May 05, 2004
Total Topics: 12
Total Posts: 53
Posted 10/11/04 - 01:32 AM:
quote post
#3
They sure do for me. As I said, though, editing isn't working for me so the problem might be related... And, sorry, but what's watermarking?
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5965
Posted 10/11/04 - 06:40 AM:
quote post
#4
Let me introduce you to a brand new website you may not have heard of yet, called "Google": http://www.google.com/search?hl=en&q=watermarking...

The reason editing isn't working for you would likely be your having changed the image html in the template, probably to resize the images since you posted that thread. That dynamic resizing, incidentally, is yet another thing the temp_ files are used for (at least with ImageMagick).

Edited by Paul on 10/11/04 - 06:43 AM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
dreamweaver
Experienced
Avatar

Usergroup:
Joined: May 05, 2004
Total Topics: 12
Total Posts: 53
Posted 10/11/04 - 01:12 PM:
quote post
#5
Ok. So if there's a problem with the "dynamic resizing" that I'm using.... what should I have in there instead? Say, if it exceeds 750 in width..... to resize down to 750 width... etc.

p.s. stop making me use the "...." and remember -- you have to be hyper-polite to me. I'm such a great customer.

Edited by dreamweaver on 10/11/04 - 01:15 PM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5965
Posted 10/11/04 - 07:03 PM:
quote post
#6
Dearest valued customer dreamweaver, I must humbly suggest that a temp_ file can only do one thing at a time. It can't have two separate pictures in it. Therefore, I regret to inform you that you can't both dynamically resize an image and allow it to be edited at the same time without some issues. Namely, every time someone viewed the image, the edited version would be lost.

If you still want to do try, you need to go back to the default template and copy and paste the image url used there. I don't know if the resizing bit will overwrite the editing or just work in addition to it.

Is there any other way I may serve you?

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
dreamweaver
Experienced
Avatar

Usergroup:
Joined: May 05, 2004
Total Topics: 12
Total Posts: 53
Posted 10/12/04 - 02:37 AM:
quote post
#7
Much better!

I don't mind at all that the edited version would be lost... if editing is going to cause the problems, then I don't mind not having the function. It's certainly worth it if the resizing etc.. is going to work properly.

So, now, what would you recommend I have for the image template so that it can resize, as I suggested? That is, so that the temp_ files won't apepar when I look under "unused attachments" and that it will resize in the same way I suggested in my last post?

Thanks.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5965
Posted 10/12/04 - 02:42 AM:
quote post
#8
I'm just not sure if the resizing will overlay with the editing effects or just eliminate them. Take the original template's image url, and add on the &width=x&height=y bit to the end. See it that makes editing work. If it doesn't, you'd have to perhaps link the editing buttons to a separate page containing the image without the &width=x&height=y bit in the urls.

That is, so that the temp_ files won't apepar when I look under "unused attachments"

That's an unrelated matter I'll have to look into.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5965
Posted 10/12/04 - 02:44 AM:
quote post
#9
Open admin/junkfiles.php and change
if (!array_search(str_replace('thumb_', '', $file), $usedfiles) && !array_search($jpgthumb, $usedfiles) && $file != 'index.htm' && $usedfiles[0] != $file && !strstr($file, 'unmarked_') && !is_dir($settings->uploadpath . $file))
to
if (!array_search(str_replace('thumb_', '', $file), $usedfiles) && !array_search(str_replace('temp_', '', $file), $usedfiles) && !array_search($jpgthumb, $usedfiles) && $file != 'index.htm' && $usedfiles[0] != $file && !strstr($file, 'unmarked_') && !is_dir($settings->uploadpath . $file))

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
dreamweaver
Experienced
Avatar

Usergroup:
Joined: May 05, 2004
Total Topics: 12
Total Posts: 53
Posted 10/12/04 - 11:30 AM:
quote post
#10
Thanks. Working fine now by the looks of it... believe it or not -- the Image editing functions are working a charm now, as well.

Edit: Oh, just one more lil' thing. When I do some image editing and then press "restore"... the image goes to full size; rather than going to 720 as a max width. Any ideas on what to change?

Edited by dreamweaver on 10/12/04 - 11:43 AM
dreamweaver
Experienced
Avatar

Usergroup:
Joined: May 05, 2004
Total Topics: 12
Total Posts: 53
Posted 10/13/04 - 02:49 PM:
quote post
#11
Too good to be true, it seems. Though the temp_ files don't show up in unused attachments, when I do a bulk upload -- ftp import -- it imports all those temp_ files right in to the category.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5965
Posted 10/14/04 - 06:34 AM:
quote post
#12
admin/tarupload.php replace && !strstr($file, 'thumb_') with && !strstr($file, 'thumb_') && !strstr($file, 'temp_')

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
dreamweaver
Experienced
Avatar

Usergroup:
Joined: May 05, 2004
Total Topics: 12
Total Posts: 53
Posted 10/15/04 - 07:42 AM:
quote post
#13
Thanks. Any ideas on the restore thing?
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.