Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Plugin • Lightbox Gallery 'MyGallery'
Goto page Previous  1, 2, 3, 4, 5 ... 11, 12, 13  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Plugin • Lightbox Gallery 'MyGallery'
Author Message
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Reply with quote
riri wrote:
Thank you very much, when I transfer an image transfer that is ok !!!
But when I want a zip file transfer this mesage error

>> Wrong file format! Please select a. Zip or. Jpg file!

Why?

Thanks in advance

can you post the .zip file you are trying to upload? Like I said, I could upload my own .zip file just fine on your server.
Tue Apr 01, 2008 12:25 am View user's profile Send private message
Guest








Please login to hide the ads.

riri



Joined: 21 Aug 2007
Posts: 26

Post Reply with quote
No, I do not know ... send,>> Wrong file format! Please select a. Zip or. Jpg file!

Yet another host it works
Tue Apr 01, 2008 12:29 am View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Reply with quote
The only thing else I can think of is a similar problem that marcusmagalhaes ran into. He hadn't initialized .zip as application/zip in his cpanel MIME types.
Tue Apr 01, 2008 1:08 am View user's profile Send private message
riri



Joined: 21 Aug 2007
Posts: 26

Post Reply with quote
I have not understood, I must activate an option from the server? For the zip? If so what file?

Thanks
Tue Apr 01, 2008 8:27 am View user's profile Send private message
droopy



Joined: 31 Mar 2008
Posts: 12

Post Is it right ?? Reply with quote
D72 wrote:
droopy wrote:
Superdok wrote:
But if i click on "Mygallery Manager" theres only "MyGallery Manager" at the top, but nothing more: So i cant add/delete a Gallery. Whats wrong?

EDIT: I think i know whats wrong. The .htaccess file should be the reason for it, because with other .htaccess files of Cutenews there was the same failure. I try to remove it and report.


Hello !
I have the same problem exactly as Superdok !! I removed the .htaccess file, but nothing changes
Thank you for your assistance

I am French and does not speak very well English Embarassed


In the plugins/mygallery/ shouldnt be a .htaccess at all. If there is one, delete it. Also try to clear your cache from the CNR menu on top.
If this is not working maybe i should have a look at your site.
Let me know how things going.

* i don't speak French at all, so i rather stick to English Wink


Hello !!

I think of having found the problem (but not the solution):

In “mygallery-manager.php” :

Code:

$mygallery = file_get_contents("http://".$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF'])."/plugins/".$mgfoldername."gallery.inc.php".$append);


So that the function file_get_contents () functions, it is necessary that the option Allow URL Fopen is activated in the php.ini !!
And when I look at my phpinfo, Allow URL Fopen is off Crying or Very sad .

Is it possible to replace this function, and how?

Thank you for your help

I am French and does not speak very well English Embarassed
Tue Apr 01, 2008 1:23 pm View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Re: Is it right ?? Reply with quote
droopy wrote:
Hello !!

I think of having found the problem (but not the solution):

In “mygallery-manager.php” :

Code:

$mygallery = file_get_contents("http://".$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF'])."/plugins/".$mgfoldername."gallery.inc.php".$append);


So that the function file_get_contents () functions, it is necessary that the option Allow URL Fopen is activated in the php.ini !!
And when I look at my phpinfo, Allow URL Fopen is off Crying or Very sad .

Is it possible to replace this function, and how?

Thank you for your help
Nice catch, droopy! I was wondering if this might come up. I kinda took the easy way out on this one until I was able to get the next version of MyGallery out which would be a whole lot easier to work around this (by re-working structure of MyGallery so some functions are readily available to other scripts besides the gallery script). I'll go ahead and create a re-work of the plugin for now to keep you up and running.
Tue Apr 01, 2008 4:35 pm View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 551
Location: Hoogeveen, NL

Post Reply with quote
Just use the CURL function instead of the fopen function Smile

_________________
Tue Apr 01, 2008 4:43 pm View user's profile Send private message Visit poster's website
riri



Joined: 21 Aug 2007
Posts: 26

Post Reply with quote
You will work on an updated plug?
Otherwise if I work by the original script .zip works, but there is no 777 creates the file, and therefore I see no decals transfer it on the server…
Can you tell me what you modify yesterday on the roster
>>

sidtheduck wrote:
riri,

Thanks for the PM. I took a look and for whatever reason your server was not changing the permissions of newly created folders using mkdir("new folder", 0777); I added a chmod command after the mkdir command and it works now! I really have no idea why it wasn't throwing an error if it couldn't make the new folder with the correct permissions like it's supposed to (unless you are hosted on a Windows box . . . are you?). Anyway, sorry it didn't work straight away, but now it should work for you! I went ahead and changed the permissions on all your existing folders so they should show up now too!


Thanks in advance
Tue Apr 01, 2008 4:56 pm View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Reply with quote
Here's the updated 'mygallery-manager.php' file. I ended up just putting the $_GET variables in the URL of CNR itself. The only problem is that it shows your MyGallery admin username and password in the URL at first, but that will only be for people who are already logged into CNR admin, so I think it's fine (for now). Didn't have to use file_get_contents nor any of the cURL options. Let me know if you run into any problems!

riri wrote:
You will work on an updated plug?
Otherwise if I work by the original script .zip works, but there is no 777 creates the file, and therefore I see no decals transfer it on the server…
Can you tell me what you modify yesterday on the roster
>>
riri, I'm not changing the whole script, just the 'mygallery-manager.php' file so you should be fine with your current installation (and I've fixed it for future releases of MyGallery).



cutenewsRU mygallery-manager - update.zip
 Description:
Updated 'mygallery-manager.php' file

Download
 Filename:  cutenewsRU mygallery-manager - update.zip
 Filesize:  788 Bytes
 Downloaded:  48 Time(s)

Tue Apr 01, 2008 6:12 pm View user's profile Send private message
riri



Joined: 21 Aug 2007
Posts: 26

Post Reply with quote
Ok I will wait for the future Updates plug
Thanks
Tue Apr 01, 2008 6:37 pm View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Reply with quote
riri wrote:
Ok I will wait for the future Updates plug
Thanks
Oh sorry, I didn't read your full post. Are you saying that .zip files work, but that the files are not showing up? Is this the same server or a different one? If a different one, just copy the gallery.inc.php file I edited yesterday.

Sorry I didn't read. Neutral
Tue Apr 01, 2008 7:01 pm View user's profile Send private message
riri



Joined: 21 Aug 2007
Posts: 26

Post Reply with quote
Yes the. Zip file is transferred, but there is not chmod 777 on small images ... I use on the same server, the original script that comes from planetluc

>> Plugins, image. Jpg ok but No zip
>> Planetluc script, image. Jpg ok. Zip ok but not ok small image

While on the same server

Smile I am sorry french therefore my English:)
Tue Apr 01, 2008 9:10 pm View user's profile Send private message
droopy



Joined: 31 Mar 2008
Posts: 12

Post Reply with quote
sidtheduck wrote:
Here's the updated 'mygallery-manager.php' file. I ended up just putting the $_GET variables in the URL of CNR itself. The only problem is that it shows your MyGallery admin username and password in the URL at first, but that will only be for people who are already logged into CNR admin, so I think it's fine (for now). Didn't have to use file_get_contents nor any of the cURL options. Let me know if you run into any problems!


Thank you very much!

But there is a big problem of posting with updated “mygallery-manager.php”.

I you contact by mp so that you can see
Wed Apr 02, 2008 4:26 am View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Reply with quote
riri wrote:
Yes the. Zip file is transferred, but there is not chmod 777 on small images ... I use on the same server, the original script that comes from planetluc

>> Plugins, image. Jpg ok but No zip
>> Planetluc script, image. Jpg ok. Zip ok but not ok small image

While on the same server

Smile I am sorry french therefore my English:)
riri,

It turns out that the problem was the MIME types for your server were outputting 'application/x-zip-compressed' instead of 'application/zip' so I added a check for this in the MyGallery script and everything works now! I updated both the cutenews MyGallery and the toff MyGallery with my most up-to-date stable version of MyGallery as well (including the chmod after folder creation and verifying the other MIME type for .zip files). Everything should work for you now. If you need to install MyGallery on another server or in a different location, download either of the two MyGallery installations on your current host and use that.
Wed Apr 02, 2008 4:46 am View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Reply with quote
droopy wrote:
Thank you very much!

But there is a big problem of posting with updated “mygallery-manager.php”.

I you contact by pm so that you can see
Thanks for the PM, droopy! I really don't know what's going on, but here, I've attached my newest stable MyGallery along with the newest mygallery-plugin.php file to this post. Try it out and see if it works any better than the last one. Hopefully when D72 comes around again, he can replace the main post download. It *should* work straight out of the box.


Please let me know if you run into any more problems as I have tried to make it as stable as possible, but I can't test on every server environment. This release of MyGallery is not yet on the planetluc boards as I still have some additional tweaks to add before releasing (mostly bug catches).

Exclamation Just remember that if you are upgrading from a previous version, do not save over your old "galleries.dat" file (unless you want to remove all of your galleries previously created) or really your "/mygallery/images/" folder (you may have to reset the permissions if uploading a new images folder). Exclamation



mygallery plugin - full update.zip
 Description:

Download
 Filename:  mygallery plugin - full update.zip
 Filesize:  128.89 KB
 Downloaded:  76 Time(s)



Last edited by sidtheduck on Wed Apr 02, 2008 6:16 pm; edited 3 times in total
Wed Apr 02, 2008 5:13 am View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5 ... 11, 12, 13  Next
Page 4 of 13

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.