nr. 1 -- Betreff / subject: erster Eintrag / first entry
Dies ist der Platz für Fragen und Anregungen bzgl. des PhotoZip Plugins. / This is the place for questions and suggestions in relation to the PhotoZip plugin.
von / written by Tim - 21.05.2007 - 01:20:43
nr. 2 -- Betreff / subject: fatal error
Hi, I really want to use the photozip plugin. When I uploaded the files and tried to activate the plugin, wordpress refused showing this error. "Plugin could not be activated because it triggered a fatal error." I hope you can help me out here. I'm using Wordpress 2.2 and my server is running apache and php5 on ubuntu linux 6.06.
Thanks!
von / written by Tim - 22.05.2007 - 11:12:56
nr. 3 -- Betreff / subject: re: fatal error
I suppose that the problem is caused by duplicate function names. In the last versions I was a little bit careless while naming the functions. So it is possible that v0.4.3 - v0.4.5 include functions with the same name like functions of other plugins.
If this is the reason the new version v0.4.6 should be helpfully.
If this not solve your problem then tell me your other WP plugins and the language version of your WP, please.
von / written by Tim B. - 22.05.2007 - 15:12:47
nr. 4 -- Betreff / subject: fatal error
Thanks for the quick response. I've tried again and the error is gone!
I've been trying out new plugins today so I'm not sure which plugin may have been causing this errors. It could have been and old version of the WPG2 plugin or a plugin called 'Filosofo Old-Style Upload'. I'm using the English version of WordPress. Thanks again!
von / written by Tim - 22.05.2007 - 15:38:51
nr. 5
Hi, same question as I asked Zz85, the plugins seems to always create thumbnails, how can i switch the creation of thumbnails off? tnx.
von / written by Andrew - 1.06.2007 - 17:43:33
nr. 6 -- Betreff / subject: no thumbnails
Hi Andrew, there is no such option. The plugin creates every thumbnails. But I think that is a useful feature for the next version (or maybe for separate plugin). I'm not sure how much time i will need for this (2 weeks from now?). Have you tried the "Just unzip" plugin? It is downloadable here: http://dev.wp-plugins.org/wiki/JustUnzip.
von / written by Tim B. - 3.06.2007 - 22:14:37
nr. 7 -- Betreff / subject: re
yeah, Tim, ive tried it but cant actually make it work...and your plugin is so much better. I tried modifying yours by myself but im not a php guy so it seems quite difficult for me...what i figured out is that it wont create thumbnails if i set one of these parameters to a bigger number
<option value=100>100</option>
<option value=120>120</option>
<option value=140>140</option>
<option value=160>160</option>
<option value=180>180</option>
I set like 900x900px and it wont create thumbnails then cause the picture by itself is smaller...but one problem remains...when i press "insert and close" i still get this kind of link even though there is no thumbnail on the server:
<a href="http://domain.com/wp-content/uploads/only2/12.jpg" title="only2_0"><img src="http://domain.com/wp-content/uploads/only2/.thumbs2/12.jpg" alt="only2_0" /></a>
so im now trying to change the link template so it would look like <img src=...> ))
so yeah, it would be really cool if you could add such a feature in the future versions....\\
von / written by Andrew - 3.06.2007 - 23:28:02
nr. 8 -- Betreff / subject: re (2)
hm...it still creates thumbnails but of the same size as the picture...(i mean if i set 900x900) :((
von / written by Andrew - 3.06.2007 - 23:42:59
nr. 9 -- Betreff / subject: re (3)
one more thing :)) sorry for spamming, but im just trying to adapt the plugin for my site cause its like the only one in the market of this kind...(zz85`s photozip seems to be a bit outdated)..
meanwhile, in zz85's photozip we can set the path to upload folder in an absolute way...i mean like ../user/domain.com/upload This allows to separate WP from pictures by uploading pictures to a sub-domain, like imgs.domain.com but in your plugin only same domain can be used...(maybe a bit confusing explanation but i hope u get what i mean)...
so maybe in future releases you consider this feature as well :)) this would be quite handy...
von / written by Andrew - 3.06.2007 - 23:57:06
nr. 10 -- Betreff / subject: thumbnails and subdomains
Andrew, tomorrow, i will publish a new version. Than it will be possible to choose "don't make thumbails". The plugin (047) will only upload and unpack the pictures and then it everyone can change thee size via the WYSIWYG-editor of wordpress or you resize the pictures before the upload.
Subdomains: If you like to choose another subdomain then you could do this relatively easy: Please have look to the lines 50-80. There is the place where the definition of the absolute address is.
I think if you change $home_path and $photozip_blogurl then it shouldn't be a problem for the plugin to put the picture to another subdomain. $photozip_blogurl contains the domaine name (e.g. http://www.xyz.com) and $home_path the same with a trailing slash. (Important for the rest of the plugin are $photozip_moveto_path, $photozip_viewsaddress, $photozip_contentfolder.) By the manager_mce.php opens after clicking in the WYSIWYG-editor on the photozip-button and manager.php after clicking on the button while you have turned of the WYSIWYG-editor on the user profile page. If want you want to know what the differences are then look to lines 841-842 and 737 in manger_mce.php or manager.php of version v0.4.6.
von / written by Tim B. - 4.06.2007 - 02:25:07
nr. 11 -- Betreff / subject: resize pictures
Uploaded pictures will be resized only if they are bigger than the max. thumbnail size. (function photozip_resize())
von / written by Tim B. - 4.06.2007 - 02:39:04
nr. 12
Wow, you are so fast, thanks a lot...i will try it tomorrow, cheers!
von / written by Andrew - 4.06.2007 - 03:37:44
nr. 13 -- Betreff / subject: re
Hello again :) tested the new version, uploading works fine...but then you cant do anything with pictures...you cant insert them in post as with thumbnails...
von / written by Andrew - 4.06.2007 - 14:22:17
nr. 14 -- Betreff / subject: v0.4.7
Yes, you are right. More changes will need more time. But generally you can switch after the upload to the WYSIWYG-editor and put the pictures via the WordPress function (below the editor) into the post.
(by the way: less minutes ago i have put some additional notes to the function photozip_resize() in manager_mce.php which maybe explain how it is possible to use the function to resize picture in every way.)
von / written by Tim B. - 4.06.2007 - 15:21:37
nr. 15 -- Betreff / subject: new
yeah, it would be great if some time later you add a feature of inserting pictures without thumbnails as well...meanwhile, i managed to upload pictures to a subdomain, thanks to your help...
maybe someone needs this, i just changed lines 70-73:
(70) $photozip_siteurl = 'http://img.xyz.com';
(71) $photozip_blogurl = 'http://img.xyz.com';
(72) $home_path = '/home/user/img.xyz.com/';
(73) $home_path = trailingslashit($root . $home_path);
and then, of course, i changed the default "wp-content/uploads" folder by doing a find-replace "wp-content/" with "something/"
maybe this is useful for someone...i did this cause in the future i want to host pictures and wp on different servers so it will be easier manage everything...
von / written by Andrew - 4.06.2007 - 18:51:58
nr. 16 -- Betreff / subject: v0.4.8
I have added a insert-function in this version. The image titles and the alternete text (alt) will derived from the file names.
von / written by Tim B. - 4.06.2007 - 19:17:22
nr. 17 -- Betreff / subject: re
Wow... you r amazing! thanks so much, adding tens of pictures in just several clicks is so cool...
von / written by Andrew - 4.06.2007 - 19:29:03
nr. 18 -- Betreff / subject: mail
Just checked mail, thx!
von / written by Andrew - 4.06.2007 - 23:07:53
nr. 19 -- Betreff / subject: Works with modification for Wordpress MU
I am trying to get photozip working for Wordpress MU.
Install works up untill attempting to upload the zip file.
Error message is related to the following php command.
in manager_mce.php
<?php
require_once( dirname(dirname(dirname(dirname( __FILE__ )))) . "/wp-config.php");
//header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
get_currentuserinfo();
if ( (is_null($user_login)) or ($user_level < 1) ) { // Checks to see if user has logged in
die (__('It seems that you are not logged in. Delete the cookies in your browser, log in and try it again. OR You are not allowed to edit posts. (user level < 1)', 'PhotoZip'));
}
I got around this error by forcing it to ignore the error by deleting the section:
if ( (is_null($user_login)) or ($user_level < 1) ) { // Checks to see if user has logged in
die (__('It seems that you are not logged in. Delete the cookies in your browser, log in and try it again. OR You are not allowed to edit posts. (user level < 1)', 'PhotoZip'));
}
It then skips ahead and processes the .zip. If anyone has a more elegant approach post it here. Otherwise this is a fast way to upload bulk photos to your blog using Wordpress MU
von / written by Jeff - 6.06.2007 - 23:40:43
nr. 20 -- Betreff / subject: Re: Works with modification for Wordpress MU
Hi Jeff, thanks for that report!
I have looked into the source of WordPress and WordPress MU and I think if you would replace the first lines in manager_mce.php and manager.php with the following lines it should work with WordPress MU, too. (I hope so)
require_once( dirname(dirname(dirname(dirname( __FILE__ )))) . "/wp-config.php");
$user = wp_get_current_user();
if ($user->id == 0) {
die (__('It seems that you are not logged in. Delete the cookies in your browser, log in and try it again.', 'PhotoZip'));
} elseif ( isset($user->user_level) and intval($user->user_level) < 1 ) {
die (__('You are not allowed to edit posts. (user level < 1)', 'PhotoZip'));
}
I have no possibility to test that changed lines with Wordpress MU and I had have not such a problem on my test systems.
That is why I would like to please you to try this new lines. If your test is successfully I will put this lines into the nextz version.
If it don't work then I would be appreciate if you could try this:
require_once( dirname(dirname(dirname(dirname( __FILE__ )))) . "/wp-config.php");
if (is_user_logged_in() === false) {
die (__('It seems that you are not logged in. Delete the cookies in your browser, log in and try it again.', 'PhotoZip'));
}
The line which starts with "require_once( dirname ..." is really important in every case. The If-condition controls that the users are logged in and have a user level that is higher than 1.
If you remove this if-condition PhotoZip will work as well as with these lines but for every one (unregistered persons, too).
You can get more information about WP user level and roles here: http://codex.wordpress.org/Roles_and_Capabilities
I hope that this is helpfully!
von / written by Tim B. - 8.06.2007 - 20:10:13
nr. 21 -- Betreff / subject: PhotoZip and WP MU
I have found out a way to install WP MU (1.2.2) on my test system and now i would say that PhotoZip v0.4.9 works with WP MU.
I could discover only two little issues: the WYSIWYG editor don't switch back automatically from "code"- to "visual"-view after closing the PhotoZip popup window and the not-changeable part of the main upload folder name (in the first screen of the PZ popup window) seems to be different in every sub blog. But on the server the main upload folder is every time the same and the pictures which was uploaded with PhotoZip are usable for every user.
von / written by Tim B. - 25.06.2007 - 01:38:48
nr. 22 -- Betreff / subject: doesn't create thumbnail
i recently moved to a dedicated server but your plugin is the only one not working. It does upload the zip but it doesnt create thumbnails. it just says: Please be patient while the server creates proccess file. 1 / 1 photos
This happens no matter how many photos i upload with different size. I used the config check and here's the output:
* maximum CPU time (in seconds) : unlimited
* maximum file size (in 512-byte blocks) : unlimited
* maximum size of data segment or heap (in kbytes) : unlimited
PHP Limits
* max_input_time (in sec.) : 60
After this time the uploads will interrupted. -1 means no limit.
* max_execution_time : 30
After this time a running PHP script will interrupted. If maximum CPU time smaller then this value is not important.
* memory_limit : 32M
The max. memory on the server for all of your PHP scripts. (The write a post page of WordPress 2.2.1 needs around 8884.44 KB.)
* file_uploads : 1
file_uploads == 1 means uploads allowed.
* upload_max_filesize : 2M
The maximum size of an uploaded file.
* post_max_size : 8M
This is the limit of the file size of your upload file (which will be uploaded via POST method).
* The function memory_get_usage exists. (That is very good.)
PhotoZip needs these PHP extensions to process the photos:
* GD library: bundled (2.0.28 compatible) is installed on the server
* EXIF library: is installed on the server (It is possible to search embedded thumbnails.)
Please help
von / written by ricardo - 20.07.2007 - 02:00:11
nr. 23 -- Betreff / subject: RE: doesn't create thumbnail
Hi Ricardo,
a upload_max_filesize of 2MB is very small. If you are allowed to change that value then increase it. In my opinion upload_max_filesize should be not smaller than post_max_size.
This small upload_max_filesize can be the reason of the problem. But to clear the problem i need some more information:
- What types of image files have you tried to upload?
- Are you sure that the upload works? (Are the pictures in the whiched folder? Exist in this folder sub folders with names like this: .thumb1/ ?)
- Is in the freezed popup window nothing more like "Please be patient while the server creates proccess file. 1 / 1 photos
"? (no file name?) (Is there every time the message: "... 1/1 photos" independently of the number of pictures in the archive file?)
Further delete the @ - signs in lines 303-315 of manager_mce.php (function photozip_resize) and try upload one of your archive files again. (Maybe this @ signs catch some error messages which are helpful.)
Please try this and post the correct and complete error message here (or tell if there will not appear an error message).
von / written by Tim B. - 20.07.2007 - 12:29:03
nr. 24 -- Betreff / subject: still no go
1. Upload works cause im able to see the pictures
2. The tumbnail creation is not working.
Followed your instruction and made the change to php.ini and restarted Apache. Running the congis check i was able to see the change.
removed @ from the lines u mentioned.
I tried it again and is still dont work.
Please be patient while the server creates proccess file. 1 / 1 photos"?. It does show differents numbers depending how many pictures i upload.
I see the hourglass but it doesnt create the thumbnail even if i click on : Click here to continue to create thumbnails
von / written by Ricardo - 20.07.2007 - 17:24:35
nr. 25 -- Betreff / subject: side note
on a site note. I'm able to use another plugin which let's me upload/create thumbnails and it works fine. I like your better because it let me upload zip files which really helps out. i wish to get it fix
von / written by ricardo - 20.07.2007 - 17:31:34
nr. 26 -- Betreff / subject: Re: still no go
Hi Ricardo,
i don't know the number of files in your archive file still not yet. But will try to make the right suggestions:
The sentence "Please be patient while the server processes 1/1 photos." means that there is only one picture file. So if you have tried to upload more than one picture in the archive file the problem is seems to be somewhere the function which gets the file names from the folder. Because of that it is important for me to know how much pictures were in your file!
If there was only one file in the archive file and the on the screen between "Please be patient while the server processes 1/1 photos." and "Click here to continue to create thumbnails" was nothing like "Working on photo #1..." something went in the function which gets the file names from the folder, too or this action needed to much time (more than 30sec of your max_execution_time). But this time this timeout would be really unusual. So please try to write here the complete and correct screen messages of the screen which freezes everytime!
Further please write me how much files are in your test archive file. And please write me which file types these files are (e.g. .gif, .jpg).
Further tell me how big these files are (in kBytes), please.
(You can also send me your archive file, so i can try to reproduce this bug.)
You have written: "1. Upload works cause im able to see the pictures" Where can you see the pictures? Via your FTP client? In the preview on the first screen of the PhotoZip popup window? (I guess that you can't see thumbnails there.?)
von / written by Tim B. - 20.07.2007 - 19:56:04
nr. 27 -- Betreff / subject: still not working
Let me clarify.
"Please be patient while the server processes 1/1 photos." this message came up cause i only uploaded 1 pic. when i uploded 3 then it was "Please be patient while the server processes 3/3 photos." The screen never freeze it just goes on a loop saying the same thing and the hourglass
i'm able to see the pictures from the PhotoZip popup window but not thumbnails.
i included screenshots
1. http://tinyurl.com/2conr2 - Trying to create thumbnails
2. http://tinyurl.com/yobw5h - no thumbnails
von / written by ricardo - 20.07.2007 - 22:44:19
nr. 28 -- Betreff / subject: still trying
the problem im having is creating the thumbnail. I just ulploaded some pics and selected no thumbnails and it did upload them. But still cant create thumbnails.
von / written by ricardo - 20.07.2007 - 23:33:45
nr. 29 -- Betreff / subject: Re: still not working
Your clarification was helpfully for and I think that i could locate the problem.
It needs some seconds to create a thumbnail of a picture on the server and in the same moment the execution time for PHP scripts is limited by max_execution_time in the php.ini. The time limit I know is the maximum CPU time on LINUX/UNIX systems.
With PZ you can (usually) upload a lot of pictures in one archive and produce thumbnails of all this pictures. So sometimes it could happen that one of the time limits is reached. If this happens the script prints to the screen "Click here to continue to create thumbnails" and scripts will be started via the HTML -tag meta-refresh in the next second and goes on at the place when stops.
to your problem: It seems that the script needs more than 28 (you have written that your max_execution_time is 30 sec. and the script is uses a small tolerance of setting (1.5 sec)) seconds to start the creation of the first thumbnail. To inspect this: please install this modified manager_mce.php file: http://home.snafu.de/tj.berger/downloads/manager_mce.zip
I have inserted into this file some commands which put out the time limit which this script have choosen, the start time and the time right before the know loop starts.
Further i have inserted a little control condition that stops the loop if no thumbnail was created - like in your case.
It would be nice if you can make an other screenshot while a test with this manager_mce.php.
With this manager_mce.php the output should look like in this way http://home.snafu.de/tj.berger/bilder/photozip/screen2.jpg (on your sreen probably only the first 10 lines)
This will confirm my suggestion and maybe show if there is a problem with max. execution time which the function uses. Or with other words: if max_execution_time or the max CPU time (if there is such a limit) from the config check page is not equal to the max_execution_time_pz then i can say more exactly where the bug is.
So please, try this mangaer_mce.php and make a screenshot of the output.
Thank you!
von / written by Tim B. - 21.07.2007 - 01:41:50
nr. 30 -- Betreff / subject: Re: still trying
>the problem im having is creating the thumbnail. I just ulploaded >some pics and selected no thumbnails and it did upload them. >But still cant create thumbnails.
Yes, an upload without creating thumbnails doesn't touch the critical function. (Further it should be possible to insert the picture s without linked thumbnails into post without problems.)
But please try at next the new manager_mce.php and tell or show me what you see.
von / written by Tim B. - 21.07.2007 - 01:49:01
nr. 31 -- Betreff / subject: still trying
this is the output i get
Please be patient while the server processes 3 / 3 photos.
$mydir: /var/www/vhosts/mywebsite.com/httpdocs/wp-content/uploads/photozip/test3
$photozip_dir: test3
$imgnbr: 0
$numberofimages: 3
max_execution_time_pz: 0 in sec.
the script startet at: 22:07:05
the time now is: 22:07:05
time gone since script start: 0
Time is over before the thumbnail can be processed. Try to increase max_execution_time or try to upload smaller pictures.
von / written by ricardo - 21.07.2007 - 05:44:35
nr. 32 -- Betreff / subject: manager_mce.php v0.6.1 RC 1
Hi Ricardo,
i have found out a bug which don't occurs an error an on my test systems but probably on all systems where ulimit -t returns a value that is not a number.
I have patched this issue. Please, try this manager_mce.php: http://home.snafu.de/tj.berger/downloads/manager_mce_v061rc1.zip
If this works for you, i will put out a new version of PhotoZip for all.
von / written by Tim B. - 21.07.2007 - 12:42:36
nr. 33 -- Betreff / subject: Yesssssssssssssssss
Success. It works after uploading that file.
THANK YOU SO MUCH. You are the best
von / written by ricardo - 21.07.2007 - 22:32:02
nr. 34 -- Betreff / subject: Re: Yesssssssssssssssss
Thank you for the bug report and your help to find the bug!
von / written by Tim B. - 21.07.2007 - 23:06:27
nr. 35 -- Betreff / subject: Upload des Plugins
Hallo Tim,
bei der Installation des Plugins konnte ich erstmals den TinyMCE nicht dazu bringen mir den button anzuzeigen. Wenn ich ihn ausgestellt habe, konnte ich das Plugin aufrufen. Dann habe ich gesehen dass bei deinen Deinstallation-Instruktionen steht dass ein Ordner "Photozip" aus /wp-includes/js/tinymce/plugins/photozip/ entfernt werden muss. Also hab ich den Ordner "photozip_tinymce_button" in den entsprechenden Ordern kopiert und umbenannt und nun läufts. Ist da bei mir was bei der Installation schiefgelaufen oder könnte es sein, dass die Installations-Instruktionen nicht ganz korrrekt sind?
Auf alle Fälle grosses Lob für deine Weiterarbeit an Photozip!
Lieber Gruss,
Benji
von / written by Benjamin Wiederkehr - 14.09.2007 - 08:50:39
nr. 36 -- Betreff / subject: Upload des Plugins
Lieber Benjamin,
da in deinen Blog-Dateien das Verzeichnis /wp-includes/js/tinymce/plugins/photozip/ existiert, vermute ich mal, dass du von einer v.4.x umgestiegen bist.
Seit PhotoZip 0.4.9 habe ich die Dateistruktur etwas verändert, so dass alle Dateien von PhotoZip nur noch in einem Verzeichnis liegen (wp-content/plugins/photozip/...) und nicht mehr wie in den Versionen v0.4.1-v0.4.8 in verschiedenen Verzeichnissen.
Wenn man nun auf die aktuelle Version 0.6.2 umsteigt, sollte man das Verzeichnis /wp-includes/js/tinymce/plugins/photozip löschen, die alten Datei in /wp-content/plugins/photozip löschen und die neuen Dateien, wie oben beschrieben, installieren. Die Dateien aus /wp-includes/js/tinymce/plugins/photozip liegen in der aktuellen Version in einem Unterverzeichnis von /wp-content/plugins/photozip und sollten auch dort bleiben.
Wenn PhotoZip neuinstalliert wird und der Browsercachespeichersehr oft geleert wird, dann muss man u.U. auf der Seite "neuen Beitrag (schreiben)" auf "Neu laden" bzw. "Aktualisieren" klicken.
Wenn ich dir nicht richtig weiterhelfen konnte, möchte ich dich bitten, den Ablauf deiner Installation und alles was dann folgte etwas genauer zu beschreiben (Neuinstallation (welcher Version)? Umstieg von welcher Version auf welche Version? Welche Dateien/Ordner von welchem Ort, wohin kopiert?)
von / written by Tim B. - 14.09.2007 - 13:08:19
nr. 37 -- Betreff / subject: Image Sorting
I name my images like this
Something-01.jpg
Something-02.jpg
…
Something-35.jpg
But when they are uploaded, the images are not sorted any more in that order. Please help me out how to fix that so I can preserve the order of images after upload.
Regards,
Tony
von / written by TonySoprano - 24.09.2007 - 11:32:30
nr. 38 -- Betreff / subject: Image Sorting - solved
In order too keep your files sorted modify following files:
manager_mce.php - on line 435 add following line:
sort($images);
right before line: return $images;
Also edit file photozip_folder_details_ajax.php add line 76
sort($files);
right before line: return $files;
This will get your thumbs sorted in the alphabetical order.
Regards,
Tony
von / written by TonySoprano - 24.09.2007 - 12:02:33
nr. 39 -- Betreff / subject: Re: Image Sorting - solved
Thank you Tony for that hint!
I will put this functionality into the next version and with your hints, I think that i will publish this next version until tomorrow.
von / written by Tim B. - 24.09.2007 - 12:20:57
nr. 40 -- Betreff / subject: Folder Permissions?
Hello. I get this error: Could not create a photo directory. Make sure your script have permissions.
Where shoud the "$photozip_photofolder" folder go in the directory, & what should it be named? I must be missing something, or just a bonehead. I see no plug-in options under "options" on my Admin panel. I've been searching the php files with no luck. HELP!
thanks!
-jim
von / written by Jim - 30.09.2007 - 01:06:57
nr. 41 -- Betreff / subject: Open in attachment.php or page?
Okay. I'm a bonehead. made the folders uploads & photozip. Works fine.
Is there an option to make the thumbs link to an attachment.php or page.php?
von / written by Jim - 30.09.2007 - 06:59:26
nr. 42 -- Betreff / subject: Re: Open in attachment.php or page?
I'm sorry that you have had such problems with this directory issue. I should expand the installation instructions with this point.
There is no option build in and it is not planned to build in an option to change the link target of the thumbnails.
But you can change the Javascript functions which make the HTML code for the post. These functions (4) are called codeerzeugen() and placed in the file manager_mce.php. Two of them produce the code for thumbnails with a link and two of them produce the code for embedding the original sized pictures. Have a look to the lines 1114 and 1299 if you want to change the scheme for the links of the thumbnails and to the lines 887 and 968 if you want to change the scheme of the code which place the original sized picture in the posts.
I hope this makes it a little bit easier for you. Maybe i can help you more if you would explain me why you want to change the links of the thumbnails.
Regards, Tim B.
von / written by Tim B. - 30.09.2007 - 22:56:42
nr. 43 -- Betreff / subject: [re:] Open in attachment.php or page?
Hey Tim.
I have a blog that has a lot of pictures, and I make money off the google ads. Obviously, the more google ads displayed, the more money. Therefore, I would want the thumbs liked to an "attachment.php" page rather than a lightbox effect or straight to the jpg.
von / written by Jim - 1.10.2007 - 02:11:29
nr. 44 -- Betreff / subject: Re: [re:] Open in attachment.php or page?
Hey Jim,
i understand a little bit better, now. But i think there is an other question: Has got this attachment.php file a static address? (everytime the same name?) If this is the case, you can change the lines 1114 and 1299 in the manager_mce.php file in this way:
mid_thumbs_html += '<a ' + gale + ' href="http://www.domainxyz.com/attachment.php" title="' + lightboxpictitle + '"><img src="'+photozip_base+'.thumbs2/'+photozip_images[i]+'" alt="' + lightboxpictitle + '" /></a>'+ linebreak;
(Please, use this code example without the \ signs.)
If you use this code then all thumbnail links leading everytime to http://www.domainxyz.com/attachment.php .
Another possibility is to change these lines like this:
mid_thumbs_html += '<a ' + gale + ' href="http://www.domainxyz.com/attachment.php?picaddress='+photozip_base+photozip_images[i]+ '" title="' + lightboxpictitle + '"><img src="'+photozip_base+'.thumbs2/'+photozip_images[i]+'" alt="' + lightboxpictitle + '" /></a>'+ linebreak;
In this example the thumbnail link leads everytime to the same attachment.php, too. But a PHP script in the attachment.php file could recieve the file name of the original sized picture of each thumbnail from the thumbnail link via the $_GET variable and use it in your context (maybe to open a popup window or something like that).
Instead of a link to a PHP script, it is possible to call a javascript function to process the picture file addresses, too. Such javascript function should be placed somewhere in the header of your weblog.
Example:
mid_thumbs_html += '<a ' + gale + ' href="javascript:process_link_function_name(\''+photozip_base+photozip_images[i]+ '\');" title="' + lightboxpictitle + '"><img src="'+photozip_base+'.thumbs2/'+photozip_images[i]+'" alt="' + lightboxpictitle + '" /></a>'+ linebreak;
photozip_base+photozip_images[i] contains everytime the complete address of a original sized image like: http://www.domainxyz.com/uploads/photozip/photosetname/example.jpg
I hope that brings you a step forward. Regards, Tim
von / written by Tim B. - 1.10.2007 - 14:36:44
nr. 45 -- Betreff / subject: Backup of Site
Hello,
Love the plugin but I can't figure out how to backup my site. I wont download the thumbnails that are saved under some kind of ./tumb structure.
Do you know what I should use to be able to do this ?
Thx,
Vincent
von / written by Vincent Vanderveken - 8.01.2008 - 13:02:07
nr. 46 -- Betreff / subject: Re: Backup of Site
Hello Vincent,
the default upload folder of photozip is http://www.yourblogname.net/wp-content/uploads/photozip/ .
You can change that default or main upload folder (as you can see in the screenshot of window 1). But the folder will be every time inside the /wp-content/ folder of your weblog.
Photozip creates for every uploaded archive file a sub folder incide this main upload folder with the name of the archive file or an other free chooseable name. These sub folders are listed in window 1 of Photozip beneath the main upload folder. (They are called maybe like these: http://127.0.0.1/wp22de/wp-content/uploads/photozip/atest/ or http://127.0.0.1/wp22de/wp-content/uploads/photozip/sonnenuntergang/ .
Each of these sub folders of the main upload folder contains 3 sub folders called .thumbs1/, .thumbs2/ and .thumbs3/.
.htumbs1 contains the thumbnails for the preview in the Photozip windows. These thumbnails are not bigger than 150x150px
.thumbs2 contains the thumbnails for the posts. The size of these thumbnails is the thumbnail size which you have choosen.
.thumbs3 is only temporarily in use by Photozip.
So, if you want to backup the thumbnails then save the folders .thumbs1 and .thumbs2, too (or simply the main upload folder with all sub folders).
If you upload pictures or other files with the upload function of the original WP editor then the files are stored in /wp-content/uploads and sub folders which called by the actual year and month.
I use a unpublished WP plugin of mine to make backups of the files of my other (WordPress) weblog. With this plugin i can backup all files (or only some of them) to another server manually or scheduled (comparable to the FTP Plugin for WP Database Backup Plugin).
But sometimes i use a simple FTP program like the freeware version of FTP Commander or the FireFTP Addon for Mozilla Firefox.
I hope that have understood you in the right way and this is a little bit helpful for you.
von / written by Tim B. - 8.01.2008 - 20:15:03
nr. 47 -- Betreff / subject: Plugin Error
Hi
Thanks for the cool plugin. I haven't used it for some time but I'm now designing a couple of sites that it would be perfect on.
I have uploaded the files and activated the plugin. I have then gone on the post page and clicked on the photozip button. I've told it everything it needs and where the zip file is located.
When I think its just about to upload the images I get the following error.
Working on photo #1: image.jpg ...
Trying to find an embedded thumbnail.
Not enough memory to process this foto!
image.jpg was deleted on the server!
done
I only had 12 images in the zip file and it did this for every single one !
Do you know what this could be ?
Thanks
von / written by Neil T - 17.11.2008 - 23:49:51
nr. 48 -- Betreff / subject: Re: Plugin Error
Hello Neil,
the PhotoZip Plugin tests the PHP limits upload_max_filesize and memory_limit, takes the lowest value of them compares it with the momentarily used memory (if available memory_get_usage or the default value 10MB ) plus the size of the unpacked size of an image (JPEG pictures are often compressed. But the methods in Photozip require to uncompress the picture to create thumbnails.).
Is the needed amount memory bigger than the available memory then that the image is to big to process (to big to create an thumbnail). In these cases the image files become deleted on the server by the plugin.
Please, have a look to the plugin description at the plugins page of your blog. There is a link ("check server config infos") to a special page of Photozip with a list of all the limits of your blogs server which are critical to Photozip.
If upload_max_filesize is smaller than 10 or 12 MB then you can try to change the line 255 in the file manager_mce.php from $limit = min($upload_max_filesize, $memory_limit); to $limit = $memory_limit;
I recommend this for all blogs where the upload_max_filesize is smaller than 10 or 12 MB and i'm going to take care of that in the next version of Photozip.
(Or if your are allowed to, try to increase the upload_max_filesize.)
Further you can simply try to upload pictures with a lower resolution or try to upload without making thumbnails (you can adjust that via the max. thumbnail size).
Is it possible (to upload and) to create a thumbnail of one of your 12 pictures with the default picture upload functionality of WP?
von / written by Tim B. - 24.11.2008 - 19:14:08
nr. 49 -- Betreff / subject: Error while uploading archive
Hi,
I really loved your plugin and it's very useful.
But I'm getting error while uploading zip archive.
"Unable to run unzip. Probably unzip is not installed on your server or it is impossible to locate (e.g. if you run wordpress on a local test server on a MS Windows system)."
I've set all attributes for the upload folder to 777.
I'm using WP 2.9.2. My site URL is http://smilepanic.com
Waiting for your response.
Regards
von / written by Jeremy O'Sallivan - 17.05.2010 - 18:56:59
nr. 50 -- Betreff / subject: Re: Error while uploading archive
Hi Jeremy,
That error message says that is most likely not possible to execute unzip on the server of your blog and furthermore that it means that the zip libraries of PHP (http://www.php.net/manual/en/ref.zip.php) are not available on this server. In conclusion: it not possible for photozip to unpack the .zip-file on your server.
I'm relatively sure that WP 2.9.2 has nothing to with that. It is more likely that something on the server of your blog has changed. Because PhotoZip works on my test systems with WP 2.9.2 very good. But PhotoZip tries to unzip the .zip files via commandline execution (http://www.php.net/manual/en/function.exec.php) of the program unzip which is usually installed on Linux systems (and in case that fails it tries to use the zip-libraries of PHP). I can imagine that using this commandline execution is not always permitted.
Eventually it is still possible to upload .tar.gz or tar.bz2 files with PhotoZip to your blog. PhotoZip 0.7.1 can handle these files, too.
During the tests with WP 2.9.2 I have discovered some other problems which are fixed in PhotoZip 0.7.2 beta 1. You can maybe try this version but the error message you got will probably appear again. Since this message says that your problem probably is related to the server configuration and no bug of the plugin. 0.7.2 beta 1 contains an additional test on the server configuration check page. You can reach this page through a link in the plugins description on the plugins page of your blog. Beneath the sub header "Unzip Test" should be a list of parameters of the unzip program which is on your server. But if there is a warning or error message or nothing after "Unzip --help" exec() output:" then unzip is not available on your server.
von / written by Tim B. - 18.05.2010 - 00:26:48
nr. 51 -- Betreff / subject: Thanks
Thanks for your quick reply!
von / written by Jeremy O'Sallivan - 18.05.2010 - 08:10:42
nr. 52 -- Betreff / subject: v0.7.2 beta 1
Yesterday, I uploaded v0.7.2 beta 1. But I have made a mistake with the link which should have pointed to the file.
That is now fixed and you should be able to download the file.
von / written by Tim B. - 18.05.2010 - 10:22:54
nr. 53
Hi! Since we have updated to Wordpress 3.0, there is no more photozip-icon in the edit box :( How can we fix that?
You're not quite right about the media uploader - its still very usefull plugin! Yes, you can upload several images with media uploader, but its freaking difficult to insert the links for the uploaded images - you have to go back to the gallery and search for the file for each link again and again. So please (!!!) continue supporting this plugin!
Thank you
von / written by Roman - 21.06.2010 - 17:02:12
nr. 54 -- Betreff / subject: PhotoZip and WP 3.0
Hi Roman,
in the photozip.php file was an odd WP version check. I have fixed that and plugin seems to work with WP 3.0 too now.
But I have no time to make further tests at the moment.
As I have written if you have further questions or can point to specific problem which can be fixed quickly like this last one then I will try to help. But I do not continue the development of the plugin.
Regards,
Tim
von / written by Tim B. - 21.06.2010 - 18:53:41
nr. 55
Since the Dolce Gabbana ( Dolceamp; Gabbana ) 2011 spring and summer lace skirt swept many first-line fashion magazine cover, the brand's 2011 winter star pattern beautiful skirt may not be a sign of weakness, are nevertheless playboy " cosset" -- on " Marie Claire " British version of this year's September issue of InStyle magazine, " " American version in 2011 September, <a href="http://www.cheaphandbagshop.org"><em><b>replica bag</em></b></a> Journal with the Japanese form of this year's September issue, " Elle " the British form <a href="http://www.cheaphandbagshop.org"><em><b>replica bag cheap</em></b></a> of this year's August issue have appeared, red isn't going to let into this season 's hot skirt.
von / written by http://www.cheaphandbagshop.org - 24.01.2013 - 08:40:09