Recent Topics

1 May 16, 2006 22:40    

Welcome

The Gallery Plugin was one of the first b2evolution plugins. It allows you to attach (and remove) galleries from your posts. Inside galleries are your images, which you upload (with titles and descriptions), and order within the Gallery Manager. When a user views your posts, they see the auto-generated thumbnails, and when clicked, the large image is loaded in a specially made lightbox. Enjoy.

http://balupton.com/packages/b2evolution/plugins/gallery_plugin/Gallery%20Plugin%20Preview.gif

Moved / Preview / Download / More Information: [url=http://www.balupton.com/blogs/b2evo?title=the_gallery_plugin]here[/url].

[u]This plugin does not support b2evo v2, only v1. At this time there are no plans to make a b2evo v2 compatible release.[/u]

2 May 16, 2006 22:44

I'll use the first post as one that i will always update to reflect the latest changes.

Now atm my server is struggling so you can get v0.9.0.0 from the attachment.

I really want to hear your feedback (good or bad) on this plugin.

And it is the first public plugin i have made for b2evo, so kudos to me.

And just a inside joke;
EdB now i can go back to my studying now that this is out of the way ;)

EDIT:
A few fixes will need to be applied with the v0.9.0.0 release;

* Line 91; _thumbnails.php; Make sure it reads;
if($GalleryMode == 'Simple') {

* Line 165; manager.php; Make sure it reads;
Gallery_DisplayThumbnail('-ID-','-TITLE-','-DESCRIPTION-',$GalleryLocation);

3 May 19, 2006 18:53

Going to get rid of the Expanded Mode in the gallery and only leave the Compact mode.

If anyone knows how i can get a title inside the compact mode keeping everything in the same layout please let me know.

4 May 20, 2006 07:12

This is very nice, Balupton! Great work. Congrats. ;)

5 May 22, 2006 20:26

v1.0.0.0 is out.

Best features would have to be the automatic image compressing and resizing.

But everything went through a total re-code and it has been made so other developers can easily work with it.

So have fun.

EDIT:
Just tested it in IE7 BEtA 2 and the manager absolutely screws up, will fix now. - Probably be the same for IE6. In the mean time use Firefox 1.5 :D

EDIT:
Problem is now fixed and the Gallery Plugin has reached v1.0.1.0

6 May 28, 2006 21:55

there is no question about this plug-in is the best i ever has seen :D

7 May 29, 2006 07:26

I'm really loving this feedback :D
And welcome to the forums loran and Brainwrek.

Are there any suggestions you want to make?

8 May 30, 2006 15:21

i got one... mabye to resize how big the images are ine the preview area.

9 May 30, 2006 16:07

loran wrote:

i got one... mabye to resize how big the images are ine the preview area.

will do.
I'm thinking wether or not to make another image for the preview...

10 May 30, 2006 22:55

i will look forward to that, and by the way is it realy cool that you can make a gallery for eatch post thats gives all a opatunaty to make more gallerys then one ;)

11 Jun 08, 2006 12:38

I've just upgraded to the latest 1.8 version so i could use this Gallery Plugin but i'm have issues with the plugin.

I went through the install as per the readme and it all worked ok until i go to add a gallery to a post. The page is displayed ok but throws an mysql error at the bottom:


Warning: mysql_query(): Access denied for user: 'nobody@localhost' (Using password: NO) in /public_html/blogs/plugins/gallery_plugin/_gallery.php on line 147

Warning: mysql_query(): A link to the server could not be established in /public_html/blogs/plugins/gallery_plugin/_gallery.php on line 147
Access denied for user: 'nobody@localhost' (Using password: NO)

I can't seem to find where its tripping itself up... any ideas?

The rest of the site is working fine.

12 Jun 08, 2006 12:40

I will take a look at it now.

13 Jun 08, 2006 12:45

If it's what i think it is, then try updating /gallery_plugin/resources/_dbopen.php with the attached one and let me know how it goes.
If it fixes your problem I will release an updated version of the plugin with the updated _dbopen.php file.

Edit [9/6/06]; Attachment Removed

14 Jun 08, 2006 12:54

wow... that was quick.

But i replaced the file with the new one you made but now the site hangs & nothing loads at all?

15 Jun 08, 2006 13:04

Ok i've attached the current build of the gallery plugin, and it works for me with the latest cvs build of b2evolution, so lets hope if this fixes it.

You will need to redo the CHMOD stuff for the directory probably, and have you made any modifications to b2evolution's core?

Edit [9/6/06]; Attachment relocated to first post as link to Post-July download.

16 Jun 08, 2006 13:12

No changes and it works great now :)

Thanks and great job on the plug in.

17 Jun 08, 2006 13:19

Thanks for using it :D

Can you post back once you successfully attach a gallery, and say wether or not displays correctly when viewing the blog? (Want to make sure v1.0.2.0 successfully updated)

18 Jun 23, 2006 09:02

The new release is out (v1.1.0.0), it's recomended that you update, as it contains several fixes, as well as a re-make of the javascript code so the manager and previews perform faster, and some small tweaks to the manager ;)

19 Jun 28, 2006 11:31

I just looked at porting the gallery plugin over to v0.9 of b2evolution, and there is no way it is happening.

If you are using v0.9 of b2evolution, I recomend giving the latest cvs build a try, it's stable, and offers so much more.

Cheers
-Balupton

20 Jun 30, 2006 14:25

Hi,
today I tried to install the gallery plugin. First I installed the 1.8 evo version (from your link) and put the gallery_plugin folder into the plug in folder of evo.

the Blog works fine, but there is no gallery button at post-form.
When I go into the adminmenu -> plugins-menu an error occurs:


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in /home/tuedl/public_html/b2evo/blogs/plugins/gallery_plugin/_gallery.php on line 342

Any Idea what I did wrong? I looked for this error in the Forum, but I didn't found much helpful..
Is it the right version of evo at your link? I did not get it from sourceforge because it was down for Maintance..
It is a complete new installation.. no update or something..

greetz
tuedl

21 Jun 30, 2006 20:10

Can you attach the line that it is complaining about.
It should be;

"UPDATE evo_plugin_gallery SET Image_Title='$Title', Image_Description='$Description', Image_Position='$Position' WHERE Image_ID='$Image_ID' ";

But there is no reason at all why that would return an error.

I'm quite stumped.

The error being returned is saying that the server has run out of allowed memory. Which in your case is 8MB, but that is the default size for most servers, even mine is running at that much.
So what the error is saying is that line 32 needed a extra somuch of memory and you are already over it.
My best guess is that there is a problem in the latest cvs build of b2evo where a lot more memory is assigned then needed, i'll try and re-make the error now.

And yes all the links in my first post are the correct links.

So can you attach what i requested above.
Cheers

22 Jul 01, 2006 13:09

Yes it look similar.


"UPDATE evo_plugin_gallery SET Image_Title='$Title', Image_Description='$Description', Image_Position='$Position' WHERE Image_ID='$Image_ID' ";

I edited my php.ini and changed the memory_limit value to 16M and in this way it works for me..
but it is very scary.. and i am not really happy with this solution because it looks like if there is something going wrong.. and my serverressources are not the greatest..

But what I saw looks very cool.. :-) A very good plugin!
I will try to reinstall all stuff now with 8M memory_limit .. perhaps there was something wrong in the last installation..

greetz
tuedl

23 Jul 01, 2006 13:44

All right.. deleted the evo-folder and reinstalled all with 8M memory_limit..
now it works everything..
Thank you for this plugin!

24 Jul 01, 2006 13:48

Glad everything is working now, i also added a warning in the first post of this topic about how cvs releases may be unstable on the rare occasion.
And seems to be this happened to you.

Anyways glad everything is working, and glad you like the plugin.

If you have any suggestions or feature requests be sure to post them.
(Check the first post though to make sure your not duplicating anything)

25 Jul 03, 2006 07:07

Hi im want to use this plugin, but I don't know how to install it. I downloaded the zipfile and unpacked de folder gallery_plugin to plugins. Need I to do something else, because I can't find the gallery button.

26 Jul 03, 2006 07:11

You need to go to Settings->Plugins, Click see all avaliable plugins, then click install on the Gallery Plugin.

27 jetbrains Jul 04, 2006 04:43

jetbrains

This is very nice, Great work.

28 Jul 04, 2006 23:30

I found my problem, i don't have te newest version of b2evo :oops: . Im now going to try the newest version(1.8)

29 Jul 05, 2006 07:46

jetbrains glad you like it. Any suggestions?

klaas, you can find instructions on how to download the cvs builds from here;
http://forums.b2evolution.net/viewtopic.php?p=31838#31838

v1.8 should be released publicly as a beta soon, a few weeks or so.
Although if you follow the instructions in the topic i posted above for getting the v-1-8 branch it should all be fine. Alternatively you could just download the latest cvs build (v1.9) from my signature.

Hope this helps.
-balupton

30 Jul 15, 2006 07:08

I just upgraded to 1.8 Summer Beta today, and remembered this plugin (I was quite envious when I was still on 0.9.2). Anyway, it installed flawlessly and the results are spectacular. I especially love the preview mode, and the automated image resizing is wonderful. I couldn't be happier with this.

31 Jul 15, 2006 08:45

Really glad you like it, And thanks for recommending it (yeh i read your blog) ;).

I've been real tight on time recently. And been coming accross quite complex decisions about how I should go about the design of future features for this plugin, as well the other plugins i'm working on.

Heres some concepts that i wouldn't mind getting some feedback on:
1. Should there be a Preview image as well as the current Thumbnail and Resized/Optimized image.
2. Should there be an option to 'keep original image', so the original image is kept.
3. Should Image Title's be required? - Anyone against this?
4. Should the images be uploaded to the database? Or to the file manager?

1, 2 and 4 are quite important things and i need some feedback.

There are problems adding more images into the database (thumbnail, preview, optimized, original), because that could be like 1-2 mb a row in the table, and is 'not' a good thing....

And having the images as files instead of items in a database provides problems with maintainability, etc, what if a file name changes.... How will the image information be stored....

So atm i'm going with;
A thumbnail will be created.
A preview will be created (at the specified preview size)
A optimized image will be created (with the specified data)
The original may also be uploaded.

But then then why bother having the optimized image if they are also attaching the original...

I'm hoping that optimized images would stay the 800x600 mark, original images can be whatever.

But then, there needs to be the option for the user;
View [ Optimized {in title: 800x600 - 200KB} | Original {in title: 1280x1024 - 800KB} ] Image.

Actually yeh that will work - well in the preview mode it will be easy to add. But how the hell will i display the option when Previews are Disabled?

Ideas, Feedback and Suggestions are needed.

32 Jul 15, 2006 20:38

I see that you are very busy, but I get the following warnings with your plugin:

Warning: fopen(/var/www/kyleblog/plugins/gallery_plugin/settings.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/kyleblog/plugins/gallery_plugin/_gallery.plugin.php on line 207

Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/kyleblog/plugins/gallery_plugin/_gallery.plugin.php on line 214

Warning: fclose(): supplied argument is not a valid stream resource in /var/www/kyleblog/plugins/gallery_plugin/_gallery.plugin.php on line 215

I haven't looked into it at all, just figured I would let you know.

33 Jul 15, 2006 20:41

You didn't read the readme did you:

INSTALLATION;

Part 0)
1. Make sure you have the version of b2evolution specified above.

Part 2)
On your uploaded server, make sure the /gallery_plugin/ folder has read/write privelleges.
If you do experience problems when adding a image, use FlashFXP as some ftp clients just don't work.

It's Part 2 that you need to perform.

34 Jul 16, 2006 02:10

Sorry about that, I was just trying it quickly. It might be better if it didn't just give the php errors, but instead possibly check the permissions before trying to execute that code. That way it would be more intelligent error handling. Thanks for your help.

35 Jul 16, 2006 06:47

Once quick thing to note, I noticed that there was a "Notice" in php when displaying the gallery if you have all errors shown in php. It said

Notice: Undefined index: HTTPS in /var/www/kyleblog/plugins/gallery_plugin/resources/_functions.php on line 7

I realize that you are busy, but I have a patch so that this Notice does not occur that is very quick and easy. On line 7 of _functions.php, change

if($_SERVER['HTTPS']=='on'){$url .= 's';}

to

if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on'){$url .= 's';}

and the warning is gone forever. I have made that change in my personal copy. I know I may be nit-picking, but I've been running with all errors so that I can see where these little bugs hide. Most of them are very easy to fix. Once again, great job on the plugin and keep up the good work!

36 Jul 16, 2006 07:24

Ok, this is the last thing, I know I'm being pretty annoying. I tried using single quotes in my titles and descriptions, like "She's funny" or "Don't do that," and they kept showing up as "She\'s funny" and "Don\'t do that." I fixed the problem by removing the addslashes for the $Title and $Description in the "AddImage" and "UpdateImage" methods. This seems to have fixed the problem I was having, but maybe you have some other insight to that decision?

37 Jul 16, 2006 07:58

Haha, really sorry. One more post. I have made it possible to delete all images from the gallery. You could only delete all but one image with the current version. I have attached a zip of my _gallery.php and _functions.php files for you to view my modifications. I recommend you run a diff or other compare to see what changes I made. There are very few changes, probably like 10-20 lines overall. Once again, I know you are busy, but I'm just trying to throw some stuff out there that might be useful for you.

One other thing to go on the todo list is either a gallery manager or some way of choosing to delete the gallery if the post is deleted. I noticed when I deleted one post with a gallery that all of the images continued to take up space. This isn't a big deal since I don't delete posts often, but I at least wanted an end-user way to do it. That's why I made it possible to delete all images from a gallery. If I go into the gallery and remove all of the images, then delete the post, the gallery is completely gone forever.

Anyway, thanks for listening, just throwing some stuff out there.

38 Jul 16, 2006 08:48

All the things u said have already been fixed or added in the latest dev version. The only thing i need right now is the feedback to the first post on this page.

39 Jul 16, 2006 09:19

balupton wrote:

Heres some concepts that i wouldn't mind getting some feedback on:
1. Should there be a Preview image as well as the current Thumbnail and Resized/Optimized image.
2. Should there be an option to 'keep original image', so the original image is kept.
3. Should Image Title's be required? - Anyone against this?
4. Should the images be uploaded to the database? Or to the file manager?

1, 2 and 4 are quite important things and i need some feedback.

There are problems adding more images into the database (thumbnail, preview, optimized, original), because that could be like 1-2 mb a row in the table, and is 'not' a good thing....

And having the images as files instead of items in a database provides problems with maintainability, etc, what if a file name changes.... How will the image information be stored....

#3 is easy, though I don't know your plugin because I don't have a camera and therefore don't really need a gallery plugin. Anyway always have a title tag even if it's just the name of the image.

#1: What would be the diff between a thumbnail and a preview? Would a preview be like a big thumbnail? Seems like maybe overkill, unless your thumbs are really small.

#2: Sometimes I see super cool pics on blogs but can't clip anything but the scaled down and optimized version, so having the ability to upload and link to full size originals is cool.

#4: If you think about the problem of renamed images as the owner's stupidity rearing it's ugly head then it's easily dismissed. STOP RENAMING FILES!!! Now it's much easier to store the images as images in a folder and only information about the image in a database.

Hope it helps a bit.

40 Jul 16, 2006 09:30

Thumbnails are about Xx48, Previews are around Xx250,

But yeh it all depends wether the user is prepared to give up memory (calculate everyting once) or proccessor power (calculate it every time, only keeping the originals).

Yes, keeping the original image is a top priority of mine, like i do not want to be downloading a wallpaper from a gallery that has been resized to 800x600.

But i think i will stick to using a database instead of a filemanager, "users are stupid, never underestimate them" - some quote that proves true to this day.

41 Jul 16, 2006 09:34

A method I used on an asp.net gallery (damn, seems like an age ago).

1/ User uploads image
2/ Create db record for details
3/ Store thumbs as record id# in /thumbs/
4/ Store image as record id# in /detail/
5/ When image called check if "preview" image created, if not then create as record id# in /preview/

¥

42 Jul 16, 2006 09:36

balupton wrote:

But i think i will stick to using a database instead of a filemanager, "users are stupid, never underestimate them" - some quote that proves true to this day.

So ask the stupid users who complain if they'd like their money back :p

43 Jul 16, 2006 09:38

But previews are optional, the visitor decides wether or not they want to use previews.

The optimized/resized image, is good, because if i'm uploading photos from a vacation, i do not want the 2560x1800 or whatever image to be used, but a small 800x600 image etc.

But if i'm uploading my favourite wallpapers then i would want to use the huge image instead, but should the small image be kept? (the 800x600) one?

44 Jul 16, 2006 10:49

Here's some feedback that might be worthy!

I have images (and files) on my web that have been there for YEARS. I would much rather have code eat up power (memory?) once now when I upload than each and every time someone visits a particular page. It'll be faster for them, and overall less of a burden on my server. Therefore whatever method you go with I suggest creating multiple images upon upload instead of creating them on the fly for each visitor who might want them.

Also I really wish you would think about saving images as files and information in the database for a similar reason. It seems to me, and I'm no expert, that if the db and code are manipulating information instead of images then the load I place on my server goes way down. I don't want my host saying "blah blah blah hurts the server blah blah blah pay me more money blah blah blah" because of something I can barely understand.

45 Jul 16, 2006 11:00

But then for managing the galleries, i would need to scan directories, extract information from .txt files or from teh database. Information risks getting outdated when a image is renamed or deleted. To me storing them as files would cause more load...

46 Jul 16, 2006 11:35

I disagree. You only need to review the database. If the site owner trashes his/her files that's not your problem. Same as if they edit the plugin file right? If you release something that works reliably and someone screws it up, either by renaming uploaded images or by editing files or the database, it's not your fault! You shouldn't feel the need to babysit them!

Look. I screwed up my blog once because I thought I could just upload via FTP to the various blog folders and directly editing the database. It didn't work. It failed completely! I learned the hard way that b2evolution knows what it does and doesn't know what it doesn't do, so I resigned myself to uploading ~50 images and ~50 thumbs. My rackblog is the end result. The point is that *I* screwed up. B2evolution's file management system didn't: I did. So if a user out there screws up why worry about it? They might post "your plugin sucks because I did stupid stuff", but more people will post saying "your plugin worked great", so to h**l with the random idiot.

This is my view: A plugin (or hack) should be designed with the best of intentions and the cleanest code possible for an audience willing to respect the fact that they are expected to meet certain expectations. 'Clean' refers not only to the actual code, but the overall impact it will have on the users 'online life'. Things like implementation, owner interface, server load, and the time it takes a visitor to access the page they're seeking are part of 'clean' performance. Security is another one. Whenever Francois says "blah blah blah security blah blah blah" I take his word for it. Back to your code: if the expectation is "don't rename or delete image files" that's a very reasonable expectation, so users have to live within that boundary. If they don't it's not your fault!

In b2evolution new users fail to notice the message that says their password is randomly generated and can not be retrieved, so they ask in the forums how to log in. They also delete without reading all the default content EVEN THOUGH THE FIRST POST SAYS READ THIS STUFF!!! Then they ask "how come my linkblog stuff shows up in my blog, which happens to be blog #1?". The software didn't mess up: they did. They made assumptions they shouldn't have and wouldn't have if only they paid attention just a bit. Likewise if someone deletes a file uploaded through your plugin they messed up: your code didn't. Is your code smart? Is it good to the owner and the server and the visitors? Is it strong and smart enough to handle multiple blogs and bloggers? If yes yes yes then don't sweat the occasional idiot who comes along and ruins his/her own files.

Rant over! Ultimately you have to decide what you will release to the wild wild web. Personally I miss having images to upload, wish b2evolution was better at handling images, and will want to use your plugin when it's appropriate. None of that changes the fact that you release what you deem the best possible code given the application you're coding for. And your own personal standards & beliefs eh?

47 Jul 16, 2006 12:42

Ok, well there were more reasons i was sticking with a database rather than files.

The only reason files would be better;
So the file mananger can attach them.

Plus that one reason could be added to the gallery manager within like 10mins.

So yeh, using files has nothing going for it.

Even with the feature of, let me just upload files via ftp, i do not want to manually upload each one.

This could be easily done, by making a import folder where you upload your images, then hit the import button in the gallery.

Easy.

So yeh...

But back to, i should make the plugin, and it's the users fault if they don't obey the instructions. Sure that is a good point, but a point to a certain extent. Like having a readme.txt and expecting the user to READ IT!!!! Is appropriate. But developing something while knowing that their could be problems with this method when the other would solve these problems... Is not appropriate.

As i said for the above reasons as well, i do believe that database should be used instead of files. Unless a serious thing comes up, that will force me to rethink my design, i will continue to think so....

And i'm pretty sure we are both saying the same thing, but in a different way.

48 Jul 18, 2006 18:12

balupton wrote:

Here's some concepts that I wouldn't mind getting some feedback on:
1. Should there be a Preview image as well as the current Thumbnail and Resized/Optimized image.
2. Should there be an option to 'keep original image', so the original image is kept.
3. Should Image Title's be required? - Anyone against this?
4. Should the images be uploaded to the database? Or to the file manager?

I was excited to see a gallery plugin as it's something I really need for my stock photography blog. I've just installed the plugin and as you've asked for feedback, here it is (these are just my opinions):

1 - Preview image should be forced, but it'd be nice to have an option in the gallery setup to set the size.

2 - I see no reason to do this. If someone wants to link to the original image they can turn off the resized/optimised in the plugin settings.

3 - Image titles are a must, spiders love nice titled images !

4 - Images should be stored as files in the file manager not the database. The optimised, previews and thumbs should be created on image upload and put into their own directories.

media/gallery#######/original
media/gallery#######/optimised
media/gallery#######/preview
media/gallery#######/thumb

For those on shared servers, there are sometimes limits placed on the size of databases. If all the images (including potentially very large original images) are stored in the database, it could soon swallow up all their space.

--------------

Additionally some ideas for you:

1) Provide an option in the setup to have 'Previews' always on.

2) Let users specify the size of thumbnails and previews.

3) Let users decide if they want clicks on the preview to link to an optimised image or alternatively to another URL. This URL would be added like title/description on upload.

A little background on why I ask for this:

I use b2evo to host my stock photography blog [url=http://www.sirimo.co.uk]sirimo.co.uk[/url]

Each time I add another image to my stock portfolio on iStockphoto.com I make a post and add a thumbnail that links back to iStock with my referral code.

What I'd like to be able to do is use the same size thumbs 300px x 450px I currently use as 'previews' and use 73px x 110px as the thumb size.

You can see a post that shows both sizes [url=http://www.sirimo.co.uk/index.php/2006/03/11/fashion_model_pulling_her_white_coats_co]here[/url] (Warning, [u]may[/u] not be worksafe) scroll down to bottom.

Ideally I'd like a nice easy way to upload the 300px x 450px previews, have the small thumbs created by the server. Have 1 preview automatically displayed, with clicks on each thumb show the next image in the series. And then have clicks on the previews (and maybe a text link as well) link through to the URL of my choosing so that people can license the image.

----------------

While the above may be specific to my setup (although I'm sure other stock photographers etc. would find it useful), giving the blog owner easy control over the various sizes of thumbs & previews as well as the optimised images would be a great step. Having the option of link to a URL instead of to the optimised or original images would be a killer feature. (IMO)

Anyway great work so far on the plugin, I look forward to seeing how it develops.

49 Jul 18, 2006 18:26

I have to agree with Sirimo on everything except number 2. I think that it would be best to be able to choose whether you want the image resized or not. Just a little checkbox that defaults to Yes so that if you want an image to stay the original size, you just uncheck it. If that isn't the preferred method, then just use the thumb, preview, resize, original method, but most likely if I had the original up there, then I probably don't care about the resized one.

I also agree that the images should be stored in the filesystem and I have read the applicable posts. Most hosting providers limit databases substantially and a database will quickly fill up under these circumstances. It would probably be best to make a gallery subfolder in the media folder that would store gallery images. Something similar to:

/media/gallery/xxxxxxxx/thumb
/media/gallery/xxxxxxxx/preview
/media/gallery/xxxxxxxx/resize
/media/gallery/xxxxxxxx/original

In all of the different scripts I've seen and use, I've seen very few, if any, use the database to store images and other files. Storing data like that, although very possible, is not what the database was designed for. It is much more efficient to have a filename column and a type column so that you could easily take those two pieces and bring up and image. For example if we have an image with filename "test" and type "jpg" we can easily bring up each image by saying /media/gallery/xxxxxxxx/thumb/test.jpg, or better yet, have it be /media/gallery/xxxxxxxx/test_thumb.jpg to keep the number of folders to a minimum.

I'm not an expert with this stuff, but I am becoming pretty experienced. I hope that you will not write off my suggestions as they are sound and very similar to what others have said. With a plugin that handles such a volume of data, using the database only would not be wise decision. Thank you for listening.

50 Jul 18, 2006 23:10

Well just skimming through both your posts atm, and using files (espicially the way you had outlined) will not be done.

In v2 of the gallery plugin, images will not be part of galleries, galleries will be groups of images....

In the database (bare with me).
There will be a gallery table and a images table.
The gallery table will have;
ID, Columns for settings, Images (CSV Array).

And the images table will have;
ID, Small (Thumbnail), Medium (Preview), Large (Optimized or Original), Title (Text), Description (Text).

When uploading a image there will be an option [ Do not optimize this image (Use Original) ], If this is checked the original image is used instead of the optimized image.

Galleries as i said before will be collections of images. And contain settings, like; OptimizeSettings (CSV), PreviewSettings(CSV).

Now you can upload a image via the image manager, or via managing a gallery.
If you do it via the image manager, global settings will be used.
If you do it via the gallery manager, gallery settings will be used.

This seems as the best way of doing things.

The only conflict i see with the above idea is having a image imported in multiple galleries. As Preview Sizes, Titles, and/or Descriptions may conflict.

So any ideas on how to fix this conflict. Or any reasons why this way DEFINITLY should not be done? - Will everyone be happy with this way?

Edit: Just properly read your posts.

I see what you are getting at, but as images will NOT be dependent upon galleries, there will not be the gallery folders.
So then how will images be stored? There will need to be a random or autonumber value assigned to each image name, so conflicts with names do not occur.

Ok, The ID number can be assigned to the file name as the file can be created after the information has been inserted into the database.

Yes, this does seem like a good idea...

But images will be called; 88.jpg, etc, not; 88_My_Image_Title.jpg etc.
As images may have different names in different galleries...

Hrmm......

Maybe the file structure should be;


/media/gallery_plugin/
   /images/
      /originals/
      /optimized/
      /thumbnails/
      /previews/
   /galleries/
      /optimized/
      /previews/

This will then prevent conflicting preview and optimize settings...

As if a Gallery uses different settings than the global settings then it will have it's own previews and optimized images created, instead of using hte global ones.

Originals will only be kept if the option [ Keep Original ] is checked.

Database structure will be like so;
Galleries Table;
ID, Title, Description, Images, PreviewSettings, OptimizeSettings

Images will be a text array;
ID:!:Title:!:Description}!{ID:!:Title:!:Description

IF Title or Description don't exist the global image's default title and description are used, same applies tot he PreviewSettings and OptimizeSettings.

Images Table;
ID, Title, Description, Original, Optimized, Preview, Thumbnail.

Original, Optimized, Preview and Thumbnail will be in the following format;
Location:!:Width:!:Height:!:Size

Or 'NULL' if no image was created (this applies to the Original Column).

Everyone happy?

51 Jul 18, 2006 23:51

I think you are doing a GREAT job developing this plugin and I look forward to its completion. The product you have produced is extremely professional and I am thoroughly impressed with the functionality that you have already implemented into it. Please keep up the good work!

As far as your suggestions, I think they are great. That is exactly what I was going for, I just didn't see where you were looking to go in the next version. That method of databasing would be much better and I think your directory structure will work out nicely. My only real concern before was the use of the database to store images due to size limits and I believe your solution will work very nicely.

Until later, please keep up the good work, I look forward to your next release.

52 Jul 19, 2006 00:15

If you have to rename images please keep the existing name and add a number to the start of the image. So football_action.jpg would become 88_football_action.jpg not 88.jpg

Removing the name entirely has a detrimental effect on google (and other search engine) image searches.

----

balupton - So are you saying now that images will be saved as files ? That would make me very happy ! Thanks for listening to feedback, as all the contributors here do, you rock !

Now.. what's the chance of including an optional field to make a click on the preview direct to a URL and not a full size or optimised image ? ;)

53 Jul 19, 2006 00:18

Sirimo wrote:

If you have to rename images please keep the existing name and add a number to the start of the image. So football_action.jpg would become 88_football_action.jpg not 88.jpg

Removing the name entirely has a detrimental effect on google (and other search engine) image searches.

Ok, i will try ;)

So are you saying now that images will be saved as files ? That would make me very happy ! Thanks for listening to feedback, as all the contributors here do, you rock !

Guess you are very happy then ;)

Now.. what's the chance of including an optional field to make a click on the preview direct to a URL and not a full size or optimised image ? ;)

I don't think i see what you mean....

54 Jul 19, 2006 00:28

OK assuming that previews are on. If you click on a thumb the preview is shown, if you then click the preview you see the optimised / original image.

Would it be easy/possible to add an optional field on upload to make a click on the preview direct to a URL not to the optimised / original image ?

If you check my blog out and try clicking on an image it links to the relevant iStockphoto page to purchase the image. This is essentially what I want to do. To link preview images to URL's and not use optimised/original images at all.

55 Jul 19, 2006 00:59

Sirimo wrote:

OK assuming that previews are on. If you click on a thumb the preview is shown, if you then click the preview you see the optimised / original image.

Would it be easy/possible to add an optional field on upload to make a click on the preview direct to a URL not to the optimised / original image ?

If you check my blog out and try clicking on an image it links to the relevant iStockphoto page to purchase the image. This is essentially what I want to do. To link preview images to URL's and not use optimised/original images at all.

Theres two things raised here;

1) Adding links to the images
2) Not having optimzed or original images.

1) I was planning to do this, as people submitting background packs would upload one image, and contian the rest in the .zip folder (dif resolutions).
Do you think the gallery plugin should also handle attaching files to images?

2) This requires some hard thinking.

I will think about it more tomorrow, post you ideas for how this can be implemented if you have any.

The problem is if the original image is not kept then the optimized image would need to be used for future optimizations (like importing to other galleries).

And the other problem is if neither the optimized or original image is kept, then i would need to support that when importing the image into other galleries....

Like, say if you uploaded a image, didn't keep the original or optimized image, then you import that image into another gallery.
What would happen?

Just some text when viewing the gallery in the post saying 'No larger view is avaliable'.....

56 Jul 19, 2006 03:08

Ok, thought about it a bit.

/media/gallery_plugin/
   /images/
      /originals/
      /optimized/
      /thumbnails/
      /previews/
   /galleries/
      /optimized/
      /previews/ 

Heres the new one;

/media/gallery_plugin/
   /images/
      /large/
      /medium/
      /small/
   /galleries/
      /large/
      /medium/ 

We all agree that thumbnails should all have the same height, regardless of the gallery?

Now when uploading a image there will be;
[ Browse ] [ Title ] [ Description] [ Add ]
[ Optimize this Image (UnChecked) ] [ Only Keep Thumbnails (UnChecked) ]

Now when uploading a image { into a gallery } there will be;
[ Browse ] [ Title ] [ Description] [ Add ]
[ Link ]
[ Optimize this Image (Checked) ] [ Only Keep Thumbnails (UnChecked) ]

Now when importing a image { into a gallery } there will be;
[ Image Thumbnail ] [ Title ] [ Description] [ Add ]
[ Link ]
[ Optimize this Image (UnChecked) ] [ Only Keep Thumbnails (UnChecked) ]
{ Optimize this Image is unchecked here because you if it is checked you will be making another optimization of the image, instead of using the one from the image library. }

Only Keep Thumbnails -> Optimized and Original Images will not be kept. Only the Preview image and the Thumbnail Image.
Optimize this Image -> The image will be optimized using the current gallery's settings. If not checked then the original image is kept instead. This option is disabled and unchecked if [ Only Keep Thumbnail ] is checked OR if the image is being imported does not have a large image ].

OK the above is not flawed, heres why.

If i'm uploading a photo into the library stright from my digital cam, the res would be pretty big, but it may be a photo i want to include into multiple galleries. So as it's a big image i do not want to keep the original. So i check [ Optimize this Image ], and the optimized image will be stored into the library INSTEAD of the original.

You either get to store the original OR the optimized image, not both.

Ok hope you are still following.

When uploading a image { into the library or into the gallery } it is still added to the library.

All thumbnails (Small) will have a height of 48px. This will not be changed.
The preview image (Medium) will have a height of 250px when added to the image library. This will not be changed.
The preview image (Medium) can have a height of ( 48 <= 250px ) when added to a gallery. This will not be changed. ( This preview image will be generated from the libary's image. )

So when i upload a wallpaper, i want to keep the original image, so i uncheck [ Optimize this image ], and the original will be kept.

When i upload a photo, i want to optimize the image for viewing, so i check [ Optimize this image ], and the optimized image will be kept INSTEAD of the original.

When i import a image from the libary into my current gallery, nearly every single time i would want [ Optimize this image ] unchecked, as i the image would already be optized/or-not depending on what it's for. But this option is still there (enabled) as their will be special cases when this is not so.

Hope everyone is following.

I think this is the best way, and i can't see one thing wrong with it.....

The gallery manager WILL NOT include support for attachments per image, but does provide support for adding links to images.

If a link is used and there is a large version of hte image kept, then the user will have a choice of what he/she wants to do;
[ see large version ] [ follow the white rabbit (if you can think of a better name tell me) ]

This text will always be there, as it would be confusing if for one image you are given the large version and the next you are given a .zip file....

Ok, feedback please!!!

Sirimo, does this provide the functionality you wanted?

57 Jul 19, 2006 04:07

I think I follow it all, sounds great !

The only way I think you could improve on it, would be to allow the blog owner to set the thumb (small) and preview (medium) image sizes in the galley plugin options. But doing this might make the layout more difficult ?

Either way it sounds fantastic :)

58 Jul 19, 2006 04:16

The only way I think you could improve on it, would be to allow the blog owner to set the thumb (small) and preview (medium) image sizes in the galley plugin options. But doing this might make the layout more difficult ?

Yeh it would cause various problems;
in the layout,
in future versions (if this is to change),
if the user decides to change the sizes again (will mess everything up),
etc

Also users will be able to attach the preview image, thumbnail, or a auto-generated image inside their post normally, like the filemanager.

The only thing on my mind now is how i will move the existing database into the new one.... But i will look into that later.

59 Jul 20, 2006 06:59

<offtopic value="I finally have free time again!!!!" />

I'm starting work on v2 of the gallery plugin now.

Gonna start off with some designs of the;

Gallery Library

Image Library

Gallery Manager

Then i'll start work on the database design, then the programming will happen.

I'll post the designs as they come, and please provide feedback when i do so! As if there is something you dislike or want added tell me as i'm developing it, so that way you can help create the final product! - Doesn't that just fill you with a nice warm fuzzy feeling :D

Yeh, Thanks to kf_man, sirimo and EdB for providing constructive feedback so far! Keep it up!

60 Jul 20, 2006 09:29

How will the Image Library window work?

Because loading up like 200 thumbnails could be quite horible....

I'm thinking having a search stuff, so like;

Includes Large Image; [ Yes / No / Don't Care ]
In Galleries; [ List of Galleries (ComboBox) ] [ Add ]
Date Added; [ On / Before / After ] [ Day | Month | Year ] [ Add ]
Sort By; [ Date Added / Title ]

Here is the current design of the Gallery Manager (don't wet yourself).
http://files.balupton.com/graphics/concepts/applications/gallery_plugin/Gallery%20Manager%20(Pub).png

The colors still need to be tweaked properly but thats the design and layout that will be developed! - What do you think?

The titles and descriptions of galleries or images will be editable by mouseovering them, and then they will turn into a editable text box!

It will be quite extensive on the javascript though....

Re-Arranging of images will be done by dragging the image.

And the < > right buttons will scroll the images in the gallery.

Feedback needed! - Further development will stop until i get some feedback.

61 Jul 22, 2006 20:30

Hey to get the plugin working is very easy with the newest version of b2evo. The screenshot you just posted lookes verry nice. It would also be great if it is possible to upload more than 1 picture at a time.

Keep up the good work!!

62 Jul 22, 2006 20:34

Thanks.

For the multiple uploads at a time, having that in a form is quite horrible (it just doesn't work).

But i will have a import folder, where the user can upload their photos into that folder via ftp, and then the gallery plugin will do the dirty work.

63 Jul 23, 2006 07:31

I really like where you are going with this, I really can't see anything wrong with your current design and direction. You also sound like you know where you are going with this project so I say go for it. I can't wait to see how the next version turns out. Maybe others will have some opinions on your current direction, but I think that you can continue and just tweak the design later. There is nothing wrong with a bit of javascript either, it really helps the interface become more that just a website.

64 Jul 23, 2006 14:25

I've got the mouseover effect for the textboxes going already. Working in Opera 9, IE 6, and Firefox 1.5 (so all tested browsers).

Oh klaas it wasn't a screenshot, but the design concept, meaning it was done in fireworks, not a actual screenshot of something.

The javascript should not be a problem, as it will use dhtml.

The dragging feature will probably come in a later release, as it is just a eye-candy feature, using buttons is fine and simple. (But it is something that i really want to add).

Oh, one thing i really need to know, is does anyone use the other resize styles? As 'Area' seems to be the only one used, and i do not want to 'bloat' the interface.

65 Jul 23, 2006 16:38

balupton wrote:

Oh, one thing i really need to know, is does anyone use the other resize styles? As 'Area' seems to be the only one used, and i do not want to 'bloat' the interface.

I'm sorry, I'm not familiar with the 'Area' resize style. If you are just saying height and width of the image in pixels, I think that's fine. I'm not even sure what other styles are out there, but if other options are using percentages or something, I don't think that would work nearly as well.

66 Jul 23, 2006 16:49

The readme wrote:

Re-Size Style
<-- This option provides the following Re-Size Styles ( None, Area, and Size ).
None - Means no resizing will occur
Area - Resizing will only occur if the image is larger than the area
Size - Resizing will occur to the exact Width and Height specified

Of course None is used when attaching the original.

Btw, I've got the titlebar working in Opera and Firefox, as they behave normally. But IE is being a bitch, and i'm happy with not supporting IE.
So if you do use IE as your primary browser, don't.
(But i'm pretty sure that it won't affect this userbase anyway).

67 Jul 23, 2006 17:24

I do like that lineup of size options. One other one that I was thinking of that may already relate to one of yours is Maximum Width and Maximum Height used together.

For instance if you set the maximum width to 500 and the maximum height to 500, then when a picture comes in that is 800x600, it will get resized to 500x375. Like I said, you may already have this functionality, but if not it doesn't seem hard to do anyway.

Does Area work by just multiplying the width and height and comparing that to a setting? That does work, but it might be a problem if someone had a really short, wide picture to put in. Obviously they should know better, but maybe a Max Height and Width system would work better than the area?

Just a final thought, maybe I misinterpreted your description of Area and what I described is exactly what you meant.

68 Jul 23, 2006 17:27

'Area' is what you just requested, it makes the image fit in that area by resizing it appropriatly (keeping the same width-height ratio).

'Size' resizes it to exactly the specified width and height, disregarding the width-height ration.

69 Jul 23, 2006 19:56

balupton wrote:

For the multiple uploads at a time, having that in a form is quite horrible (it just doesn't work).

Have you taken a look at the upload in b2evo itself? It does handle multiple file uploads..

70 Jul 23, 2006 22:28

blueyed wrote:

balupton wrote:

For the multiple uploads at a time, having that in a form is quite horrible (it just doesn't work).

Have you taken a look at the upload in b2evo itself? It does handle multiple file uploads..

Yeh sure, and i believe thats a bad aproach.

To me ftping the files and then importing them seems to be a much better option.
Reliability of it working is better, and if it does fail, then not every file would need to be reuploaded.
And other reasons....

Especially with the gallery plugin, as their may be upload limits etc, as Images can be quite big, So a user may end up uploading 5mb or over easily. And the chance of that getting interupted, lost connection, accidently closed the window, database error, i just don't see how it is a good option at all......

Either way, if using ftp for multiple uploads seems to be the better choice for what it's purpose wil be.

For the file manager built into b2evo, sure using the form based approach is a better choice than using ftp. (although ftp upload would be cool).

Yeh.........

Anyway here is the current screenshot v2, sorry i can't do a live demo (my server is under maintence).

If anyone wants to have a go at trying to get it to display correctly in IE6 get in contact with me. As i said earlier, i couldn't care less about IE.

71 Jul 23, 2006 22:39

balupton wrote:

For the file manager built into b2evo, sure using the form based approach is a better choice than using ftp. (although ftp upload would be cool)

Yes, I did not say that ftp upload is bad.. but often it may be that a user that wants to upload something has no FTP access (bummer!).

I'm sorry that I still have not taken a look at your plugin, but I'd still say that it would have been probably better to extend the existing file manager.

Sooner or later we/I will add more decent image support there anyway (different views, resizing etc).

I'm not sure, how much the gallery plugin should be merged into core.. maybe it could use just some hooks, which would have to get added, but given that most of the files the file manager handles are images/media files, this should probably get integrated completely.

Don't get me wrong.. just some thoughts which came to mind.

72 Jul 23, 2006 22:54

Yes, I did not say that ftp upload is bad.. but often it may be that a user that wants to upload something has no FTP access (bummer!).

Oh well ;)

For the gallery plugin being integrated into the core, i am using the media directory in v2, so wouldn't the file manager work with the files anyway....

Once v2 is released. If you can see a way that it can be intergrated into the file manager, then sure. But i don't really see how....

It would be like adding recording and editing abilities into your media player.....

Just can't see it happening imho... But if you can, then sure, i will help out.

But yeh, The file manager is a file manager, and v2 of the gallery plugin is a image manager.... To me they should be kept seperate....

To me, b2evo's core should just be for blogging, all the required stuff, and everything else plugins, like skins, the filemanager, everything else..... - But that's my view/vision.....

73 Jul 25, 2006 12:04

I installed your Gallery Plugin to test it, and realized that it didn't install the DB table appropriately, as I use a different db_prefix.

Further, not a good idea to have your plugin folder writable, would be a better idea to use the "media" folder, besides the obvious advantage of it already existing with write privileges.

I also believe it would be a nice feature, to allow users to set the folder to store images, via the admin interface.

I'll be back with more feedback, as I'm very interested in this mod;) Only need to figure out how difficult it would be to add custom fields (e.g. geo info[lat/long])

74 Jul 25, 2006 12:53

JasonMR wrote:

I installed your Gallery Plugin to test it, and realized that it didn't install the DB table appropriately, as I use a different db_prefix.

It has to be that way, and it's not changing.

JasonMR wrote:

Further, not a good idea to have your plugin folder writable, would be a better idea to use the "media" folder, besides the obvious advantage of it already existing with write privileges.

I also believe it would be a nice feature, to allow users to set the folder to store images, via the admin interface.

"plugin folder writable" why not? And v2 will 'let you chose' where you want the images kept, by default it will be the media folder. ( If you read this thread first before posting you would know that. )

JasonMR wrote:

I'll be back with more feedback, as I'm very interested in this mod;)

Cool :)

JasonMR wrote:

Only need to figure out how difficult it would be to add custom fields (e.g. geo info[lat/long])

Why?

75 Jul 25, 2006 13:06

balupton wrote:

JasonMR wrote:

I installed your Gallery Plugin to test it, and realized that it didn't install the DB table appropriately, as I use a different db_prefix.

- it has to be that way, and it's not changing.

Shouldn't the plugin use the database prefix set during install? I'm betting that quite a few people change it and it has to be readily available information during install and runtime. If there is some other technical reason, then please let me know, but otherwise it doesn't seem like it would be a big deal to make it happen.

76 Jul 25, 2006 13:10

Because the manager does not load the evo core, so it does not use the db_prefix, in v2, the manager side of things will be totally seperate, and the plugin will act more as a bridge between the manager and b2evo...

If there is a reason that the db prefix needs to be used, tell me, and i will add the support. But as the tables that are added have nothing to do with b2evo i don't see how it matters either way....

77 Jul 25, 2006 13:11

I guess you are right, unless someone else really needs it, I wouldn't worry about it.

78 Jul 25, 2006 17:55

balupton wrote:

"plugin folder writable" why not?

Because it is generally a bad idea to have folders writable. Good app design restricts this to the fewest folders possible.

balupton wrote:

And v2 will 'let you chose' where you want the images kept, by default it will be the media folder. ( If you read this thread first before posting you would know that. )

Quite a rude remark. Good to know how you like to communicate.

balupton wrote:

JasonMR wrote:

Only need to figure out how difficult it would be to add custom fields (e.g. geo info[lat/long])

Why?

Don't worry about it.

kf_man wrote:

Shouldn't the plugin use the database prefix set during install? I'm betting that quite a few people change it and it has to be readily available information during install and runtime. If there is some other technical reason, then please let me know, but otherwise it doesn't seem like it would be a big deal to make it happen.

Exactly! And that's what I've just figure out how to do :D

79 Jul 25, 2006 18:00

JasonMR wrote:

Good app design restricts this to the fewest folders possible.

On who's standards?

JasonMR wrote:

balupton wrote:

And v2 will 'let you chose' where you want the images kept, by default it will be the media folder. ( If you read this thread first before posting you would know that. )

Quite a rude remark. Good to know how you like to communicate.

Just because you interpreted it rudely, does not mean it was intended to be, or even is, rude.

JasonMR wrote:

kf_man wrote:

Shouldn't the plugin use the database prefix set during install? I'm betting that quite a few people change it and it has to be readily available information during install and runtime. If there is some other technical reason, then please let me know, but otherwise it doesn't seem like it would be a big deal to make it happen.

Exactly! And that's what I've just figure out how to do :D

Huh?

80 Jul 25, 2006 19:04

balupton wrote:

> db_prefix
It has to be that way, and it's not changing.

I guess you need it that way, because you access the DB without instantiating the plugin or loading the core?

I'd strongly recommend to use the GetDbLayout() method provided, because, additionally it handles DB layout changes, when useres upgrade their plugin.

Anyway, if that's the reason and using /htsrv/call_plugin.php is too "expensive", then you should at least respect the $db_prefix from /conf/.

What if there are multiple instances in the DB? it must not be from a single b2evo installation, but from two different ones, with different db_prefix.

81 Jul 25, 2006 19:29

Ok good point, i include the /conf/_basic_config.php anyway, for the db config... :-/ Forgot this variable was in there ;)

So yeh it will be added.

82 Jul 25, 2006 22:32

Gonna do something i don't usually do, but anyone want to help me develop v2?

I spend a lot of time fine-tuning css, so everything looks correct (sizes, positions, etc), and so it displays correctly in IE.

Now i would prefer get onto the code while this is done by someone else.

You would need to know about CSS, DIVs, floating, padding and margins.

If you are interested, pm me.

If this goes out well, then i will just add the basics in the design, and the contributors can finish the styling.

So yeh, it'll be interesting...

Here is the current implemented design; http://dev.balupton.com/b2evo/gallery%20plugin/v2/design/design.php

83 Jul 26, 2006 06:22

I love this plugin! but I thougt it needed a few things (better display of images and watermark) I added suppport for "lightbox" and added code to use a watermark on the fly.

you can see it here

http://www.pvbeat.com

if anyone is interested in the mods I made, let me know :)

Shanti

84 Jul 26, 2006 06:39

shanti wrote:

I love this plugin! but I thougt it needed a few things (better display of images and watermark) I added suppport for "lightbox" and added code to use a watermark on the fly.

you can see it here

http://www.pvbeat.com

if anyone is interested in the mods I made, let me know :)

Shanti

I think you are my new best friend.

Were you the sole developer of these changes? Or was it a copy and paste job? Either way, the changes you've done are great.

Heres the changes i can see;
* I'm guessing Lightbox is the view/load effect you have going on your blog.
* I can see the watermarks in the large image, but not in thumbnails (which is probably a good thing)
* You have made it so preview mode is the only avaliable/default one.

Also it's impressive that the page works fine without javascript enabled... I'm really interested how this is done (i could use it for other projects)

Anyway, i'm really interested in all these changes, well your whole blog actually.

I've pm'd you with my contact details.

85 Jul 26, 2006 06:43

I will reply your PM too, but first

Lightbox was of course copy and paste, the other mods where a mix between things I've done, things I found and thigs I made up as I modified the pages.

I know lightbox works without Javascript (it simply does not show) but it then works like there was nothing installed.

Shanti

86 Jul 26, 2006 08:08

Can we get the updated gallery plugin with the lightbox included?

87 Jul 26, 2006 08:27

I think balupton will be releasing it soon I guess, implementation directly with the plug is done now, so it will be a breeze to add it :)

Shanti

88 Jul 27, 2006 10:50

I would prefer to spend what time i have, working on the v2 release, than getting the latest v1 dev build ready for public release.

You can wait can't you?

If not you could ask kf_man (for the fixes) and shanti (for the lightbox support) nicely, so they could create a unofficial release. (They would need to run it by me first though).

And just something that should be noted;
The thumbnail image height, should not be changed. (looking at you shanti ;)). In fact, any hard-coded value should not be changed.

btw, v2 will support the lightbox functionality properly, and hopefully i could integrate the gallery inside of it.

89 Jul 28, 2006 07:02

You can now see the latest (as of now) design of v2 here;
http://dev.balupton.com/b2evo/gallery%20plugin/2_0/design/design.php

Firefox displays it exactly how it is meant (and intended) to be.

Opera displays it 'exactly' the same as firefox. (the differences are un-noticable).

IE has display issues (because it does not support multiple css styles; .one.two), but it still works.

I will now start working on getting the images to slide and move.

Update:
The slide effect has now been added.
Next thing to do will be gallery selecting.

Edit: I'm thinking of making a new thread in Plugin Development Assistance, for all development related posts, and leave this thread for posts relating to official releases... Agree?

91 Jul 29, 2006 02:02

For development related posts use the following threads;
[url=http://forums.b2evolution.net//viewtopic.php?t=8694]2.x Series[/url]
[url=http://forums.b2evolution.net//viewtopic.php?t=8693]1.x Series[/url]

What does count as a development related post;
* Anything to do with the plugins development
* Bug reports
* Plugin issues
* Feature Requests / Ideas

What does not count as a development related post;
* Feedback - Comments, Critism

Edit: fixed the 1.x series link.

92 Jul 29, 2006 03:52

One of the errors that I fixed earlier with my copy allowed me to remove all of the images, I thought this fix was in the works already? I haven't ever come across that other problem you described.

93 Jul 29, 2006 04:54

My reply is in the 1.x series dev thread.

94 Jul 30, 2006 17:45

I've installed B2evolution something like... oh, over 24 hours ago now!
Your plugin was the first thing I was interested in as the main purpose of my blog is to be bilingual and show pics of the country I live in.

It took me about 5 mn to get how it works and it's just fine!
Of course, a lot of nice fonctionalities aren't available but it's big step in the right direction nonetheless!

I love what Shanti has done with the plugin and as Balupton you said there would be a V.2 coming out sooner than later, I'll just say that I love this plugin, it totally serves its purpose and then some!
Thanks for what you guys do for us mere bloggers! :D

95 Jul 31, 2006 01:12

Glad you like it, v1.2 will be coming out before v2, and you can read up on them in their apropriate threads.

UgzY wrote:

Of course, a lot of nice fonctionalities aren't available but it's big step in the right direction nonetheless!

Could you say what you would like to see in the Gallery Plugin, and i will see what i can do ;)

And welcome to the forums :D

96 Aug 03, 2006 17:15

Just thought i would give a status report on the development of the gallery plugin.

v1.2 is nearly ready, the display modes are getting their final touches made, and upgrade functionality still needs to be done.

Besides that, it is a very mature product, i'm really proud of it. If you want to know what i mean by a mature product, take a look at the code compared to the v1.1 release and the v0.9 release, and you can see how the product has matured over time.

v1.2 still requires b2evo to function correctly, it is not fully independent yet.

Hopefully if there are no bug reports v1.2 will be the last release of the 1.x series.

Now i've learned not to give release dates, so i'll just say, expect it soon ;)

For more info on the dev of the 1.x series check it's dev thread.

97 Aug 04, 2006 16:12

Just gonna make some hype in this little work break i've scheduled for me.

I'm planning to release it at midnight, that gives me 1 hour and 50 minutes to finish the upgrade function, and to update the readme.txt file.

So lets hope it all goes well, as i started falling asleep two hours ago.

98 Aug 04, 2006 18:07

Here we go the 1.2.0.0 beta version is out;
http://files.balupton.com/programs/online/b2evo/plugins/gallery_plugin_v1.2.0.0-beta.zip

And my server is currently running it, the upgrade half worked, as you can see here;
http://blogs.balupton.com/index.php?blog=2&title=the_gallery_plugin_test&page=1&more=1&c=1&tb=1&pb=1 (worked)
http://blogs.balupton.com/index.php?blog=5&title=drunken_friday&more=1&c=1&tb=1&pb=1 (didn't)

Now i plan to keep the 1.2.0.0 release in beta for around one week, depending on what the feedback is like, and how many problems are found.

If you have some time on your hands, and have a spare installation of b2evo, please try it out, and provide feedback. If you are some photographer who's work cannot be lost, hold back to the final release.

Cheers, hope you like it!

99 Aug 04, 2006 18:28

Well, it did mess up some of my images, but that's not a big deal, I'll just reupload them. Luckily I only had a few anyway. So far I like what you've done with it, but I really won't know until I get to try it out. Thanks for the update!

100 Aug 06, 2006 04:21

I've just released v1.2.1.0-beta of the gallery plugin;
http://files.balupton.com/programs/online/b2evo/plugins/gallery_plugin_v1.2.1.0-beta.zip

It fixes all the reported issues, and adds a few things.

I've tested it with upgrades, and clean installs, and everything else, and so far it's worked perfectly for everything i've seen.

So what i really would like tested is the 1.1->1.2 upgrade functionality with a lot of galleries allready there before the update with varying titles, sizes etc etc.

Anyway i'm real confident that it will work perfectly for everything, but i have still stuck the beta label on it, as i'm sure some of you will find something.

So yeh, report and bugs, etc in the dev thread.

Cheers.

102 Aug 09, 2006 18:08

It hasn't successfully connected to the database, are you running b2evo 1.8?

I will be releasing a new beta version soon, which will be stable enough to use prime-time, and after that their should be one more beta release before 1.2 goes final.

So if you can't get it working, be sure to wait 1-2 weeks or so for the new version :)

103 Aug 09, 2006 18:18

Hi-I'm trying to install Gallery 1.2.2.0-beta on b2evo-v1.8beta and I get a bunch of errors, below. Any idea why? All the rest of my b2evo seems to be operating properly. I've installed other plugins with no problems. Thanks for any help.

Warning: mysql_query(): Access denied for user 'nobody'@'localhost' (using password: NO) in /home/vignet/public_html/blogs/plugins/gallery_plugin/_gallery.php on line 292

Warning: mysql_query(): A link to the server could not be established in /home/vignet/public_html/blogs/plugins/gallery_plugin/_gallery.php on line 292

Warning: Cannot modify header information - headers already sent by (output started at /home/vignet/public_html/blogs/plugins/gallery_plugin/_gallery.php:292) in /home/vignet/public_html/blogs/inc/VIEW/_menutop.php on line 38

104 Aug 09, 2006 18:26

What the fudge just happened with the posts.... Your post got merged or something...

Anyway, use the v1.1 release, the beta's are still in beta for good reason ;) But the 1.2 release should hit final in 1-2 weeks.

Good luck!

105 Aug 09, 2006 19:02

Thanks for your previous message. I installed v1.1 and it installed with no errors. But now when I go to the Gallery Creator page, I immediately get a script error, below, and and I can't add any images. Any ideas? Thanks again.

Line: 150
Character:2
Error: Object required
Code:0
url: http://www.(my site)/blogs/plugins/gallery_plugin/manager.php?Gallery_ID=785284412512630

106 Aug 09, 2006 19:19

I see the problem. I read the instructions again, and the Gallery Creator problem was "operator error". So I it appears to be working. Thanks again.

107 Aug 10, 2006 10:47

Glad you got it working :)

Can you post how you went wrong so i can make the instructions better to prevent this issue.

109 Aug 11, 2006 04:10

TroyM, Glad you like it, although could you unquote that text ;)

112 Sep 04, 2006 03:02

Made it so v1.2.4.1 is now the new official release.

113 Sep 04, 2006 03:53

On testing your own Gallery example I noticed that the "Basic" link [1] performs the same as the "enhanced" [2] when "Basic" is clicked on "Enhanced" doesn't become an active selectable link.

Maybe I'm missing something but is Basic now redundant?

116 Sep 04, 2006 10:02

John wrote:

Ok, I found the problem with this gallery not working on my site.

It does not like living with the JS for [URL=http://www.dustindiaz.com/sweet-titles-finalized/]Sweet Titles[/URL]

The js? last time i looked it was css conflicts... :-/

ps, can this go in the dev thread... ;)

btw, the new design on your site is awesome :)

118 Sep 04, 2006 13:20

Edit, Ahhh just saw your new post in the blog. Yeh i see now. Thought you were talking about the lightbox problem before... I will look into it. Cheers.

Happy with everything else?

119 Sep 04, 2006 13:50

Ok, this fixes the problem's on my side, in the next release i will see if i can do anything more.

Add following to _gallery.css


.gallery .thumbnails a,
.gallery .thumbnails a:hover,
.gallery .thumbnails a:visited {
	border:none !important;
}

Add following to lightbox.css


#outerImageContainer a,
#outerImageContainer a:hover,
#outerImageContainer a:visited {
	border:none !important;
}

Tell me how the above fix goes.

120 Sep 04, 2006 14:07

Yep, that fixes the minor CSS issues and thanks, but the fact remains that the reason this never worked properly in installations of the Gallery is that Lightbox js and Sweettitles js don't coexist.

It's not a surprise, and the same thing happens on my forum with Lightbox and some Ajax scripts

Nice version of the Gallery..
Cheers

121 Sep 07, 2006 23:07

Hello,
I just installed this plugin in 1.8.1 and when I click the gallery button when posting, upload page opens just fine with no errors but I am not able to upload anything. I browse to the file I want and click upload and I see it working, my network light is solid like its transfering the image for a few seconds and then the page stops doing anything and my uploaded image never appears and isn't in the list of uploaded photos.

Is there something I am missing?

122 Sep 07, 2006 23:10

This could be a issue with uploading a file above the aloud limit. Try uploading a smaller image, and also try viewing the source (right click->view source) see if there is any <!-- something helpful --> tags in it.

123 Sep 07, 2006 23:25

thanks for the quick response.

fyi I am using version 1.2.4.1 and b2evo 1.8.1

I tried lots of different jpg's and the one i just tried was a tiny 8kb.

All it says after it looks like it has uploaded is "Sorry no images to display" in both the manager page and if i preview the post.

I took a look at the souce and no visible hints to me.
I'll attach a copy of the source.

124 Sep 07, 2006 23:35

Ok, thanks for providing all that.

Could you go into /gallery_plugin/includes/scripts/manager.js, and change line 73 to read as follows

var use_ajax = false;

Then attach the resulted source again, and hopefully we can catch any problems.

125 Sep 07, 2006 23:48

alright, set it to false and same results.
here is souce2

126 Sep 07, 2006 23:52

The source you are attaching is the source right after you tried to add a image?

I'll put together a -debug release, so we can help figure out whats going wrong.

127 Sep 08, 2006 00:00

Yep heres what I did:
New post
pressed the gallery button below the post field
in the gallery creator page that opens up I hit the browse button
select random image
the form immediatly adds another browse field below the one i just selected
i hit the upload button, the page loads and i think the image actually does transfer because it takes longer for larger images or for several
after the its done doing anything i am left with a page that looks identical to when it just opened. no pics listed under Uploaded Images

and thats when i view the souce and copied it to you.

128 Sep 08, 2006 00:14

K try this build, i haven't tested it myself, but should all be ok as long as i didn't do any typos.

So try add a image in that, then just send over the output source.

129 Sep 08, 2006 01:23

I removed my old install of gallery from the plugins interface and then dropped the gallery_plugin-debug into the plugins directory and nothing shows up in the list of available plugins.

130 Sep 08, 2006 01:26

Ok then i made a typo somewhere, can you view the source and see if there are any erros where the display stops.

131 Sep 08, 2006 01:33

i've found the problems, try this.

i'm leaving now, but i will be able to post back in 2 and a half hours or so.

133 Sep 08, 2006 03:06

still not seeing it for some reason... however when i put the non debug back in the plugins dir, it sees that one.

134 Sep 08, 2006 04:05

Ok, i will set a test installation up when i can, maybe a day or so. Sorry for the inconvience, but we should be able to get this resolved.

135 Sep 08, 2006 06:30

alright, thanks for all your help. i have seen your plugin on other sites and it really is a great addition. and its great that you continue to support it so well.

136 Sep 09, 2006 09:52

Ok i've setup the test install on my side, and i to have come across your original problem, my guess is that when i was re-packaging it, i over-wrote the functions in resources without updating the gallery class to support it. I will have a new release out shortly, that fixes the problem, as well as including inbuilt debug functionality.

137 Sep 09, 2006 11:01

v1.2.4.2 has just been released, it's highly recomended you update.

  Changelog:
   v1.2.4.2-beta;
    * Added better debug logging
	* Problem where on some installations uploaded images would not be uploaded was fixed. (Reported by flonks)

Get it here;
http://storage.balupton.com/homes/storage/projects/online/gallery_project/gallery_project_v1.2.4.2.zip

Something not working the way it should be?
Open _gallery.php and set the $debug variable to true, and perform the action that caused the problem again, and then PM a copy of page's sourcecode to me.

138 Sep 10, 2006 01:51

i've taken down the v1.2.4.1 and v1.2.4.2 releaes as both have proven unstable. Please wait until i can verify a stable release.

139 Sep 11, 2006 01:29

Why is it that when you fix one problem you always run into another? Life always seems to happen this way.

Well, I'm excited for the new release.

140 Sep 11, 2006 01:36

Why is it that when you fix one problem you always run into another?

Hrmm, well all the problems that the recent two builds i released where due to me trying to port over parts of 1.3 into them. Which turned out to cause a big mess.

So instead of releasing a new release that fixes the problem, i'm probably going to re-release an older stable release.

In the meantime you could download the 1.1 release which is stable, or wait a few hours for me to re-release the 1.2.4.1-beta release.
You can grab archived releases from; http://storage.balupton.com

In better news; 1.3 is coming along very nicely, although i'm facing a few problems in how i should go about certain things. I will post more info about this in the dev thread shortly.

142 Sep 11, 2006 18:16

Just to let you know, v1.1.0.0 works fine for me. I just downloaded and installed v1.2.4.1-beta, as you said you would make a re-release, (at 11:00 AM Central US Time) and it is continuing to have the same problem.

So, are you saying v1.2.4.2 is the realese that fixes my problem but you have stopped download of it because it is unstable? And do you plan to have a stable release of 1.2.4.2 soon?

Or are you saying that you have scratched the development of 1.2.4.2 and gone to just development of 1.3?

144 Sep 11, 2006 18:23

Haha so how I understand it now, you are fixing your release of 1.2.4.2 soon, but only continuing your development of 1.3.

Alright, so I will check back everyonce in a while for a 'stable' release of 1.2.4.2 and in the meantime use 1.1.0.0 at my site.

Thanks for the clarification.

145 Sep 11, 2006 18:27

Whoops sorry, let me clarify.

1.2.4.2 fixed your problem but was unstable.

1.1.0.0 is stable, and 1.2.4.1-beta is as well although it does contain very minor problems.

I've stopped development on the 1.2 branch, so i can get a 1.3 release out sooner.

I will post back when this release is out.

146 Sep 11, 2006 18:32

Alright, now that I'm on the same page, as soon as I see 1.3 here I'll upgrade to that.

Thanks for all of your help.

148 Oct 05, 2006 13:41

Works Fantastic in my 1.8.2 !!!

Very GREAT Job, Big THX !

Stabi

149 Oct 05, 2006 14:19

Just one thing worth mentioning and I'm not sure if a) it's already been covered or b) if this won't be an issue in the next version, but I just migrated all of my sites to a new host and the gallery did not work with the paths that were in the database. This was easily fixed using Find & Replace in the SQL dumb, but it might be something to think about for the future. Even so, I still really love this plugin and I continually find it very useful. Great Job!

150 Oct 11, 2006 21:01

can i make the "Enhanced view mode" at standard and can i set that on click on thumb the "optimal size image" open not the Preview image?

151 Oct 12, 2006 02:57

Yes, heres the following hacks you would apply to _gallery.php;

Line 499

'href="'.$image['image_medium_url'].'" '.

Change to

'href="'.$image['image_large_url'].'" '.

Line 578-579

		if ( $display_mode != 'manager' )
			$r .= $this->get_option_links();

change to

		/*if ( $display_mode != 'manager' )
			$r .= $this->get_option_links();*/

Line 160-161

		if ( defined('gallery_mode') && gallery_mode === 'manager' )
			$this->set_option( 'display_mode', 'manager', false, false );

change to

		if ( defined('gallery_mode') && gallery_mode === 'manager' )
			$this->set_option( 'display_mode', 'manager', false, false );
		else
			$this->set_option( 'display_mode', 'enhanced', false, false );

Should work fine... You need the v1.2 release for this though.

153 Oct 27, 2006 05:29

limlar wrote:

thanks works very good

Great plug in!
Is it possible to disable the one click download in the enhanced mode?
Thanks a bunch for making this plug in. It really enhances my blog to add the picture gallery.

Mike Odom

154 Oct 27, 2006 10:52

Great plug in!

Cheers.

Is it possible to disable the one click download in the enhanced mode?

Comment out line 520 of lightbox/js/lightbox.js, it looks something like this

Element.show('saveLink');

so change to

//Element.show('saveLink');

Edit: fixed the above hack

155 Nov 02, 2006 16:45

Heres a hack that i just applied for the v1.2 release, it will make it so files with filenames like
"My title - somethign else.jpg"
Will have the title: My title
and the description: somethign else

Heres the code

	var description_start = value.lastIndexOf(' - ');
	var title = value;
	var description = '';
	if ( description_start > 0 )
	{
		title = value.substring(0,description_start);
		description = value.substring(description_start+3);
	}
	obj.parentNode.childNodes[add_title_pos].value = title; // set the title
	obj.parentNode.childNodes[add_description_pos].value = description; // set the title

And replace the line

obj.parentNode.childNodes[add_title_pos].value = value; // set the title

in the manager.js file in the includes/scripts/ folder.

156 Nov 03, 2006 05:26

Hi!

I use b2 1.8.2 and gallery 1.2.4.1.beta and after install a receive this:

ERROR: Conflicting function versions:
Function [scan_dir]
Original Version [2]
Attempted Version [3]

ERROR: Conflicting function versions:
Function [get_user_variable]
Original Version [4]
Attempted Version [6]

Warning: Illegal offset type in /home/.nickie/oigreslima/sergioflima.pro.br/blog/blogs/plugins/gallery_plugin/resources/functions/_user_variable.funcs.php on line 16

Warning: Illegal offset type in /home/.nickie/oigreslima/sergioflima.pro.br/blog/blogs/plugins/gallery_plugin/resources/functions/_user_variable.funcs.php on line 26

Warning: Illegal offset type in /home/.nickie/oigreslima/sergioflima.pro.br/blog/blogs/plugins/gallery_plugin/resources/functions/_user_variable.funcs.php on line 31

Warning: Illegal offset type in /home/.nickie/oigreslima/sergioflima.pro.br/blog/blogs/plugins/gallery_plugin/resources/functions/_user_variable.funcs.php on line 36
Author's display

How fix it?

Thanks

balupton wrote:

This could be a issue with uploading a file above the aloud limit. Try uploading a smaller image, and also try viewing the source (right click->view source) see if there is any <!-- something helpful --> tags in it.

157 Nov 03, 2006 06:32

Do you also have the avatars plugin installed or any other of my other plugins installed? Because this would only occur when there is conflicting versions of functions i've made are trying to be loaded.

What you could do, is search all your b2evo files for;
function scan_dir
and
function get_user_variable

And then tell me what files contain those.

A program that can search inside multiple files is dreamweaver or agent ransack, or some others.

158 Nov 03, 2006 12:02

Bingo!!

I deleted the avatar_plugin and Gallery_plugin (that is more import for me!) work fine!

Update: the mode Enhanced. don't work, but it is not a serious problem!

Thank very Much and congratulation for your nice plugin!

balupton wrote:

Do you also have the avatars plugin installed or any other of my other plugins installed? Because this would only occur when there is conflicting versions of functions i've made are trying to be loaded.

What you could do, is search all your b2evo files for;
function scan_dir
and
function get_user_variable

And then tell me what files contain those.

A program that can search inside multiple files is dreamweaver or agent ransack, or some others.

159 Nov 24, 2006 17:44

A week or two ago i released a updated version of the avatars plugin that fixes the incompatibilities.

Could you provide more info on why the enhanced more is not working... Cheers.

160 Dec 04, 2006 13:54

B2evolution v1.9 requires a little change to the gallery plugin's code in order for it to work.

Open /blogs/plugins/gallery_plugin/_config.php and change;

		if( defined('EVO_MAIN_INIT') )
		{	// b2evolution has already been loaded
			// so we now use their configuration
			global $baseurl, $tableprefix, $db_config;
		} else
		{	// If the b2evocore has not been loaded
			// load their configuration
			require_once( $config_file );
		}

to

		if( defined('EVO_MAIN_INIT') )
		{	// b2evolution has already been loaded
			// so we now use their configuration
			global $baseurl, $tableprefix, $db_config;
		} else
		{	// If the b2evocore has not been loaded
			// load their configuration
			if( !defined('EVO_CONFIG_LOADED') )
				define('EVO_CONFIG_LOADED', true);
			require_once( $config_file );
		}

Also open _gallery.plugin.php and around line 427 you will find;

				if( contents.lastIndexOf('<!--more-->') < 0 && contents.lastIndexOf('<hr />') < 0)
					document.getElementById('itemform_post_content').value += '\r\n[<?php echo $this->code; ?>]'+text+'[/<?php echo $this->code; ?>]';
				else
					document.getElementById('itemform_post_content').value += '\r\n[<?php echo $this->code; ?>]'+text+'[/<?php echo $this->code; ?>]';

replace it with

textarea_replace_selection( b2evoCanvas, '\r\n[<?php echo $this->code; ?>]'+text+'[/<?php echo $this->code; ?>]', document );

Thanks to Peio for reporting this problem.

161 Dec 06, 2006 05:27

Hey all,

Gallery 2 (or so you know it as ;)) has been under work for a few months now, and now that holidays (well kind of, parties and work are taking up my time) are happening, i will have a lot more time than i did while i was attending uni.

Now many of you would of noticed me hinting to things about Gallery 2, and believe me, in the coming weeks you will see a lot more hinting and teasers appearing here and there. (Just look for a my signature for one teaser ;)).

As of a status report, the user-end side of the design is just having it's finishing touches applied, and atm is being sent off to various people and designers for their final thoughts on it.

Now would be a very good time to post your feature requests and ideas.

I will not say which features are currently in it, and which i will include, besides that Gallery 2 is it's own CMS now, and will be able to 'hook in' with other database tables. (For example, instead of using the default gallery 2 user table, you can hook it in with the b2evo user table and use that instead, or maybe even a wordpress one if they seem to be compatible).

So yeh, please! post your ideas and feature requests, and check out the forums every now and then for the latest teasers and hints.

Regards
-Balupton

162 Dec 15, 2006 01:41

Where can i change the size of the thumb image?

163 Dec 15, 2006 01:52

Line 814 of /gallery_plugin/_gallery.php should look like this

			case 'small':
				return
				remake_image(array(
					'image'		=> $image,
					'width'		=> 0,
					'height'	=> 48,
					'mode'		=> 'area',
					'size'		=> 0,	
					'quality'	=> 96,
					'debug'		=> $this->debug						
				));
				break; // unreachable

Line 77 of /gallery_plugin/includes/styles/_gallery.css should look like this

.gallery .image {
	height:48px;

Customize that to your likening.

164 Dec 15, 2006 02:56

case 'small':
return
remake_image(array(
'image' => $image,
'width' => 0,
'height' => 100,
'mode' => 'area',
'size' => 0,
'quality' => 96,
'debug' => $this->debug
));
break; // unreachable

Sorry my ignorance.
I change "'height' => 100", but the thumb steels at 50x50.
I want the thumbs in 100x100.

165 Dec 15, 2006 06:01

my bad i also forgot to mention you need to update the css, i've modded my previous post to accommodate for this change.

166 Dec 31, 2006 22:26

I few days ago I left a post in this thread and it seems to have disappeared along with every other post left over the last week and a half. I'll go ahead and post again.

After installing this plug-in and clicking the Gallery button, the only thing that happens when the window pops up is the loading icon spins around but I can't upload any pictures.

I can select a picture, but when I click the upload button nothing happens.

The next day I received a response that said to change something on line 73 in _____ file from true to false or false to true or something like that.

After applying that solution nothing seemed to be any different whether I used IE6 or Firefox and I do have javascript enabled.

Thanks in advance for any solution you can provide.

167 Jan 01, 2007 01:56

You can PM me with your site url, and I will take a look from there.

Sorry if my replies have been lacking but i've been totally flat out with work.

168 Jan 01, 2007 18:45

Hey man, don't worry about me. I'm just greatful that such a thing as open source software exists and people like you share any of your stuff.

I actually feel like I'm stealing because the things on this site are so good and take so much time and effort, I can't imagine people give this stuff away for free.

As far as a site URL, I'm using Xampp at the moment until I learn how to use this script, so my practice blogs are not online.

169 Jan 05, 2007 19:21

my host change the settings

i can't upload pictures

i push the upload button and then comes a error-message


Update Failed:
<html>add</html><!-- Ad by ohost.de --><noscript><div
style="display:none">&nbsp;</div></noscript><script type="text/javascript"
scr="http://media.ohost.de/layer.php?bid=40212482"></script><!-- End Ad by ohost.de -->

170 Jan 13, 2007 20:09

Hi!
I upgraded to b2evo 1.9.1-beta today, from 1.8.2. I also installed b2evo language pack for Swedish and your gallery version 1.2.4.1-beta. I had your gallery installed on 1.8.2 and I used the existing database to keep previous posts on my blogs. I used the following fix, as you refer to for evo 1.9:

" 1.9, requires the fix here;
http://forums.b2evolution.net/...7759#47759 "

My problem is that as soon as i activate the gallery no part of the blog will function - either in firefox 2.0 or ie 6. I get blank pages both in blogs and in back-office, and no errors in the error console of FF. The gallery plug-in looks to exclude all other code when I view the page source. (see below). I have double checked the 1.9 fixes, but the only thing that gets my blogs back is deleting the gallery plug-in via ftp.

What did I do wrong? Did I forget something?

Here follow the source code of the 'blank' blog-page.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="sv-SE" lang="sv-SE">
<head>
		<script type="text/javascript">
function evo_gallery_optimize_use_onchange(obj) {
var disable = ( obj.checked == "" );
document.getElementById("evo_gallery_optimize_size").disabled = document.getElementById("evo_gallery_optimize_mode").disabled = document.getElementById("evo_gallery_optimize_width").disabled = document.getElementById("evo_gallery_optimize_height").disabled = disable;
evo_gallery_optimize_mode_onchange(document.getElementById("evo_gallery_optimize_mode"));
}

function evo_gallery_optimize_mode_onchange(obj) {
var disable = ( obj.value == "none" || obj.disabled );
document.getElementById("evo_gallery_optimize_width").disabled = document.getElementById("evo_gallery_optimize_height").disabled = disable;

}
</script>

I really liked your gallery by the way, in b2evo 1.8.2. Looks real good and easy to use. Thanks for any help resolving my problem!

171 Jan 14, 2007 12:40

I have realized that I am not sure what your instruction below means. I have tried both ways, but cant get the gallery to work anyhow. Do you mean that the document.getElement lines should both be replaced by the new line - or should the entire code shown be replaced by the new single line?

regards
/m

Also open _gallery.plugin.php and around line 427 you will find;


                if( contents.lastIndexOf('<!--more-->') < 0 && contents.lastIndexOf('<hr />') < 0)
                    document.getElementById('itemform_post_content').value += '\r\n[<?php echo $this->code; ?>]'+text+'[/<?php echo $this->code; ?>]';
                else
                    document.getElementById('itemform_post_content').value += '\r\n[<?php echo $this->code; ?>]'+text+'[/<?php echo $this->code; ?>]'; 


replace it with


textarea_replace_selection( b2evoCanvas, '\r\n[<?php echo $this->code; ?>]'+text+'[/<?php echo $this->code; ?>]', document ); 

172 Jan 14, 2007 13:54

Sorry for not replying (if that is the case), i'm currently extremely busy with work, and have barely had the time to even check my non-work email.

I will get back to you and everyone else as soon as i can, i'm gonna go with a week, no guarantees.

Thanks for your patience
- Balupton

173 Jan 20, 2007 01:36

This is indeed a very needed plugin for b2evo. Nice work :-)

One idea out of the blue: Could the gallery be made so that you could use the b2evo filemanager to upload pictures? This way the gallery pictures would be available at all time via the filemanager and they follow the personal folder of a blogger (or blog folder depending on the b2evo settings).

I am thinking the procedure as this:
1) you make a new folder within filemanager
2) you upload the pictures to that folder
3) with the gallery button (when editing a post) you open up a new window where you can choose which subfolder within the bloggers folder you want to be your gallery.

I hope you can follow the idea?

As I said: it is just out of the blue. Use it if you think it makes sense.

174 Jan 20, 2007 01:45

chrpeder, me and blueyed have been thinking of ways of implementing the gallery project within b2evo's file manager, and never came up with a practical solution, but what you suggested there, about just using the file manager to upload then the gallery manager to import is a good idea, and I will look into it.

175 Jan 21, 2007 22:58

I also think it would be good to use the file manager, because that's the only way I can upload pictures. For now, all I get is a spinning loading icon, but the file manager works great.

While you're at it, maybe you could design your avatar plugin to work from the file manager as well, and once I figure out how to use these two plugins (can't get either one to work), I think I could put them to use.

176 Jan 24, 2007 04:33

Hi all,

After lot of search i found this "plugin" for adding Image Gallery into b2evolution Blogs.

b2evolution: 1.9.2
php: 5.2.0
mysql 5.0.27

After i've installed the plugin 1.2.4.1-beta, i have thise error on all admin page (like sir_nell)

Fatal error: Call to a member function display_header() on a non-object in /path/to/blog/plugins/gallery_plugin/_gallery.plugin.php on line 316

I tried each modification in this forum but nothing. Please help ^^

Thanks

R1

178 Jan 30, 2007 22:31

Sorry, been caught up with other things, I am actually looking at the stuff now, as well as upgrading my blogs to 1.9.2.

Eventually, probably after this sitting, i will be cutting support for the gallery plugin all together, so I can continue work on it's successor urGallery. You can take a look at what I did back in december on it here:
http://urGallery.net/preview/

Feedback on it should go here:
http://forums.b2evolution.net/viewtopic.php?t=8694

I hope you like it, and if you do, please post back as a simple thanks is great motivation, and makes doing this stuff for free just that extra motivation :)

Anyway, back to solving your issues ;)

179 Jan 31, 2007 09:38

Here is the fix to the error that you guys were experiencing.

	/*
	 * Event handler: Called during the display of the Skins's Html Head section.
	 *
	 * @param array Associative array of parameters
	 * @return boolean did we do something?
	 */
	function SkinBeginHtmlHead( & $params )
	{
		require_once(dirname(__FILE__).'/_gallery.php');
		
		// Display the Header for Viewing the Gallery
		global $Gallery;
		$Gallery->display_header();
		return true;
	}

	/*
	 * Event handler: Called when ending the admin html head section.
	 *
	 * @param array Associative array of parameters
	 * @return boolean did we do something?
	 */
	function AdminEndHtmlHead( & $params )
	{
		require_once(dirname(__FILE__).'/_gallery.php');
				
		$disable =
		array(

do the appropriate find and replaces.

180 Feb 01, 2007 01:45

Ok 1.9.2 breaks the display mode changing, will look into it later today.

181 Feb 28, 2007 02:50

Just like to say thanks so much for such a fantastic plugin, can't wait for the next version!

182 Mar 02, 2007 08:06

hi, what could be the problem if im getting this error:

Call to a member function display_header() on a non-object in D:\xampp\htdocs\cms\plugins\gallery_plugin\_gallery.plugin.php on line 316

thanks for the nice plugin. i tried it on my other localhost b2evo install and it worked but with this warning:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\b2evolution\plugins\gallery_plugin\_gallery.php on line 616

just can't locate what's causing the problems

184 Mar 18, 2007 23:59

Is there a downloadable current version of the gallery plugin?

185 Mar 19, 2007 04:43

None that I have made, maybe someone else could package their version.

Reason being is packaging actually takes a bit of time, plus i tend to have some pretty bad practices in modding up the official releases for my own use, which makes releases even harder as i have a lot of dev code inside the "official" releases...

In short, all my copies are modded up pretty bad to suit special requirements for me only, so having someone else package their one up would be the best option. Anyone up for it?

186 Mar 21, 2007 12:59

Hi i have installed the plugin in my version 1.9.2. The display mode doesn't work, it wont change when i press the link. Well it doesn't really matter, except that I would like to have the default display mode to be "enhanced" instead of "basic" how do I go about setting the default display mode to enhanced?

EDIT: I figured out that the display mode link does work once, but it doesn't change the curent class! And I can't change it back, So I guess my question now is.

How do i delete the possibility of changing display mode, so that there is only one I no option to change it. I only want to use the enhanced display mode

:: Kasper

187 Mar 25, 2007 19:08

Thanks ballupton for the great job you're doing.
I've read all this thread and I'm aware that you want to move on with the completion of "urgallery".

As we wait for it, I have installed v.1.2.4.1-beta on b2 v.1.9.2 (installed from scratch on PHP 4.4.1 and MySQL 12.22).

Once I install the plugin, I get the following message:
Warning: Cannot modify header information - headers already sent by (output started at /home/juannett/public_html/blogs/plugins/gallery_plugin/resources/functions/_vti_cnf/_to_from_string.funcs.php:9) in /home/juannett/public_html/blogs/inc/VIEW/_menutop.php on line 39

Everything else within the blog seems to work ok. but I cannot load any pictures through the gallery option.

Any suggestions?
Thanks,

188 Mar 26, 2007 08:31

Hrmmm... Next week is my 2 week study break, i will try and find some time in there to release a 1.9.2 compatiable version.

189 Apr 04, 2007 20:37

someone give this one a whirl

190 Apr 04, 2007 21:31

the 1.1.0.0 version, when i click on the button gallery, i'm a rror : Please, do not access this page directly. i run on 1.9.3 b2evo

191 Apr 05, 2007 03:27

the only 1.9 compatiable version is the one i just posted above... well at least it should be ;)

192 Apr 06, 2007 10:04

I've loaded the gallery plugin (1.2.4.2-beta) into 1.9.2 and I'm getting the following message plus I can't load up:

Warning: Cannot modify header information - headers already sent by (output started at /home/juannett/public_html/blogs/plugins/gallery_plugin/resources/functions/_vti_cnf/_to_from_string.funcs.php:11) in /home/juannett/public_html/blogs/inc/VIEW/_menutop.php on line 39

I did the changes suggested in your post of Dec.04, 2006 and it still behaves the same way.

You can take a look at my blogg at:
http://juannetta.com/blogs

193 Apr 06, 2007 10:10

funday, output is starting in this file:

gallery_plugin/resources/functions/_vti_cnf/_to_from_string.funcs.php

Which shouldn't exist... I just checked the package and there is no _vti_cnf folder in it, so try deleting that folder with your ftp client...

194 Apr 07, 2007 00:27

Thanks for your prompt reply.

Things are looking better:
I erased two sets of _vti_cfn folders...one inside the "functions" folder and the other under "variables".

I also made the changes specified in your post of Dec.04, 2006 plus made sure to have the updated version of the auto_P plugin. Everything is displaying fine exept for the loading up of the pics. This is what I get when I press "Upload":

Warning: unlink(/home/juannett/public_html/blogs/media/gallery_plugin/pollera.bmp): No such file or directory in /home/juannett/public_html/blogs/plugins/gallery_plugin/_gallery.php on line 640

Warning: mkdir(/home/juannett/public_html/blogs/media/gallery_plugin/537758470613394/): No such file or directory in /home/juannett/public_html/blogs/plugins/gallery_plugin/_gallery.php on line 668

Warning: mkdir(/home/juannett/public_html/blogs/media/gallery_plugin/537758470613394/large/): No such file or directory in /home/juannett/public_html/blogs/plugins/gallery_plugin/_gallery.php on line 672

Warning: mkdir(/home/juannett/public_html/blogs/media/gallery_plugin/537758470613394/medium/): No such file or directory in /home/juannett/public_html/blogs/plugins/gallery_plugin/_gallery.php on line 676

Warning: mkdir(/home/juannett/public_html/blogs/media/gallery_plugin/537758470613394/small/): No such file or directory in /home/juannett/public_html/blogs/plugins/gallery_plugin/_gallery.php on line 680

Thanks for your time!

195 Apr 07, 2007 19:16

funday, use the version here:
http://forums.b2evolution.net/viewtopic.php?p=53437#53437

No changes are needed for that version, remember to delete the old gallery_plugin folder though.

If need be, create a gallery_plugin folder in the /blogs/media/ directory, and give it 777 in permissions (CHMOD) your FTP client should have this somewhere. If it doesn't get the free trial of FlashFXP.

196 Apr 09, 2007 11:27

YOur 1.2.4.2 version returns this error : Warning: mysql_query() [function.mysql-query]: Access denied for user 'apache'@'localhost' (using password: NO) in /var/www/vhosts/theblog.ath.cx/httpdocs/plugins/gallery_plugin/_gallery.php on line 254

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /var/www/vhosts/theblog.ath.cx/httpdocs/plugins/gallery_plugin/_gallery.php on line 254

197 Apr 10, 2007 03:38

Hey Ballupton,

I know I'm sounding like a broken LP.
I've tried everything discussed under this topic and for some weird reason I'm unable to have the thing work right.
I've also followed the last steps you've suggested and still doesn't work: I re-downloaded the last version (beta) and uploaded it to my server. I've then installed it on my blogg (after deleting the extra-unecessary vfi folders. Nonetheless, when I try to upload pics, it tells me "Please, do not access this page directly." This I can correct by doing the changes you proposed on Dec 04, 2006, but then I get the error mentioned in my last post.
The only way I can load up is using Microsoft FrontPages (with extensions).

Thanks for your help and patients!

198 Apr 28, 2007 02:52

Um..hi (^_^)
I have limited knowledge of php and such..BTW, your pluggin is awesome

Now, is it possible to have more than one gallery in a post.
I'd like to have a few words, then a few pics, then more words, then more pics.

I tried...blah blah blah
[evo_gallery]864447751224271[/evo_gallery]

Blah Blah Blh

[evo_gallery]547895778168237[/evo_gallery]

Is this possible?
Thanks

199 Apr 30, 2007 14:15

theblog and funday, I will look into your problems now. If anyone else is having problems, now would be a nice time to make me aware of them :)

v_dragon, Yes you can, but the 'Gallery' button will only open up the Gallery Manager for the first gallery it finds in the post, what you can do is in the gallery manager window, in the url bar, just changed the gallery_id with the one you want. (The gallery id is the number between [evo_gallery], and in the url bar the number after gallery_id=.

200 Apr 30, 2007 14:34

Ok give it a whirl, it should only be compatiable with 1.9.x releases, no more support for 1.8....

I've tested it against b2evo 1.9.3 and worked fine.

201 Apr 30, 2007 20:02

Warning: mysql_query() [function.mysql-query]: Access denied for user 'apache'@'localhost' (using password: NO) in /var/www/vhosts/***/httpdocs/plugins/gallery_plugin/_gallery.php on line 254

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /var/www/vhosts/***/httpdocs/plugins/gallery_plugin/_gallery.php on line 254

i'd this error, but this zip include files of 1.2.4.2-beta !

202 May 01, 2007 02:23

theblog, the .zip file above is correct, there are changes to it's _config.php file. You are running b2evo 1.9.3 yes? And do have a /blogs/conf/_basic_config.php file that is configured correctly? Eg. which contains:

	$db_config = array(
		'user'          => 'sadsad',     // your MySQL username
		'password'      => 'asdsad',     // ...and password
		'name'          => 'sadsad',  // the name of the database
		'host'          => 'asdsad:21321',    // MySQL Server (typically 'localhost')
	);

And you did just copy the gallery_plugin folder to the plugins directory?

If all those are correct, then open up gallery_plugin/_config.php and change:

if ( file_exists( $config_file ) )
	{	// b2evolution exists, this means the gallery project is a plugin of it

to

if ( file_exists( $config_file ) )
	{	// b2evolution exists, this means the gallery project is a plugin of it
echo 'we found the b2evo config file'; 


And tell me if it outputs 'we found the b2evo config file'...

203 May 01, 2007 13:49

my b2evo works, the plugin works when i replace the code

204 May 01, 2007 13:56

but when i upload, i don't view my uploaded files

205 May 06, 2007 11:03

Balupton this is a great plugin. Kudos.

It runs great in 1.8.6 but I have one B2 EVO in 1.9.3 for which I'm using gallery 1.2.4.3-beta which is causing me probs.

creating a gallery gives me this error


Notice: Undefined index: image_large in [mydomain] /public_html/comblogs/plugins/gallery_plugin/_gallery.php on line 599

which refers to this

$images = array();
		while ( $row = mysql_fetch_assoc($result) ) {
			$row['image_large_url']
				= $this->get_image_url($row['image_large']);
			$row['image_medium_url']
				= $this->get_image_url($row['image_medium']);
			$row['image_small_url']
				= $this->get_image_url($row['image_small']);
			$images[] = $row;
		}

If I get this working could I use gallery 1.2.4.3 GALLERY in a 1.8.6 B2 EVO as I like the multiple upload function

206 May 06, 2007 11:43

theblog, you are having some pretty strange problems, could you make me a account on your blog that has posting privileges, and pm me the details, and I will see what I can do.

stevet, 1.2.4.3-beta is only for b2evo 1.9.x and above.
The 1.2.4.2-beta should be compatiable with b2evo 1.8.6, you can get it here:
http://forums.b2evolution.net/viewtopic.php?p=53437#53437
But I would recomend using the original release 1.2.4.1-beta which is made for 1.8.6, you can get it here:
http://storage.balupton.com/homes/storage/projects/online/gallery_project/gallery_project_v1.2.4.1-beta.zip

I will update my original post of this topic to reflect recent developments now.

207 May 06, 2007 11:56

Thanks Baluptin

maybe I confused the issue by asking more than one question.

I am using 1.2.4.3-beta in b2evo 1.9.x blog and got the following error


Notice: Undefined index: image_large in [mydomain] /public_html/comblogs/plugins/gallery_plugin/_gallery.php on line 599

which refers to this

$images = array();
		while ( $row = mysql_fetch_assoc($result) ) {
			$row['image_large_url']
				= $this->get_image_url($row['image_large']);
			$row['image_medium_url']
				= $this->get_image_url($row['image_medium']);
			$row['image_small_url']
				= $this->get_image_url($row['image_small']);
			$images[] = $row;
		}

208 May 06, 2007 13:01

Could you change that code to:

		$images = array();
		echo '<!-- Debugging Start: '."\r\n";
		while ( $row = mysql_fetch_assoc($result) ) {
			var_export($row);
			$row['image_large_url']
				= $this->get_image_url($row['image_large']);
			$row['image_medium_url']
				= $this->get_image_url($row['image_medium']);
			$row['image_small_url']
				= $this->get_image_url($row['image_small']);
			$images[] = $row;
		}
		echo 'Debugging End. -->';

And around line 42, make var $debug equal to true (it may already be).

Then do whatever it was that is causing you the problem, and post back with a attachment of the source code of the page, so I can see what is going on.

209 May 06, 2007 13:23

I'm assuming you meant the source of teh gallery page which I am attaching.

edit: code snippet removed as no longer required.

210 May 06, 2007 13:34

Thanks, but nope :(

I meant the source of whichever page gives you the notice

Notice: Undefined index: image_large in [mydomain] /public_html/comblogs/plugins/gallery_plugin/_gallery.php on line 599

Which does not appear in the source you attached above.

211 May 06, 2007 13:43

since I put your debug stuff I don't get a page - I get a pop up alert (see attached screenie)

212 May 06, 2007 14:10

This is the error when i click Savechange

213 May 06, 2007 14:20

Allright I figured it out, this new release should fix the issue. Cheers for reporting it, and helping me debug it.

theblog, this release should also fix your issues.

Also make sure that b2evo's media folder has appropriate permissions (eg. 777), and you may need to re-save the plugin's settings via the plugins tab in b2evo's backoffice.

214 May 06, 2007 14:31

will that DL fix my prob too Balupton

216 May 06, 2007 16:04

Thanks man, that's astounding. I'm going to upgrade my other B2 EVOS to take advantage of this. One thing I might add that it may be good to give the viewer some indication that they will be able to see a larger version of the picture as it's not immeditely apparent :D

217 May 06, 2007 17:16

Thank you

It doesn't work, more bug than the precedent release, now the gallerie crash my b2evolution administration

218 May 07, 2007 19:30

theblog, geeze you are a unlucky person, would you be able to set me up with a writer account on your b2evo setup and i'll take a look myself, otherwise this could end up going on forever... :roll:

stevet, i'll take that note under consideration :)

219 May 07, 2007 20:01

I'd a problem, theblog is a hosting of blog, used by 18 users, but if i run the pluggin, there users can be crash my b2evo.

For this error, the preview button open a blank window, and save button get a 404 error, when only i use gallery. so upload run perfect and no error in this

220 May 07, 2007 20:20

Hrmmm.... Could you fill out the following details for me:

PHP Version:
MySQL Version:
B2evolution Version:
Gallery Plugin Version:
Your Browser & Version:
Is Javascript enabled in your browser?:
All the steps you do to produce a problem:

And PM me the source code of any pages that experience a problem (so I can look through them to see if I can spot any error/debug messages).

221 May 07, 2007 21:53

balupton wrote:

Hrmmm.... Could you fill out the following details for me:

PHP Version:
MySQL Version:
B2evolution Version:
Gallery Plugin Version:
Your Browser & Version:
Is Javascript enabled in your browser?:
All the steps you do to produce a problem:

And PM me the source code of any pages that experience a problem (so I can look through them to see if I can spot any error/debug messages).

the source code is that source code of editor of article
so the b2evo is entierly original not modified yet

PHP version : 4.4.4
MySQL version : 4.1.21
Gallery plugin : 1.2.4.4
Your Browser : FireFox 2.0.0.x
Javascript is actived for run TinyMCE and b2evo in general

222 May 08, 2007 11:55

[edit] :oops: OOPS - found the answer earlier in this thread.

It's all working nicely. I'd like to disable the [SAVE] feature on the larger images as some of my users may take issue with that. I've managed to do a hack that stops this but it's a bit messy as it presents a 404

in image.php I just added an x to the downloadable file type = jpgx

if( !ends_with($image_url, '.jpgx') )
{	// We do not want the user downloading files they are not meant to be downloading
	header('HTTP/1.1 404 Not Found');
	die;

How could I defeat filesaving a little more gracefully?

223 May 08, 2007 15:44

open /gallery_plugin/includes/lightbox/css/lightbox.css and change

.preload_saveLink, #saveLink:hover, #saveLink:visited:hover {
	background:url("../images/save.gif") center top no-repeat;
}

to

.preload_saveLink, #saveLink:hover, #saveLink:visited:hover {
	background:none;
}

and in the .js file remove

$('saveLink').onclick = function() {
			document.location = gallery_url+'image.php?loc='+encodeURIComponent(Element.getSrc('lightboxImage'));
			return false;
		}

not tested but should work

224 May 08, 2007 18:06

balupton, i sent your login info for view my problem, the gallery plugin will be desactivate at 9h30 p.m

225 May 08, 2007 18:26

Cheers will take a look now.

Edit: Need you blog addy, you can send it to me via pm, it is 1:27am here, so I would not be able to look at it again till about 5-10pm. I'm on the GMT+08:00 timezone.

226 May 08, 2007 20:07

a, it's a problem because my b2evo is used for intensive production, i can't leave a plug with bugs

227 May 08, 2007 20:11

Ok, you got me right before I was about to head off, will look at it now, and give a update before I go to bed.

228 May 10, 2007 21:38

Ok there is a incompatibility with the tinymce plugin, i've posted about it in it's topic, so hopefully me and blueyed can work on a fix sometime.

229 May 12, 2007 11:14

when you open an image from the thumbnail on the Intermediate images size you get an option to view the Image at its largest and or to move to the next pic. If you view the image at it's largest size when you click NEXT it gose to teh next pic but at the intermediate size. One of my users mentioned that one he had chosen to view the image at its largest he's then like to scroll though them all at that size. I think that would be cool too. :)

230 May 12, 2007 12:15

Yeah, i've considered that, I would like to see something like that too... but reasons i went against it is:
1) How would the user go back to medium size?
2) The user has not seen the next picture yet, so may not care about the large size of it, so it is increasing bandwidth unnecessary.

If you can think of a good solution that combats those two things, feel free to tell me, and we will discuss it, and if it works out, i'll implement it.

231 May 12, 2007 12:39

balupton wrote:

1)How would the user go back to medium size?
2) The user has not seen the next picture yet, so may not care about the large size of it, so it is increasing bandwidth unnecessary.

I don't disagree with your reasoning it's just my assumption that if the user elects to see a large image they may well wish to see them all that way. But then different people have different ways of browsing things and your can't please everyone.

As for how to do it, sorry I haven't a clue :oops: - I'm no programmer.

232 Jun 19, 2007 09:00

the gallery works great in all my [1.9.3] B2 Evolutions except for one

can't figure what's different about the odd one out. I've tried copying a skin from a working B2 and I've tried copying the Plugin from another installation.

I just get "Error on Page" when I try to click on the [gallery] button

it works here http://www.tvcm.co.uk/comblogs/index.php/medialit
(as well as other places)

but not here www.ts3.org.uk

any ideas?
would overwriting the B2 files have any effect. This installation (the one not working) was recently upgraded to 1.9.3

233 Jun 19, 2007 09:59

Could you set me up a writers account on the faulty blog (just setting me up with my own test blog or something will be fine) and PM me the details. That way I can debug the problem right away, and pretty much instantly know what is going wrong (hopefully).

Also which browser and OS are you using so I can simulate the environment?

234 Jun 19, 2007 10:25

oops - forgot to say in the PM - I'm using IE6 and XP - I do also use Firefox

235 Jul 06, 2007 11:47

Am I losing my mind... or did the messages on the 1.2.5.0-beta go away?

236 Jul 06, 2007 12:50

Forum host died recently, and lost about 2 weeks of data (so basically as soon as I started posting again :() I'm in the middle of a house move, so I won't be able to get anything back up until sometime next week.

237 Jul 06, 2007 14:11

That's okay, I was just making sure I didn't lose my mind!

Hope all the moving goes well.

238 Jul 06, 2007 14:14

Hey, I found out today that a very small number of people only get a link to the medium sized picture if their browsers don't recognize the gallery plugin. Is there any way to make it so they get a link to the large picture instead?

239 Jul 06, 2007 16:25

I will have to look into it later after my move. Cheers for reporting it, you're good for that :)

240 Jul 06, 2007 16:49

Well, your plugin makes my otherwise amateurish blog look professional, so I cherish it and its operation a great deal. In fact, I'd be glad to make a donation if you are Paypal ready.

BTW, someone pointed out to me that somehow they saw that the gallery plugin inserts "<p clas</p>" into posts. To me, this is a really really MINOR thing, as only one person has noticed or complained. But I thought I should point it out. Again, love you, love your plugin.

241 Jul 11, 2007 08:13

I will begin work on the gallery plugin v1.5 soon later today, it will be a complete clean up, and will be amazing. I should have it out within the next few days :) If I don't get caught up with clients and the move again.

242 Jul 12, 2007 23:23

Ok I tried adding a mouseover grow effect on the images, that failed miserably. And I also tried adding drag and drop sorting in the manager, and that also failed miserably.

So.... tough bickies.

244 Jul 15, 2007 08:49

Well I was trying for the scriptaculous method, but the css method will be next. The main problem with implementing that is because it grows over the other images you have to mouse out the entire gallery... So yeah... I will see what I can do though...

245 Jul 15, 2007 13:03

The main problem I have had with the PZ3 CSS method is that it looks great on the web site, but the RSS feed and emailed version has the normal sized version of the picture, which sometimes is really big.

What's nice about your gallery is, in the emails, the recipient initially gets tiny versions of the pictures, just like on the web site.

246 Jul 15, 2007 13:58

:) well that sure is a nice feature I never knew about ;)

I've just added a new resize mode called Crop, you should know what it means. (Thanks to my dev work on the avatars plugin).

So expect a nice new release in coming few hours.

247 Jul 16, 2007 15:56

I think I've posted to a wrong place the following message:

Nino wrote:

Hi,

few days ago I've installed the last version of b2evo and this gallery plugin (v1.2.4.5-beta), but I'm facing some stranges problems:

1) some of the folders the plugin creates are not accessible from FTP ('Permission denied')

2) some photo are not uploaded and some of the uploaded are not displayed (you see only an "X"!).

Can someone help me to understan what happens?

Thanks a lot,
Nino

Perhaps it would help to know that the plugin creates folders an files with always different permissions (even during the same session!): 660, 644, 655, 666, 700, 755, 777.

Thanks for any help.
Nino

248 Jul 16, 2007 18:20

Nino wrote:

Perhaps it would help to know that the plugin creates folders an files with always different permissions (even during the same session!): 660, 644, 655, 666, 700, 755, 777.

And if you set the /media/ folder and all it's sub directories to 777 does this problem still happen?

249 Jul 16, 2007 18:57

All the folder /media was 755. Now I've set it to 777.

I will inform you if that fixed the problem.

Thank you very much.

Nino

250 Jul 16, 2007 19:06

What about the second problem?

I've seen that some photo aren't in the gallery table, but they are in the folder. For example, Aiko_1.pg isn't in the database, its thumbnail isn't shown in the post (you can see only an "X" in IE, or a rectangle in Mozilla), but if you click on the thumbnall (the small format) you can see the medium and the large photo!

You can see that at http://www.vessella.it/silvia/index.php?blog=2&title=costume_museum&more=1&c=1&tb=1&pb=1

Thanks for your attention,
Nino

251 Jul 16, 2007 19:13

I'm going with that was a subset of the file permissions problem. Pretty sure that when it encounters a problem it "tries" to rollback what it did.

252 Jul 16, 2007 19:57

Nino wrote:

I've seen that some photo aren't in the gallery table, but they are in the folder. For example, Aiko_1.pg isn't in the database, its thumbnail isn't shown in the post (you can see only an "X" in IE, or a rectangle in Mozilla), but if you click on the thumbnall (the small format) you can see the medium and the large photo!

You can see that at http://www.vessella.it/silvia/index.php?blog=2&title=costume_museum&more=1&c=1&tb=1&pb=1

Actually these photos weren't uploaded into the small folder, they are only in large and medium folder! And they aren't in the database too! How did the code displayed the large and medium formats?

I've put them manually into the database, but I'm not able to put them in the folder, because the "owner" of the folder is "apache".

Any tip to fix the problem?

Thanks,
Nino

253 Jul 16, 2007 20:03

Try delete the bad images with the gallery manager, and re-add them.

254 Jul 16, 2007 20:06

Where is the gallery manager?

I tried to find it but I was unsuccessful :(

I found the b2evo "file manager", but I'm not able to go the folder /media :(

255 Jul 16, 2007 20:09

:) The gallery manager is the thing that pops up when you click the "Gallery" button (where you edit the contents of a gallery).

256 Jul 16, 2007 20:17

OK!

But there I don't see anything that allows me to delete the uploaded images!

I don't see at all the gallery :(

258 Jul 16, 2007 20:30

OK! I've got it! It was my fault: I was trying to get it from a new message! Sorry. :oops:

I did what you said but the problem is still there :(

259 Jul 16, 2007 20:34

:oops: :oops: :oops: :oops:
Sorry again: I forgot to save the modified post! I'm working with two browser and got confused!

But do you know why I had this problem? Missing data in the database, missing image, etc.?

Thanks a lot.

Ciao,
Nino

263 Jul 17, 2007 20:48

Ok I counted 49 on that link, Will see if a I can max out more than that now.

264 Jul 19, 2007 04:02

I just noticed this in my server's error log:

[Wed Jul 18 21:54:34 2007] [error] [client 68.164.229.148] File does not exist: /home/comlist/public_html/plugins/gallery_plugin/includes/admin.js

This error occurs over and over again.

The gallery plugin does work fine, however. Strangeness!

265 Jul 19, 2007 07:49

Thanks, it's been fixed in the latest (or at least it will be).

One feature that I've been trying to add is the ability to read and save png and gif formats.

So expect that in the next release.

I've been holding back new releases (for all my plugins) for various reasons. So just hold up.

266 Jul 19, 2007 16:35

Hi, balupton.

The gallery seems to work well now! Thanks.

Browsin the previuos posts I've noticed that somebody else would like to keep the large imagine moving to the next one:

stevet wrote:

when you open an image from the thumbnail on the Intermediate images size you get an option to view the Image at its largest and or to move to the next pic. If you view the image at it's largest size when you click NEXT it gose to teh next pic but at the intermediate size. One of my users mentioned that one he had chosen to view the image at its largest he's then like to scroll though them all at that size. I think that would be cool too. :)

Obviously, I've read your answer too:

balupton wrote:

Yeah, i've considered that, I would like to see something like that too... but reasons i went against it is:
1) How would the user go back to medium size?
2) The user has not seen the next picture yet, so may not care about the large size of it, so it is increasing bandwidth unnecessary.

If you can think of a good solution that combats those two things, feel free to tell me, and we will discuss it, and if it works out, i'll implement it.

I can't think of a solution, but what about to let the blog's owner to configure the plugin so that it keeps the large images without going to the medium size (that would happen when you close it)
A better solution would be a MINIMIZE botton on the bottom of the image... but I don't know how to program it!

Anycase can you tell me how to hack your code so that when you open an image from the thumbnail you skip medium ones and go directly to the large. In other words how to eliminate the intermediate sizes?

Thanks a lot for you code and your help!

Ciao,
Nino

267 Jul 19, 2007 16:51

I swear i've posted this before (didn't cross my mind when I did your quoted answer), in _gallery.php, in the get_thumbnail function, look for

			case 'enhanced':
				$r .=
				'<a '.
					'href="'.$image['image_medium_url'].'" '.

and replace image_medium_url with image_large_url.

Should work?

And thanks for using it, and actually giving feedback, that is the most important thing.

268 Jul 19, 2007 17:04

Thanks a lot! I would try and let you know.

Ciao,
Nino

269 Jul 19, 2007 18:03

Hi,

I've modified the code, but it doesn't work :(

I get strange results. The first time a click on a thumbnail I get a large picture on the top-left of a new window but there is no way to browse the photos. If you close the window and click again a thumbnail you go back to the standard behaviour.

Did I miss something?

Ciao,
Nino

270 Jul 19, 2007 19:03

Ok, it is a old hack, so it must be broken in the newer versions. I'll look it into it.

271 Jul 20, 2007 00:46

Ok, the new image library is done :) (So now it has crop mode, and can read and write any supported image type on the server)/

Although implementing it within the gallery plugin is a whole different story. A complete clean up will need to be done... Hopefully it won't end up as another 1.3 catastrophe... (Where too many changes were going on and it just fell apart).

So the the next release will be labelled 1.4, and be a huge update on the plugin.

Just need to know if anyone has been using the Gallery class or image library in other projects, as if you have then I could grab your feedback on what you would like done.

272 Jul 23, 2007 14:42

I've just updated the first post, to re-add the v1.2.5.0-beta release.

There is also a CVS HEAD release link, where you can download the same version that is being run on my website. So if you need the latest and greatest (but could be broken) version, try that. It is not recommended though! So only download if I say it is a good idea.

The next release, with gif and png support will be a while.

273 Jul 23, 2007 19:16

I looked at the first post, but did not see the v1.4.5.0-beta release. Does this mean you are still working on it?

275 Jul 23, 2007 21:27

The Gallery Plugin is now listed on the main page, please show your support and give it rating :)
http://plugins.b2evolution.net/index.php/2007/07/23/gallery_plugin

I have also been in talks with blueyed and personman, and decided that I will need to follow b2evolution's move, and use the jQuery library instead of the Scriptaculous one. (These are used for all those cool effects and all js related stuff).
You won't notice much, but it is a step to making it b2evo v2 compatible, and hopefully will allow me to do more later on.

276 Jul 24, 2007 02:11

Also if you would like you and your site listed on the first post of this topic, for use in the upcoming "see it in action" section. Then PM me the following:
Your name (well the one you want used).
Your site (preferably a page/post that is using the gallery plugin, and will remain live).
A little two sentence (max) summary of how the gallery plugin enhances your site.

No "offensive" content must be on the url you provide.

277 Jul 25, 2007 00:31

I've tried to install the latest version of gallery, but I receive the following warnings:

Warning: mkdir(/var/www/web705/html/PM_2007/b2eve/blogs/media/gallery_plugin/) [function.mkdir]: Permission denied in /var/www/web705/html/PM_2007/b2eve/blogs/plugins/gallery_plugin/_gallery.php on line 218

Warning: mkdir(/var/www/web705/html/PM_2007/b2eve/blogs/media/gallery_plugin/images) [function.mkdir]: No such file or directory in /var/www/web705/html/PM_2007/b2eve/blogs/plugins/gallery_plugin/_gallery.php on line 222

Warning: fopen(/var/www/web705/html/PM_2007/b2eve/blogs/media/gallery_plugin/settings.txt) [function.fopen]: failed to open stream: No such file or directory in /var/www/web705/html/PM_2007/b2eve/blogs/plugins/gallery_plugin/_gallery.php on line 226

Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/web705/html/PM_2007/b2eve/blogs/plugins/gallery_plugin/_gallery.php on line 235

Warning: fclose(): supplied argument is not a valid stream resource in /var/www/web705/html/PM_2007/b2eve/blogs/plugins/gallery_plugin/_gallery.php on line 236

Maybe I made a mistake, but I can't figure out where. I un-installed gallery, made the directories writable and even created a directory called "images". Then I re-installed gallery, but all the warnings keep coming back. Anybody has an idea?

Thanks & regards,
Chris

278 Jul 25, 2007 08:25

Hi Chris,

Seems that you did not follow all the full b2evo install instructions http://manual.b2evolution.net/Install_b2evolution#File_permissions as the "media" folder does not have the correct permissions.

Don't worry, A lot of people forget to do this (including me in my first days). So I've added a extra step into the Installation section of the gallery plugins readme.txt to say make sure you completed the manual side of the b2evo installation, blah blah blah.

Hope that helps
- Balupton

279 Jul 25, 2007 15:31

The file permissions haven't been set correctly, that was it!

Gallery is installed now. However, when I click "perform" in ie7, there's no pop-up window but codes appear in the post window (see attachment).

Firefox is better. The pop-up opens. But when I try to upload an image, I receive warnings again:

Warning: unlink(/var/www/web705/html/PM_2007/b2eve/blogs/media/gallery_plugin/Konstanzer_Fasnacht_Sonntag_2006_011.jpg) [function.unlink]: No such file or directory in /var/www/web705/html/PM_2007/b2eve/blogs/plugins/gallery_plugin/_gallery.php on line 676

Warning: mkdir(/var/www/web705/html/PM_2007/b2eve/blogs/media/gallery_plugin/387167482125509/) [function.mkdir]: No such file or directory in /var/www/web705/html/PM_2007/b2eve/blogs/plugins/gallery_plugin/_gallery.php on line 704

Warning: mkdir(/var/www/web705/html/PM_2007/b2eve/blogs/media/gallery_plugin/387167482125509/large/) [function.mkdir]: No such file or directory in /var/www/web705/html/PM_2007/b2eve/blogs/plugins/gallery_plugin/_gallery.php on line 708

Warning: mkdir(/var/www/web705/html/PM_2007/b2eve/blogs/media/gallery_plugin/387167482125509/medium/) [function.mkdir]: No such file or directory in /var/www/web705/html/PM_2007/b2eve/blogs/plugins/gallery_plugin/_gallery.php on line 712

Warning: mkdir(/var/www/web705/html/PM_2007/b2eve/blogs/media/gallery_plugin/387167482125509/small/) [function.mkdir]: No such file or directory in /var/www/web705/html/PM_2007/b2eve/blogs/plugins/gallery_plugin/_gallery.php on line 716

Is it again a problem with directory permissions?

280 Jul 25, 2007 16:32

Did you uninstall and install the gallery plugin again once you corrected the permissions?

If so, then PM email me a copy (zipped) of the pages source that gives the errors (When a problem happens a html comment is written, so by looking at the source I can hopefully see what is going wrong). You can get the source by right clicking the page and going "View Source". My email is balupton@gmail.com .

281 Jul 25, 2007 21:57

Strange things happened. I un-installed and re-installed gallery but this didn't change anything. Then I dropped the gallery table from the database. Finally I received more warnings then before. At a time I even couldn't access my website anymore. But when I tried to connect it with a second PC everything went smoothly. I don't know exactly anymore what I did nor can I figure out what was happening behind the stage. But now it also works on PC no. 1.

Thanks for assisting. Brilliant software. Exactly what I was looking for!

282 Jul 25, 2007 22:01

That is extremely strange, I can't think of any reason why any of those problems you just had would happen... But at least everything is magically working now eh ;) If you come across any problems or want to give a idea or feedback, feel free (in fact it's encouraged ;)).

283 Jul 26, 2007 04:38

Is anybody using this plugin? I'd like to see it in action.

Leave a URL.

285 Jul 26, 2007 21:13

I admit that I only read the first post and the last page or so, but I am having a problem with validation. I'm getting an extra piece of tag in my output that is as follows:

<p clas</p>

I'm pretty sure that comes from the View options, but I'm not sure about that either. Could you please take a look into it? I also noticed it on both of your example sites. Like I said, I'm kind of confused on this...

Thanks again!

286 Jul 26, 2007 23:12

Maybe this has been answered but I really didn't find the answer.
The galley installs well, works well, yet the lightbox feature doesn't work for me. Why could this be?

287 Jul 27, 2007 12:31

gcasanova, could you elaborate on "doesn't work for me", and do you have javascript enabled, and what browser are you using (and any extensions that you are running). Also is there a link to your blog so that I can test it?

kf_man, Since v1.2.4.0 the view options have been removed, it is most likely a incompatibility with the auto-p plugin, I will check it out when I can.

288 Jul 27, 2007 15:12

Well the problem is that the "Lighbox effect" doesn't show, the only thing that opens is the bare picture aligned to the right. I do have javascript enabled and I'm working with version 1.9.3 of b2evolution.

I can't give you an example since it is a clients blog and a very busy one.

On the other hand I upgraded another blog to version 1.10.2 and the plugin works perfectly well. Could it be that its not compatible with version 1.9.3?

289 Jul 27, 2007 15:31

Well the plugin framework has not changed from 1.9.3 to 1.10 (to my knowledge), but support for those versions are only in v1.2.4.3-beta and above. Which version are you running?

290 Jul 27, 2007 15:53

I'm using 1.2.5.1-beta in both cases.

292 Jul 27, 2007 16:28

You are right, the newest version doesn't work with b2evo v 1.9.3

By the way, how can I make the thumbnail bigger?

293 Jul 27, 2007 17:19

Umm it was posted somewhere in this topic, I don't recommend it though, but here it is, applies to v1.2.0.0+ releases.
1. Open gallery_plugin/_gallery.php and go to the "create_image" function, once there go to the "small" case, once there, change the dimensions to what suits your needs.
2. Open gallery_plugin/includes/styles/basic.css and go to ".gallery .image {", then change the dimensions to that you specified in the above step.

I'm updating the first post to index all these hacks, as well as to specify the incompatibility you mentioned :)

294 Jul 27, 2007 17:30

Thank you very much for your help and specially for this excellent plugin!

296 Jul 27, 2007 18:24

// Return the Set of Options
function get_option_links()
{
	
	$r = '<p class="options">';
	
	[...]
	
	$r = substr( $r, 0, strlen($r)-strlen('&nbsp;&nbsp;') );
	
	$r .= '</p>';
	
	return $r;
	
}

This code takes the string $r (since there are no options, the for-loop is missed) and takes a substring which includes all characters from zero to the length of $r (19 characters) minus the length of '&nbsp;&nbsp;' (12 characters). This leaves only 7 characters of the string left which results in "<p clas" and gets "</p>" appended to it.

I'm not sure what the purpose of the substr is, but it looks like removing it solves this problem...

EDIT: I see the purpose of this in context, but it doesn't work properly when there are no options.

EDIT 2: I'm confused...I commented the line out in _gallery.php and the problem still remains. Is there something you need to do to reinitialize the plugin after you change the code?

297 Jul 27, 2007 18:28

Hrmm, I thought I removed the call to that when I forced the lightbox display... Good find, I will update now.

298 Jul 27, 2007 18:33

Thanks, and I figured out how to reload plugins too, so my commenting did work. I look forward to your next release as well!

300 Jul 27, 2007 19:15

Looks good to me, that validation error is all gone now! The only other problem I'm seeing is between your plugin and the AutoP plugin. It seems to put the <p> tags around the gallery because (I'm speculating) the HTML comment that comes right before. Any ideas on this? I plan to dig into it further later.

301 Jul 27, 2007 20:20

Could you rephrase that? I didn't really understand what you meant...

302 Jul 27, 2007 21:02

v1.2.5.2-final is released.

Changelog:
v1.2.5.2-final; 28/07/2007 @ 00:42 (GMT+08:00)
* Fixed a minor display problem (a incorrect "p" tag was being added), reported by kf_man.
* Updated the image library and scan_dir function so works with the avatars plugin v1.0.0.0-beta.

303 Jul 30, 2007 14:53

Yeah, sorry about that.

With the Auto-P plugin, it sees your HTML comment which credits you with the gallery plugin and it gets confused. I found that putting the comment inside of the gallery div helped a little bit, but it appears to be a little weirdness with the Auto P plugin.

If I put the [gallery] tag right after my paragraph with no space in between, the div doesn't get <p> tags around it, but the HTML comment gets included as part of the paragraph and gets a <br /> tag put before it.

If I put new line between the paragraph and the [gallery] tag, Auto-P wraps the whole div with <p> tags.

Like I said, most likely a problem with the Auto-P plugin and right now it looks fine and validates so I'm not all that worried.

304 Jul 30, 2007 16:49

I've made a post in the bugs forum about this, and I will see what I can do on my side later on. Cheers.

306 Jul 30, 2007 21:58

Hello Balupton,

I'm back again with another question.

The little thumbs in Gallery look awfully blurred (but also in CPG, which I use for a larger website) - I guess because of GD2. So I put ImageMagick into a folder on my webspace. In the config section of CPG I can point to the folder where IM lies in. It works.

However, I couldn't figure out how to tell Gallery not to use the server-installed GD2 anymore, but ImageMagick in my folder instead. Must I re-install it again? Or is it a problem which I should solve in b2eve?

Thanks very much,
Chris

307 Jul 31, 2007 05:15

Hi Chris, using something other than GD2 would require a re-write of my image library I wrote :O, something you could try instead is increase the quality of the thumbnails? So try this:
1) Open up _gallery.php
2) Go to the create_image function
3) Go to the 'small' case
4) Change the 'quality' to 99 or 100.

Hope that helps?

308 Jul 31, 2007 17:54

Thank you for your plugin.

I am a new user to b2evolution, I actually installed it a couple of hours ago on my ispconfig server.

Unfortunately I have problems. I have installed b2evolution 1.10.2 and gallery plugin v1.2.5.2.

When I try to install the gallery plugin, all I get is a blank screen. I have tried reinstall b2evolution to see if I have missed anything and I have read through this big thread but I couldnt find anything.

309 Jul 31, 2007 18:05

Hi Rocky, welcome to b2evolution, and to my plugin :)

There is no need to waste a lot of time reading through the big thread, your best off just posting like you did :) Anything important is listed in the blog post anyway.

Could you pm me the admin details to your b2evo blog, and I will see if I can spot anything. (I can't really do anything about it for this problem without them.).

Cheers.

310 Jul 31, 2007 23:11

That's it. Setting the value to 100 in the "small" section makes a considerable difference. Thanks again for your time and support.

Chris

311 Aug 01, 2007 16:21

hi balupton!

Thanks for your software. I just installed b2evolution and it looks promising.

Now I have a problem to find the download-buttons for all your plugins. Where are they?

312 Aug 01, 2007 21:59

Hi,

I've upgraded the plugin to its final version on b2evo 1.10.2 but now I'm getting this error:

ERROR: Conflicting function versions:
Function [resize]
Original Version [6]
Attempted Version [7]

ERROR: Conflicting function versions:
Function [read_image]
Original Version [3]
Attempted Version [4]

ERROR: Conflicting function versions:
Function [resize_image]
Original Version [2]
Attempted Version [3]

ERROR: Conflicting function versions:
Function [compress_image]
Original Version [3]
Attempted Version [4]

ERROR: Conflicting function versions:
Function [remake_image]
Original Version [7]
Attempted Version [9]

Warning: Cannot modify header information - headers already sent by (output started at .../html/plugins/gallery_plugin/resources/functions/_general.funcs.php:38) in .../html/inc/VIEW/_menutop.php on line 39

I previously unistalled the beta version.
Before installing the final version I also installed the Avatars plugin.

313 Aug 01, 2007 22:04

I have a different question too.

Let's say I hava an Image tha is w=1594 x h=2629 px

I want the thumbnaul to be about 200 px wide and the image, once opened, 760 px and the proportionate height.

How do I achieve that?

314 Aug 02, 2007 07:52

Basarow, all the first posts of my plugins link to their appropriate post in my blog, page 2 of each post contains the download links :)

gcasanova, you must of been one of the first few that downloaded the avatars plugin, I've made a update to it, which you can grab from here:
http://www.balupton.com/blogs/plugins/avatars_plugin_v1.0.1.0-beta.zip

For your question regarding image sizes, there are 3 sizes for images, small (thumbnail), medium (aka preview) and large. Re-size settings for medium and large are customizable in the plugin settings. For small there is a trick here: http://www.balupton.com/blogs/b2evo?p=26&more=1&page=3

315 Aug 02, 2007 09:08

New user of B2evolution and so far really like it.
Struggling to get your plug in to work tho :oops: and im sure I have just missed something silly, run through the CHMOD section and that is all tickety boo. But still get this message:

The installation of the plugin failed.
The media directory is not writeable. You must first run the steps here (rtfm?).

Any help or suggestions would be appreciated.

316 Aug 02, 2007 09:16

seraphym, I just, about 10 minutes ago replied to a user emailing me about the same problem, strange! Anyway, could you pm me the ftp details of your b2evo directory, and your blog admin details, and I will see what I can find.

317 Aug 02, 2007 09:17

balupton wrote:

seraphym, I just about 10 minutes ago replied to a user emailing me about the same problem, strange! Anyway, could you pm me the ftp details of your b2evo directory, and your blog admin details, and I will see what I can find.

lol cheers for the quick response

318 Aug 04, 2007 20:15

Yeah seraphym's ftp client was playing dodgy buggers for him, permissions never set correctly.

Just fill you guys on what is happening, I will release a small update which improves the install experience (well should stop a lot of these pemission errors on install) sometime (code is already done, just need to package it, argh!).

For a better note, I started work on 1.4 last night, as I had nothing better to do, as I just moved out, and no internet, no roommates, and no anything to do :P

It will use the jQuery library, and will be re-written, the user won't notice much, but any devs will notice a shitload.

One of the new features I'm adding is "Themes", so hopefully people can start making themes and they can be downloaded. Also as it will be using jQuery things like this will be possible http://interface.eyecon.ro/demos/carousel.html cool aye? I won't bother doing this, but maybe some other dev might.

Anyway that is me over and out.

320 Aug 07, 2007 20:03

I have two questions.

1. How in the world do I create a Gallery? I can't for the life of me find where to do that.

2. As soon as I installed the Gallery plug-in, my blog stopped working. The admin panel works, but trying to go to the blog gives me an "Operation Aborted" 404 error. Disabled the Gallery plugin, blog works fine...

Note that I don't have any image rendering sotware installed; like GD or ImageMagik.

I just downloaded the recommended version, and I just installed the latest b2Evolution. I've been using b2Evolution it for all of about 2 hours :)

321 Aug 08, 2007 08:58

Hi harpstein,

1. There is a 'Gallery' button added on the write/edit post page, you will notice it.

2. You are the 2nd person to report the blog appearing blank after it has been installed. This could be for a million reasons, and way too hard to trace. It is some incompatability with your server configuration. The new version of the gallery plugin should fix these problems.

For GD, that is an extension that actually comes with PHP5 by default, most hosts have it enabled by default as well. The Gallery Plugin requires the GD library (as having galleries without thumbnails is idoicy). If you don't have the GD library installed you would see a nice error on install.

322 Aug 09, 2007 01:45

As of the problem with the 404 or an endless loading of the blog (think i was the 1st person with this crazy error ^^ ), your consideration that the script of the gallery was loading before all js-files are loaded (too fast loading or somethin') and because of this an error is imho very likely... but how to change this behavior :/
JS is not my world, but is there some possibility to get the JavaScript-part written directly in the blog-pages also into a separate js-file (possible? and more important, will this help maybe? oO ). Because after some thinking around, well... it maybe can help because of the after this again proper loading order :D ? (how i said, only a consideration on this, my knowledge on JS is... ca. nothin' ^.^°° )

Most crazy fact on this error... sometimes it is workin' correctly, other times not. First I encountered this there was only: wtf? O.o

323 Aug 09, 2007 15:45

The reason it works sometimes, is simply because sometimes the js files load in the right order (this is probably also contributed by the use of cache).

Anyway of doing a workaround for this risks compatibility problems, I would just wait 2-3 weeks for the new release. (I will try and have it out extra fast just for you ;))

324 Aug 10, 2007 00:28

baluptin, I love this plugin. Ater making it available to my users for a while I think I'd like to present it differently.

1) Thumbnails a little larger
2) Thumbnails go right to big immages missing out the intermediate or rather the intermediate image is bigger and there is no BIG option

ie just two states - a bigger thumbnail linked to a big pic (say 800 px)

325 Aug 10, 2007 00:35

Thanks for the suggestions, as always I will be taking them into consideration! :)

I think I've already started to build those two things into the new version of the gallery plugin anyway ;)

One new feature of the new version is themes, so themes (different displays etc) can be downloaded and installed for the gallery plugin.

PS. I've tried given little hints, but they haven't seemed to work, but it's balupton with a 'o' not a 'i'... ;)

326 Aug 10, 2007 00:43

i stand corrected with a T :lol:

327 Aug 12, 2007 01:32

Hi Balupton:

I'll try and explain what is happening in my case.

I've installed the plugin with only one problem; it didn't allow me to install unless I dropped a previous database from an earlier version of the plugin.
Done that the plugin installed without any problems.

I then changed the thumbnail size as you explained and it works well.

But here comes the problem. I can make the gallery work but only the medim size preview shows once you press the thumbnail, no legend, no Large option, no save option. Only the right close button.
That happens when outsider tries to see a picture from the gallery.

Stranger is that when you are in the backoffice > posts > complete posts and you press the thumbnail, everything works as it should; from thumbnail to middle size preview with legend and options to see the large picture or close and then if you click on large you get the save option...

Why do you think this is happening? Coult it be related to a specific skin?

I'm going crazy trying to make it work as it should but I'm completely lost by now.

The skin I'm using is the basin.

329 Aug 12, 2007 14:04

Balupton, I sent you a PM.

330 Aug 13, 2007 09:45

balupton wrote:

Hi harpstein,

1. There is a 'Gallery' button added on the write/edit post page, you will notice it.

2. You are the 2nd person to report the blog appearing blank after it has been installed. This could be for a million reasons, and way too hard to trace. It is some incompatability with your server configuration. The new version of the gallery plugin should fix these problems.

I get the same error with my blog. But only with Internet Explorer (6.0), Firefox works great.

I found this link http://forums.b2evolution.net/viewtopic.php?t=12270&highlight=internet+explorer+aborted&sid=924918858baf34ff25434658a059b608
But in my _main.php there is no base tag anymore. Maybe somewhere in Gallery Plugin?

BS

331 Aug 15, 2007 12:33

1.10.2

since moving to a new host the Gallery plugin fails to upload images.

B2 also presents an error when trying to upload an image through the regular file uploader

332 Aug 15, 2007 15:29

sorry false alarm. Was file permissions error for general uploads and for gallery han not created gallery_plugin folder in media directory. Trouble is whe moving hosts one forgets the hackage and configuring of months ago

333 Aug 15, 2007 22:15

Status update on the new version of the gallery plugin.

I'm umming and arring over whether to call it a v1.5 or v2.0 release, guess it will be a surprise, let's just give it the codename of... "Horizon".

It is becoming a complete re-write hence the versioning ponder.

Anyway here are the features (bold means implemented, italics means currently under construction):
1) Themes, themes will be (downloadable) extensions
2) Security, it will now work with the b2evo database for permissions
3) Galleries and Images are now separate (So galleries can now have titles and descriptions)
4) A all new and improved manager, using the jQuery library. (and hopefully drag n' drop for images to order them!)
5) Individual settings for each image size type (small medium large) and the option to use a image size or not.
6) Better installation experience
7) Better error reporting
8) Better integration with b2evolution
9) A Gallery Manager! (So that you can view all your galleries!)
10) Upgrade support for the 1.2.5 releases.
11) Support for any GD2 supported image type (not just jpeg!)
12) Multi-Lingual!!!
13) Plugins...
14) A wordpress plugin

Note, not all features will make it into "Horizon". Here will be a roadmap:
1) Horizon (Dawn) - Initial beta for feedback
2) Horizon (Sunrise) - Stable beta, possible replacement for 1.2.5
3) Horizon (Dusk) - Includes final set of features, beta
4) Horizon (Sunset) - Stable beta, possible replacement for 1.2.5 and replacement for Horizon (Sunrise).
5) Horizon - Final and replacement.

334 Aug 15, 2007 22:31

love the naming convention. I'd be happy to beta test on a spare B2 Evo if you wish

335 Aug 15, 2007 22:35

Oh BTW might it be possible to use this for a "gallery" of just ONE pic - I know you can do this now by just uploading one pic but it would be cool if the thumbnail pic was right aligned with text flowing round it and you just clicked and go the big pic

336 Aug 15, 2007 22:41

love the naming convention. I'd be happy to beta test on a spare B2 Evo if you wish

Cheers :) Been wanting to use that naming convention for years, but this is the first time I've gotten a chance! Cool, well all the betas will be publicly available (Dawn and Dusk).

A good bloke. wrote:

Oh BTW might it be possible to use this for a "gallery" of just ONE pic - I know you can do this now by just uploading one pic but it would be cool if the thumbnail pic was right aligned with text flowing round it and you just clicked and go the big pic

Hrmm, maybe I could look into attaching individual gallery images into the post, instead of just galleries? Not the same thing, but is related.

337 Aug 17, 2007 01:09

Wow the new version is coming along extremely well. Could anyone that is interested in beta testing (proper beta testing, so running through test scenarios on mostly unusable releases) pm or email (balupton@gmail.com) me with your name, email, and site.

Right now I need testers to test the upgrade functionality, so make a backup of your media dir, your mysql database, and then try the upgrade, if it fails restore your backups. There won't be a usable release for a week or two, but have people test this stuff puts my time into developing instead of testing, so it would make everything go ALOT faster.

338 Aug 18, 2007 14:34

i've uploaded the gallery mod to an updated version of b2e and i get the following message when trying to install:

The installation of the plugin failed.
The media directory is not writeable. You must first run the steps here (rtfm?).

my media folders are set to the correct permissions, so i dont know what's gone wrong.

any ideas?

339 Aug 18, 2007 19:20

there is no other reason why you would get that error, everyone says that, but it always turns out it is indeed a permissions problem, some apps (including some cpanel file managers) struggle with setting permissions.

sorry but i'm sick of hearing the same thing again and again.

340 Aug 18, 2007 20:25

balupton wrote:

there is no other reason why you would get that error, everyone says that, but it always turns out it is indeed a permissions problem, some apps (including some cpanel file managers) struggle with setting permissions.

sorry but i'm sick of hearing the same thing again and again.

please believe, if i could see any reason why the error would come up, i wouldnt have posted asking for ideas.

the site i'm testing, is only a dummy site, so maybe i'll do a fresh install with 1.10 and see if that makes a difference.

i asked to see if i could save myself the hassle.

341 Aug 18, 2007 21:06

i'm going to turn into your worst nightmare.

i done a fresh install, and i got the gallery mod to install.

however, this is what happens when i try to use it.

1. make new post and click gallery

2. create new gallery (notice close button hiding below)

3. i have to then click 'gallery' again for the next step, and opt for 'edit existing gallery'

4. uploading images goes fine, but press 'save changes' and

5. nothing happens.

---

what have i done wrong this time round!?

342 Aug 19, 2007 02:51

Sorry for my reply yesterday. Yesterday was not a good day for me, and I read your post at a pretty bad moment.

If you could pm me your blog admin details, and probably your ftp info as well, I will look into it and fix it all up for you :)

Edit: Looking at the screenshot, I think the last problem is most probably a incompatibility with the TinyMCE plugin. Which browser and b2evo version are you using?

343 Aug 19, 2007 12:42

not a problem, i've been having a bad month, so i fully understand.

i disabled the tiny mce plugin, and it works fine. i just need to adjust the settings and i'll be ready to put everything on my main site.

thanks for the suggestion and help, and the plugin.

344 Aug 19, 2007 12:56

me again!

the plugin is great, saved me a crap load of time playing about with image sizes and uploads etc.

however!!!

i've been reading the thread backwards, and got to about page 18 and didnt find what i'm about to ask.

is there a way to disable the download image function?

as a 'photographer' i dont really want people running away with my pictures. I was thinking of putting a no-right click thing on the site, but i doubt that will work with this plugin.

Also, is there a way to disable the preview? so it goes from thumbnail to full size?

thanks!

345 Aug 19, 2007 13:27

Hi

All right.. deleted the evo-folder and reinstalled all with 8M memory_limit..
now it works everything..
Thank you for this plugin!

quote from Tuli.

I am having the same problem, with a memory error. Where is this folder please. As I cant see it in the gallery folders

Thanks

346 Aug 19, 2007 19:15

fts, http://manual.b2evolution.net/System_requirements#memory_limit

kingkongballs, http://www.balupton.com/blogs/b2evo?p=26&more=1&page=3 for the get rid of previews (can't remember whether it worked or not), and for getting rid of the save link, line 520 of /gallery_plugin/includes/common/gallerylightbox/js/gallerylightbox.js should look like

		} else if ( imageArray[activeImage][2] !== false )  {
			Element.show('saveLink');
		}

change to

		} else if ( imageArray[activeImage][2] !== false )  {
			// Element.show('saveLink');
		}

347 Aug 19, 2007 19:48

thanks!

i'll make the edit for the save link stuff.
i checked out the link you provided and didnt see anything in there about disabling the preview, but i'll have a play about and see if i can figure it out.

once again, thanks for your help!

348 Aug 20, 2007 11:03

Hi Balupton,

I am having this same problem

gcasanova wrote:

But here comes the problem. I can make the gallery work but only the medim size preview shows once you press the thumbnail, no legend, no Large option, no save option. Only the right close button.
That happens when outsider tries to see a picture from the gallery.

Stranger is that when you are in the backoffice > posts > complete posts and you press the thumbnail, everything works as it should; from thumbnail to middle size preview with legend and options to see the large picture or close and then if you click on large you get the save option...

In other words, in the backoffice the lightboc pops up beautifully but when a user accesses the thumbnail directly, the medium image pops up in a separate window upper left.

Here is a permalink:

http://www.thechumslick.com/index.php/2007/08/19/the_shark_party_never_stops

Here is the regular link: www.thechumslick.com

I am using the latest version of B2evo. As far as I know all my permissions are correct.

Oh, and I did this: "backoffice -> tools -> delete pre-rendered cache." to no avail.

Thanks for any advice.

--Sharky

349 Aug 20, 2007 19:04

Are you running the lightbox plugin as well?

350 Aug 20, 2007 20:56

It isn't in my plugin table.

Should I download and install Lightbox?

Why would it work in my backoffice and not in public view?

Strange.

Again, thanks for the help.

Sharky

351 Aug 21, 2007 21:09

Nah I asked because their is a incompatibility I suspect in the lightbox plugin's side which causes similar issues, could you post back (or pm me) a link to the blog that isn't working, I should be able to spot the problem right away then.

353 Aug 22, 2007 09:15

Hi Balupton,

I'm a new user of your plugin. I like the plugin very much but I'm currently encountering some annoyances. Would greatly appreciate your help.

I've attached a gallery to the post but when I click on the images to bring out the medium sized images, as I advance the images by clicking on "Next", I see medium sized images from other galleries too!

The thumbnails are fine, only the pictures from that particular gallery are displayed.

You can have a look at it on
http://www.silverlune.com/blogs/dory.php

However it seems to function okay when you click on the specific permalink.
http://www.silverlune.com/blogs/dory.php?title=ryan_and_grandma_at_willen_lake&more=1&c=1&tb=1&pb=1

It's really strange. Please help!

I'm using plugin v.1.2.5.2-final and b2evolution 1.10.2.

Cheers,
Dory

354 Aug 22, 2007 10:12

Hrmm I thought I fixed that, seems like I didn't... I will have a fix out in a few days.

355 Aug 22, 2007 11:14

Sharky, is there a

<?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>

in your skin's head tag?

356 Aug 22, 2007 15:50

There is now...and it works. Thanks much, Balupton for scripting an awesome plugin with awesome tech support.

Now the whole world can see shark bites the way nature intended, lol.

Sharky

357 Aug 27, 2007 16:41

I've got a couple more questions.

My blog is pretty photo intensive and most people viewing it can't be bothered to click on the large to view the full scale images.

Is it possible to eliminate the medium sized images altogether? And have people just click on the thumbnails and view the large images?

Currently the medium sized images are maxed at 400(W) x 250(H)? I can't seem to get them any larger.

Also, photos which are of landscape orientation turn out okay but photos of portrait orientation turn out a wee bit small, which is quite disappointing. Is there anything you can do to make photos of portrait orientation take the height of 400 instead of 250?

Appreciate your help and comments.

358 Aug 27, 2007 16:53

Eliminating medium size all together is coming in the next release. The size settings can be configured in the plugins settings (click the plugin's name in the plugins listing).

I think by default it is 600x400 with 'area' resizing, so that means resize it appropriately so that it fits within 600x400. So just change that to something higher and it should be good.

359 Aug 27, 2007 22:54

Hey balupton,

AWESOME plugin. I'm using it to setup a commercial site for a friend of mine that does custom chainmail work. I was wondering if/how to move the gallery to be above the body of the post, as we're using photos of the peices to grab attention.

Site here: http://worldinchains.com/index.php

Thanks!

-Telarus, KSC

360 Aug 27, 2007 23:09

Just move the [evo_gallery] tag to wherever you want the gallery to be :) (Remember to delete the post cache in "tools").

361 Aug 27, 2007 23:44

Hah! How simple, thanks!
(didn't see the tag @ first, as it appended it to my last line, and I had to scroll to the right a bunch). Updated the credits to link to your site. THANKS AGAIN!

362 Aug 28, 2007 07:23

balupton wrote:

I think by default it is 600x400 with 'area' resizing, so that means resize it appropriately so that it fits within 600x400. So just change that to something higher and it should be good.

I'm definitely looking forward to the next release. :)

Sorry if I wasn't more explicit but I was refering to the Preview Width and Height (medium sized images) not Optimum Width and Height (actual sized images).

The Preview Width and Height is maxed at 400 (W) x 250 (H). I can't enter in anything larger. :( Is there any reason for this?

When I enter values that are smaller, say 200(W) x 125(H) the Preview Width and Height stays at 400(W) x 250(H). Are the changes supposed to take place on-the-fly?

Thanks for help.

363 Aug 28, 2007 08:43

Open up _gallery.plugin.php around line 100 you will see

			'prev_width' => array(
				'label' => $this->T_('Preview Width'),
				'type' => 'integer',
				'note' => $this->T_('Pixels').'.',
				'defaultvalue' => '400',
				'size' => 3,
				'maxlength' => 3,
				'valid_range' => array( 'min' => 48, 'max' => 400 ),
			),
				
			'prev_height' => array(
				'label' => $this->T_('Preview Height'),
				'type' => 'integer',
				'note' => $this->T_('Pixels.'),
				'defaultvalue' => '250',
				'size' => 3,
				'maxlength' => 3,
				'valid_range' => array( 'min' => 48, 'max' => 250 ),
			),
			

change the valid_range to what you require.

It's maxed out at 400x250 as I never intended it to go higher, they are preview/medium images ;)

364 Aug 28, 2007 23:51

Thank you very much for that tip. :)

Cheers,
Dory

365 Aug 31, 2007 09:31

Im getting an error when I create a gallery, and all I found in this post was about some fix, what I couldnt find, or should be or are in the latest version. I have installed the 1.2.5.2final with b2evolution-1.10.2-2007-06-08 and Im getting this :

arning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/revista/public_html/blog/blogs/plugins/_gallery.php on line 665

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/revista/public_html/blog/blogs/plugins/_gallery.php on line 665

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/revista/public_html/blog/blogs/plugins/_gallery.php on line 668

please help me
thank you

366 Sep 01, 2007 09:52

Fatal error: Undefined class name 'galleryembed' in /public_html/blogs/plugins/gallery2_plugin/_gallery2.plugin.php on line 94

I get this error after I enable the plugin, I created a file and named it embed.php to see what it would do and this is what happened.

Any clue?

367 Sep 02, 2007 11:14

Hi!

The Gallery Plugin is awesome! Thanks for that.

The plugin does not seem to work with IE7 though. The backoffice shows no uploading forms after clicking the gallery-button and on the blog the pic shows up on the left side of the screen and not in the lightbox.
I tried to update the plugins and tested the plugin on several PC's and laptops, but they all fail whenever IE7 is used. Other browsers like IE6, Firefox seem to handle the js well and indeed the magic works...

Also the browser shows 'error on page' in the statusbar whenever the gallery button is pressed. Hope this info will help to improve the plugin. Keep up the great work!

Greetz, Dennis

368 Sep 06, 2007 01:33

Hi Balupton,

Is there a way to change the Gallery's configuration so that it accepts non-english characters such as ñ, ó, á...?

369 Sep 10, 2007 21:10

Woah, lot of replies I was never notified about (or slipped past me).

Lauro_28, where does your b2evo directory reside, in /blog/ or /blog/blogs/ and does /blog/blogs/ exist?

ChrisR, wrong plugin, the "Gallery 2" plugin is made by someone else, and serves a entirely different purpose.

dvav, blog url where it stuff up in ie7 so I can check it out.

gcasanova, coming in the new version as well as localization.

370 Sep 10, 2007 21:42

Hi,

I just install this plugin in b2 1.10.2 (Gallery Plugin version 1.2.5.2-final).

No error in install, the buttom appears in write page, but not happen when click in. Permissions folders are OK too.

What can be wrong?

Tested in Firefox 2.0.0.6 and Internet Explorer 7.

371 Sep 10, 2007 22:36

What other plugins do you have installed?

372 Sep 10, 2007 22:44

Hi,

first of all, thanks for the quick reply.

attached de list

373 Sep 10, 2007 23:05

Hrmmm, in your firefox error console (Tools -> Error Console) anything pop up when you access the write/edit page, and/or click the button?

374 Sep 10, 2007 23:08

Yes :D

This:


Erro: effect.element.setOpacity(effect.options.from) has no properties
Arquivo-fonte: http://www.highlanderbr.com/site/plugins/gallery_plugin/includes/common/scriptaculous/effects.js
Linha: 575

375 Sep 10, 2007 23:20

Hrmmm... you doing any dodgy tricks in firefox, like changing your user agent?

376 Sep 10, 2007 23:31

balupton wrote:

Hrmmm... you doing any dodgy tricks in firefox, like changing your user agent?

No. maybe any extension?

Anyway, I install Opera now, and works fine...is my browser (firefox) error.

I will try in other computer, with a default firefox.

377 Sep 10, 2007 23:38

No. maybe any extension?
-> Yeah, I use a few extensions for dev that do some pretty odd stuff, and sometimes I forget to turn one of them off (user agent) so firefox pretends to be ie7 and i scratch my head for why the hell I am getting that error ;)

378 Sep 10, 2007 23:56

I try with a clear instalation of Firefox 2.0.0.6, and dont work too.

Just works in Opera. Stranger. 8|

379 Sep 11, 2007 00:17

No idea. The new version could fix this, as it uses a different js library.

381 Sep 11, 2007 11:28

I'd really like to go from thumbnail to maximised view (800 px) without the intermediate. I understand the new version will allow this but can I override this with a hack in the current one. It allows me to enter 800px in the intermediate field but will not allow me to complete the action stipulating a max of 400px

382 Sep 11, 2007 17:23

it should be just as easy as changing line 565 of _gallery.php from

			case 'enhanced':
				$r .=
				'<a '.
					'href="'.$image['image_medium_url'].'" '.
					'rel="lightbox[gallery_'.$this->gallery_count.']" '.
					'title="'.
						htmlentities($image['image_title']).
						( empty($image['image_description'])
							? '' 
							: ': '.htmlentities($image['image_description'])
						).'" >'.
				'<img class="image" './*height="48" '.*/
					'src="'.$image['image_small_url'].'" '.
					'alt="" />'.
				'</a>';
				break;

to

			case 'enhanced':
				$r .=
				'<a '.
					'href="'.$image['image_large_url'].'" '.
					'rel="lightbox[gallery_'.$this->gallery_count.']" '.
					'title="'.
						htmlentities($image['image_title']).
						( empty($image['image_description'])
							? '' 
							: ': '.htmlentities($image['image_description'])
						).'" >'.
				'<img class="image" './*height="48" '.*/
					'src="'.$image['image_small_url'].'" '.
					'alt="" />'.
				'</a>';
				break;

383 Sep 11, 2007 23:33

I detect no differences in the two pieces of code above.

Also I see nothing that would stop the intermediate image from being restricted to 400px

384 Sep 11, 2007 23:36

@stevet
The first href line in the second code block....
"image_large_url"

385 Sep 11, 2007 23:39

aha - it's an eyesight/obsevation test :lol:

386 Sep 11, 2007 23:48

altered the code -- nothing happens

388 Sep 12, 2007 13:02

sorry if this has been asked already, but is it possible to make it a Zip file gallery?

Becourse I'll be doing web design and I'd like for people to have a gallery of their designs

389 Sep 13, 2007 02:44

I'm having a small problem whenever I try to make a new gallery; instead of bringing up the pop-up after creating a new gallery, it doesn't do anything and I have to submit my entire post, then come back and edit the gallery in order to put pictures in. ><; Kind of bothersome.

Is there a way to fix this? I edited a few files so that I could use the original Lightbox 2 javascript (I like the look better and really didn't need medium/large images), but I don't think that would've affected anything in the gallery submitting section of the script...

Here's a post of mine with the gallery at the bottom.

http://scrvtch.com/blog/index.php/general/2007/09/01/ragnarok_online_2

390 Sep 14, 2007 22:15

Its possible make the picture (full size, not the preview) open in a new window (when click)?

391 Sep 15, 2007 21:08

I'm not sure what i'm doing wrong here .
This plugin refuses to install.
Keeps saying that the media directory is unwriteable but its chmod'ed to 777.
I can attach files fine to posts normally (which are uploaded to the same place).
I'm currently running 1.10 b2e.
Do I need to edit a config file somewhere?, the only thing that's different in my installation from standard is the media dir location is in media/images instead of just media...however both folders are chmodded to 777.

Can anyone help? , thanks.

392 Sep 15, 2007 21:47

annamoe, try this http://manual.b2evolution.net/Debugging#Permissions

HighlanderBR, see the hack I just mentioned to stevet.

scrvtch, in firefox (assuming you are using firefox) do any errors show up in the error console? Also regarding the lightbox change you should also make the change I mentioned to stevet.

Zircon, do you mean have the ability for the user to download the whole gallery in a .zip file?

393 Sep 15, 2007 22:10

thanks balupton, heres the output, hope it helps.

Current script owner (irrelevant): muireadach
Process user:apache
Dirs:

Effective perms are highlighted/bold.
Green user and groupnames can write.
Brown user and groupnames can read.
Red user and groupnames cannot read/write.

* /home/muireadach/domains/annamoe.net/public_html/journal/media/:
777 / muireadach/recruit1
o /home/muireadach/domains/annamoe.net/public_html/journal/media/users/:
755 / muireadach/recruit1
o /home/muireadach/domains/annamoe.net/public_html/journal/media/blogs/:
777 / muireadach/recruit1
o /home/muireadach/domains/annamoe.net/public_html/journal/media/images/:
777 / muireadach/recruit1

394 Sep 15, 2007 22:17

What is the exact error(s) you are getting?

395 Sep 15, 2007 22:29

balupton wrote:

What is the exact error(s) you are getting?

Well thats the frustraiting thing -

The installation of the plugin failed.
The media directory is not writeable. You must first run the steps here (rtfm?).

I'm thinking that the upgrade from 1.9 to 1.10 must have screwed something up. I'm gonna redo it.

396 Sep 16, 2007 03:57

I can't get it to install either, same problem. The media dir is set up correctly, the plugin just flat out refuses to install.

397 Sep 16, 2007 12:02

GPMoD Baka-chan wrote:

I can't get it to install either, same problem. The media dir is set up correctly, the plugin just flat out refuses to install.

I have the same problem here. My installation is a clean version 1.10.2 right out of the box with the Adsense plugin added.
media dir is chmodded 777 -R.

The error I receive is:
The installation of the plugin failed.
The media directory is not writeable. You must first run the steps here (rtfm?).

When I look in my (webservers)error-logfiles there is no error reported. Any ideas?

398 Sep 17, 2007 21:29

Jackthe wrote:

GPMoD Baka-chan wrote:

I can't get it to install either, same problem. The media dir is set up correctly, the plugin just flat out refuses to install.

I have the same problem here. My installation is a clean version 1.10.2 right out of the box with the Adsense plugin added.
media dir is chmodded 777 -R.

The error I receive is:
The installation of the plugin failed.
The media directory is not writeable. You must first run the steps here (rtfm?).

When I look in my (webservers)error-logfiles there is no error reported. Any ideas?

I clean installed - deleted all files , and still getting this error.
However I'm now thinking this may be a problem in b2e 1.10.2 as I notice its now complaining about the media directory not being writeable in "files" in the config page also.
Didnt do this in the previous version , something very screwy here.

399 Sep 17, 2007 21:46

A permission error is more likely a problem with the host/server and my checks. I will release a update in less than 2 weeks that should reduce this problem.

400 Sep 17, 2007 23:04

balupton,

Can you help with this?

After uploading my images and trying to save teh post, I getb a "stack overflow at line 500" error, and the gallery does not show up when the post re-publishes.

thanks for all your work on a great plugin, BTW; will really do the trick when I get the wrinkles out.

401 Sep 18, 2007 00:19

Can you take a screenshot of the error for me?

402 Sep 18, 2007 17:25

:D :D :D
I posted this blog on the forum and subsequently found this Gallery plugin that seems to do what I want. How do I get my users to be able to add respond to blogs adding pictures and comments?

Previous blog

"Please can someone assit me in getting to grips with b2evolution. I have designed a website with PHP, MySQL and Apache 2.2.4

I am trying to incorporate a blog site within the website that users can add pictures and comments. As the admin of the blog site i can upload a picture but I dont know how to set up for users to add pictures as well.

I have also downloaded gallery 2 and am trying to figure out how the two work together. I find the help functions confusing as the tutorials are vague and jump from one link to another so its difficult to keep track.

Is it possible and how do I go about it?"

403 Sep 23, 2007 06:28

The installation of the plugin failed.
The media directory is not writeable. You must first run the steps here (rtfm?).

OKAY, I see a few have this problem, In fact I had this problem the first time too...

So I found the error message, and in the install section, it looks to see if the INDEX.HTML in the media directory is writeable, not the directory itself...

* to fix the problem..... CHMOD your "index.html" file to 777.

done.

404 Sep 24, 2007 01:40

jreyven, thanks for that, others are reporting it works as well. Makes sense, as I do check the index.html to see if it is writeable, and didn't occur to me as a problem as my ftp client sets all permissions of the files in the directory as the same permissions as their directory.

405 Sep 24, 2007 05:34

For anyone that is interested, I will be having a "conference" (more like just a time were people can see me do my stuff) on Thursday. So if you want to get help, suggest something, provide feedback, that will be a great time to do it. Or if you want to learn how to develop plugins it will be a great time to learn as well, as I can walk you through the whole process.

More info here: http://curtinedu.facebook.com/event.php?eid=5620924675

406 Sep 24, 2007 11:52

I will try to be there, though I don't know if I've calculated the GMT time correctly.

407 Sep 24, 2007 18:02

balupton wrote:

Can you take a screenshot of the error for me?

http://www.goupstate.us/b2error.jpg

I get this error in IE7. When I try to post in Firefox, I don't get an error message, but none of my post text saves. This happens whether my post has a gallery or not. But it only happens when the Gallery plugin is enabled.

Running 1.9.3.

408 Sep 26, 2007 16:34

I have no idea what could cause that, or why it happened. In the new version I will be using a different (b2evo officially supported) js/effects framework, which will probably (well at least I hope so) fix that problem. Besides that I can't help anymore...

409 Sep 28, 2007 02:27

Is Gallery compatible with the 2.x versions? I'm asking because I had it implemented in 1.10.x and it worked well, and I'm looking at going to the 2.x version with the Photoblog skin for some photoblogs, but on my test blog it doesn't seem to be functioning properly. It shows to be installed, activated, and the Gallery button shows up in the editor, but when you click the button, nothing happens, so I'm wondering if I should just wait for urGallery or if it is possible to make the current plugin version work in the 2.x stream?

Thanks.

410 Sep 28, 2007 06:14

I still have not even looked at the b2evo 2.x versions, and don't plan to either.

411 Sep 28, 2007 06:33

Hello,

First of all, let me say I love this plugin, when I disable others to get it to work.

In the attempt to make posting to our blog easy enough for my wife to use I believe I have run across an incompatibility between Gallery and TinyMCE/FCKEditor. I have tried both, and if either is enabled, Gallery does not work.

The error occurs when I click the "Perform" button.

Firefox complains:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://mysite.com/blog/plugins/gallery_plugin/includes/common/renderers/admin.js :: renderer_attach :: line 25" data: no]

Internet Explorer complains "Error on Paege:"
Line: 16
Char: 2
Error: Object doesn't support this property or method
Code: 0

Any suggestions?

Thanks

412 Sep 28, 2007 06:46

Yeah, they are incompatible, I will add a fix to my todo list. :)

413 Sep 30, 2007 14:10

hi,
i installed gallery plugin v1.2.5.2-final for my blog and found bug in function total_images. here is the corrected version:


	function total_images( $gallery_id )
	{	// Return the how many images in a gallery		
		$query = 'SELECT count(*) as num_rows FROM '.$this->db['table'].' WHERE gallery_id = \''.$gallery_id.'\'';
		$result = mysql_query($query);
		$row = mysql_fetch_assoc($result);
		return $row["num_rows"];	
	}

because my hosting is using safe_mode=on, i had a lot of troubles to make it running. i had to write my own function for creating directories using ftp.

i have some other hints:

    would it be possible to display images from all galleries? could be the names of galleries not random generated number but some name (given by the user)? could be the images from the gallery be reused in the posts =to appear in the file manager (after clicking "Files" button) [/list:u] but anyway, thanks for writing the plugin. karel

414 Sep 30, 2007 19:26

Thanks for that Karel :)

for your requests:
1. Will be in the new version.
2. Already implemented in the new version.
3. Will be in the new version.

For a status update for the new version, it is coming along nicely :) I've just done a lot of work on the skinning and events system :) Next steps are to rewrite the UI for the new javascript framework, and then do any touchups, and make a release. After that, then all the new features start coming, and this is the easy bit and fun part :-)

If any developers out there have experience with jQuery, I would love to get in contact with you.

415 Sep 30, 2007 19:30

balupton wrote:

If any developers out there have experience with jQuery, I would love to get in contact with you.

Danny's the man you want to speak to ;)

¥

416 Sep 30, 2007 19:52

thanks for quick reply, is there any cvs where i could see new functions?

btw why dont you use the DB class from b2evolution?

karel

417 Sep 30, 2007 20:00

I stay away from b2evolution as much as I can... I have also developed my own db interface and resource library, which I may include in future release, but the more the plugin is less dependent on things the better as it becomes more portable.

Right now the new version is not usable, but if you are thinking of helping out with dev, or extending it via plugins or skins I'll be happy to zip something up for you.

418 Oct 01, 2007 11:40

balupton this is an absolutely fabulous plugin. Thank you so very much.

I have an issue though. It works well in the backoffice and to a degree on the actual blog except for calling the lightbox. That is the mid sized image opens open as a new window, not in lightbox.

Here's the thing; I create all my blogs in B2evolution as a stub. Could you point me in the direction of the code I should be adding to the header of my stub files in order to call the js file. I have gone through this rather long thread a few times and missed it if the answer is there - so apologies in advance ........ pity the thread isn't searchable.

Thanks.

419 Oct 01, 2007 12:24

Great plugin.

It doesn't seems to work in IE6 with the uneven_warm skin.

operation aborted.

IE7, Firefox and Opera works fine

Is there someone who knows a solution?

421 Oct 01, 2007 14:30

obtuse, as long as your skin has this in the header

	<?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>

it should be good.

jonesy, can you provide a link to a place where I can see the problem first hand and a place where I can download that skin?

kaj, Expect something in your mailbox this week :-)

422 Oct 01, 2007 20:52

Balupton thanx,

The code was too far down. I put it right beneath this code:
<?php skin_content_meta(); /* Charset for static pages */ ?>

now it works perfectly.

the link for the skin is here:
http://skins.b2evolution.net/dl192/uneven_warm.zip
Now I see the skin is for 1.9, maybe that was the problem.

thank again :lol:

grtz Jonesy

423 Oct 01, 2007 21:35

Glad to here :)

Ok, I've just sent out a email to people that have offered to beta test the new version. If you didn't get it, email me at balupton@gmail.com and I will forward you a copy of the email.

425 Oct 02, 2007 01:45

balupton wrote:

obtuse, as long as your skin has this in the header

	<?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>

it should be good.

Thanks for the quick reply balupton. I don't use skins (though I have tested it and it would work well if I was) so have but the line in the header of each of my stubs.

Neither IE or Firefox like it. I get these two errors in the firefox error console:

Error: Object.extend is not a function
Source File: /plugins/gallery_plugin/includes/common/gallerylightbox/js/gallerylightbox.js
Line: 61

setInnerHTML: function(element,content) { element = $(element);
element.innerHTML = content;
}

and

Error: Prototype is not defined
Source File: /plugins/gallery_plugin/includes/common/scriptaculous/effects.js
Line: 147

/* ------------- transitions ------------- */

Effect.Transitions = {
linear: Prototype.K, sinoidal: function(pos) {
return (-Math.cos(pos*Math.PI)/2) + 0.5;
},

Has anyone had this work successfully with stub files?

426 Oct 02, 2007 02:09

Is there a link where I can see the error first hand?

428 Oct 02, 2007 02:34

Ok, the scriptaculous.js file is loading before the prototype.js file, so try this:
in _gallery.plugin.php change around line 451 from:

			// The Scriptaculous library
			if ( typeof(Scriptaculous) === 'undefined' )
			{	// 
				e = document.createElement('script');
				e.type = 'text/javascript';
				e.src = <?php echo $this->code; ?>_common_includes+'scriptaculous/prototype.js'; 
				document.getElementsByTagName('head')[0].appendChild(e);
				
				e = document.createElement('script');
				e.type = 'text/javascript';
				e.src = <?php echo $this->code; ?>_common_includes+'scriptaculous/scriptaculous.js?load=effects'; 
				document.getElementsByTagName('head')[0].appendChild(e);
			}


to

			// The Scriptaculous library
			if ( typeof(Scriptaculous) === 'undefined' )
			{	// 
				e = document.createElement('script');
				e.type = 'text/javascript';
				e.src = <?php echo $this->code; ?>_common_includes+'scriptaculous/prototype.js'; 
				document.getElementsByTagName('head')[0].appendChild(e);
				while ( typeof(Prototype) === 'undefined' ) { }
				e = document.createElement('script');
				e.type = 'text/javascript';
				e.src = <?php echo $this->code; ?>_common_includes+'scriptaculous/scriptaculous.js?load=effects'; 
				document.getElementsByTagName('head')[0].appendChild(e);
			}

429 Oct 02, 2007 02:59

Yes, that did the trick. Thank you very much.

430 Oct 02, 2007 03:08

Great that is a common problem that sleep deprivation just fixed!

431 Oct 02, 2007 06:21

unfortunately I now have a 'script causing the browsers to be non reponsive' in the back office. I've had to disable the gallery plugin for the time being.

Pity, it's a great plugin. I'll see if I can sort it all out at a less busy time.

Thanks for your assistance.

432 Oct 03, 2007 16:11

Yeah that would be the change as well, strange, as that means protoype never loaded... Hopefully the new framework fixes this, but if the new framework doesn't I will definitely look into a fix for this type of problem...

Also a question for everyone? Do you plan to move to b2evo v2, and if so, when? - I don't plan on ever moving, but if there is enough demand for it, I will see if I will release a version of gallery for a stable/final version of b2evo v2.

433 Oct 03, 2007 23:39

Still need to check, if the fix works for me - but no time at the moment. Will tell as soon as i'm ready to test the fix (site not finish loading because of javascript-error ^.^ ).
As on the question about b2evo v2 - well, can't really say for me, because it depends if it's easy to use as an upgrade from heavily modified b2evo v1.10-blog (and some more facts, as usability and new features (do i need an upgrade? and so on)) :D

434 Oct 04, 2007 07:01

Getting spammed on my error logs for the site with

public_html/blogs/plugins/gallery_plugin/includes/lightbox/css/lightbox_ie.css

which doesn't exist. There a quick fix? :roll:

435 Oct 04, 2007 09:23

Angels Sin, cheers.

ChrisR, just make a empty css document (so notepad, save as lightbox_ie.css) and then up it to that location...

437 Oct 05, 2007 16:17

Error in IE6 and IE7 after hitting the perfom-button

Line: 16
Char: 2
Error: Object doesn't support this property of method
Code: 0
Url: http://bob.jonesy.nl/admin.php/blog=2

In firefox it works fine

Where do I need to look for?

438 Oct 07, 2007 11:50

Hi there!

Due to some security limitations on my server i can't use passing the encoded URI in the URL. Following the "save" link on a gallery image does not work.

How can i change the part of the save-image-link to give a direct link to the image?

I think this is the part:


		$('saveLink').onclick = function() {
			document.location = gallery_url+'image.php?loc='+encodeURIComponent(Element.getSrc('lightboxImage'));
			return false;
		}

Many thanks. BTW using the actual stable of b2evo & gallery plugin.

439 Oct 07, 2007 16:48

I have recently installed the gallery plugin, and have had a lot of trouble with getting it to work but after a lot of reading on this forum I finally got the plugin installed so that it appears under "write" in b2evo. However, nothing happens when i click Perform and want to create a new gallery.

I'm using firefox 2 on a mac. I have the newest version of b2evo & gallery plugin.

(Just tried it on safari, which seems to work at first. The popup window appears and I can upload images, but they don't appear when it finishes - very weird. I have tjecked my server, and the folder for the galleryalbum has been created but no pictures in it.)

Could you please take some of your precious time, and help a man in need?

Thanks for making such an important plugin. That looks great with lightbox and everything.

440 Oct 13, 2007 21:42

Hi Balumpton,

I haven't had a problem in a while.

I tried to call up my site on my E7 computer (I mainly use FF) and I'm getting these notices at the top of the screen that screw up the entire skin of the site.

Notice: Undefined index: HTTP_USER_AGENT in /home/summerof/public_html/thechumslick/plugins/gallery_plugin/resources/variables/_browsers.var.php on line 12

Notice: Undefined index: HTTP_USER_AGENT in /home/summerof/public_html/thechumslick/plugins/gallery_plugin/resources/variables/_browsers.var.php on line 26

Again, this does not happen in FF,

Also, if I switch over to one of my other machines with E& it does not happen either.

If you need I can upload a screenshot, just let me know.

Thanks in advance,

Sharky

Here is a link:

www.thechumslick.com

441 Oct 13, 2007 23:30

Sharky, change the contents of that file to:

<?php

	$GLOBALS['browsers'] = array(
		'IE' => false,
		'FF' => false,
		'O' => false,
		'Other' => false
	);
	
	global $browsers;
	
	$browsers['browser'] = $h_u_a = $_SERVER['HTTP_USER_AGENT'];
	
	if( strstr($h_u_a,'MSIE') )
		$browsers['IE']	= ( strstr($h_u_a,'MSIE 7') )	? 7 : 6;
			
	elseif ( strstr($h_u_a,'Firefox') )
		$browsers['FF']	= ( strstr($h_u_a,'Firefox/2') )	? 2 : 1;
			
	elseif ( strstr($h_u_a,'Opera') )
		$browsers['O']	= ( strstr($h_u_a,'Opera/9') )		? 9 : 8;
			
	else
		$browsers['Other'] = true;

	unset($h_u_a);
	
 ?>

jonesy and kasperandersen, I expect the new version to fix your problem, expect it in the coming month or two.

pki, rewriting would take more time than I'm willing to put in, is there a link where I can see the problem first hand, maybe I can find a workaround...

Sorry I can't offer better support.

442 Oct 14, 2007 04:23

Thanks Balumpton,

But when I make those changes and try to load up the site in E7 now I get this message:

Parse error: syntax error, unexpected '&' in /home/summerof/public_html/thechumslick/plugins/gallery_plugin/resources/variables/_browsers.var.php on line 7

I now also get the same in FF.

444 Oct 14, 2007 07:21

After cutting and pasting from your link I now get this:

Notice: Undefined index: HTTP_USER_AGENT in /home/summerof/public_html/thechumslick/plugins/gallery_plugin/resources/variables/_browsers.var.php on line 13

I have to add that the page loads up perfectly in FF and EI6 it is only EI7 that it has trouble.

445 Oct 14, 2007 12:31

Whoops, ok try again with the file.

446 Oct 14, 2007 12:51

balupton wrote:

pki, rewriting would take more time than I'm willing to put in, is there a link where I can see the problem first hand, maybe I can find a workaround...

Sorry I can't offer better support.

No. My server admin enabled temporary this unsecure way to pass the uri thru.

I think my temporary solution would be to disable image download.

447 Oct 14, 2007 13:31

Have used the workaround for my problem, but couldn't test enough, because after using the "bugfix", there was no chance of getting the script for the gallery to work in my admin control panel. Yeah, same problem here, and when this isn't working anymore, this workaround is not usable ^_^°
So jumped back to v1.2.4 =)

Waiting hopefully for the new release :D

448 Oct 14, 2007 20:00

What was changed against the file?

I tried it and I'm still getting the same message.

449 Oct 14, 2007 20:06

Must of forgot to upload... just change line

$browsers['browser'] = $h_u_a = $_SERVER['HTTP_USER_AGENT']; 

to

$browsers['browser'] = $h_u_a = empty($_SERVER['HTTP_USER_AGENT']) ? NULL : $_SERVER['HTTP_USER_AGENT']; 

450 Oct 15, 2007 03:37

It appears that did the trick, Balupton!

Thanks again for some fine troubleshooting.

Now if only IE7 would spot registering errors from my google ads I'd be in business.

Sigh, I hate IE.

LONG LIVE FF!!!

451 Oct 15, 2007 21:32

I'm having a problem with an intance of a previously working gallery. I inadvernantly moved the directory and then put it back. The gallery shows but the images are red crosses.

why would an image URL be this

http://www.tvcm.co.uk/comblogs/media/gallery_plugin//homepages/13/d137553926/htdocs/public_html/comblogs/media/gallery_plugin/585082816732321/small/517_100_1095.jpg

looks like there's some repetition in there

452 Oct 15, 2007 22:42

The image physical path is being added on. I will look into it tomorrow.

453 Oct 17, 2007 19:42

hi there,
balupton, thanks AGAIN for your work,it's awesome!
I had to fight to install it, until I found the post about chmodding the index.html... A suggestion: could you put that info in the first post of this thread, it would be easier to find ;)

Just one thing I wanted to comment: the gallery button only appears when I'm in "expert mode". What am I doing wrong?

see you.

ps: my version 1.10.2
plugins installed: avatar, tinymce (tell me if you need the whole list)

454 Oct 17, 2007 20:12

OSdave, thankyou :) I'm adding that install tip to the gallery post on my blog.

Display in simple mode hack:
Open up _gallery.plugin.php and change line 496 to

		// Comment the below statement out if you want your plugin shown in simple view
		if ( false && $params['edit_layout'] === 'simple' )
			return false;

and again for line 569

455 Oct 17, 2007 20:31

:yes: perfect, it just works!!
thank you again, for the answer and the non-exisitng time of wait ;)

just a question: do you sleep and eat like a normal human? :lol:

456 Oct 17, 2007 20:48

I sleep when I need to, atm it's like 2 hour nap, 4 hours awake, repeat, and then a 6 hour nap, and like 8 hours awake, it's quite random...

457 Oct 17, 2007 21:27

hey balupton, sounds like your making a lot of progress on the new gallery update. Just wanted to say i love the gallery plugin and cant wait for an official release of the update, keep up the good work!

458 Oct 18, 2007 15:08

hey, it's me again :)
stevet wrote:

Oh BTW might it be possible to use this for a "gallery" of just ONE pic - I know you can do this now by just uploading one pic but it would be cool if the thumbnail pic was right aligned with text flowing round it and you just clicked and go the big pic

Just wanted to say that I would be really interested in this feature, I think it would be very nice :)
Also, I'd like to be a beta-tester for the next version, if you still need it. I'll set up a b2evo in my sandbox site to do that. What version of b2evo should I use: 1.10.2 or 2.0.2?

459 Oct 18, 2007 17:17

...and again... :)
I had a warning when uploading fotos:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\b2evolution\plugins\gallery_plugin\_gallery.php on line 689

I made it disappear changing line 689 of plugins/gallery_plugin/_gallery.php from

return mysql_num_rows($result);

to

return @mysql_num_rows($result);

nothing important, just to eliminate this warning.
see you

460 Oct 18, 2007 18:43

OSdave, is coming in the next release. I will forward you a copy of the next update to it.

461 Oct 21, 2007 20:02

>>>The image physical path is being added on. I will look into it tomorrow.

ben - did you look at my prob with the double url thing

462 Oct 22, 2007 00:45

Yeah I think I know whats wrong. Will get back to you on wednesday.

463 Oct 22, 2007 01:40

Umm, ok, I think that with the old versions of gallery we store the full path of the file in the db, so if the path has changed it could be a problem, upload some new photos into gallery, and then see if that works, if it does then see what is different in their db rows compared to the old. And then do a search and replace or just concat on the old rows...

464 Oct 27, 2007 13:39

I have a weird problem with the Gallery plugin.

I have installed it succesfully and tested it on four different computers without problems.

Also most of my users are able to use the blog without problem while the plugin is installed.

But several Internet Explorer users have reported that they are unable to access the blog when the plugin is installed. They don't get any error message or anything, the blog just refuses to load.

Has anyone reported similar problems and do you know a fix for it?

Thanks.

465 Oct 29, 2007 18:11

Having the same problem but there is no real fix for this now - all hopes on the upcoming new version of the gallery-plugin :)
At the moment i'm using the older 1.2.4.4-version (beta), this works fine, tho it has not this much of features :)

466 Nov 04, 2007 21:10

Just so everyone knows that I am not dead, I believe that a release date for the new version around end of new years is likely. I really wish I could have more time to work on it, but I have absolutely no time until the end of November.

Yeah, December will be a very busy and exciting month for the gallery plugin.

467 Nov 21, 2007 12:39

Hey !

I have installed the galery, installation works fine !
now when it comes to going to the galery, when i hit the "Galery"
button in expert mode i get :

gallery_open is not defined
onclick(click clientX=0, clientY=0)

admin.php (line 1)

Is there any chance to get the galery working with the latest beta or i should wait for the next release ?

thanks a lot for making this plugin, i'v been living without, and now
i really need it, has i can see the plugin evolved a lot from the first time
i saw it running ! it now look superb !

468 Nov 28, 2007 23:10

Hi buzzworkers, I'm going to go with the new version will fix this. It is amazing at how problematic the scriptaculous library is.

One thing though, is that the new version will not feature the cool lightbox thing on it's release... As I just do not have time to re-code it for the new library. Please, if anyone can do this, this would be fantastic.

If you want to help speed things up, or think you can help out, please take a look at http://www.balupton.com/blogs/dev?title=contribute&more=1&c=1&tb=1&pb=1

469 Nov 29, 2007 12:22

Thanks for giving report on this ! I wish i could help you, but i have nothing from a real coder, the thing i'm good at is to put together wonderfull piece of code guys like you and other do, i'm just a kind of advanced user, coding is not my speciality, i'm sorry !

about the lightbox thing : i dunno how to help you on this one also,
i guess a normal popup behaviour would be OK for most users.

=> i gues you already know this one : http://www.stickmanlabs.com/lightwindow/
maybe it could be easier to use this one has you could even improve your gallery to handle any kind of media file : Movies, Flash, PDF's well this is just a tought !

I'm about to read your blog post about all this, :idea: i'll try to make the company wich i work for to make a kind donations if we use your galery plugin !

470 Nov 29, 2007 21:47

Ok thanks :)

Well lightbox (as well as lightwindow) are made with the prototype framework, which I have ditched for jQuery.

jQuery has a few alternatives, some that I have looked at are:
Thickbox - http://jquery.com/demo/thickbox/
jQuery Lightbox - http://warren.mesozen.com/jquery-lightbox/
Interface Carousel - http://interface.eyecon.ro/demos/carousel.html
and a few others at http://docs.jquery.com/Plugins#Image_galleries

But with all of them, they would need to be re-themed and a few features added back into them (this is what I don't have time to do). But I should be able to just stick in one of the mentioned as they are though.

472 Dec 04, 2007 06:30

balupton wrote:

Just so everyone knows that I am not dead, I believe that a release date for the new version around end of new years is likely. I really wish I could have more time to work on it, but I have absolutely no time until the end of November.

Yeah, December will be a very busy and exciting month for the gallery plugin.

Sweet!

473 Dec 04, 2007 14:50

This is best ever news since B2evo is also using this library :))))
can't wait to see the results ! if you need any help for test i'm into it :)[/url]

474 Dec 06, 2007 07:55

Hi, does anyone know how I can change the size of thumbnails in this plugin? In my case, the default size is far too small...

475 Dec 06, 2007 10:48

balupton wrote:

Line 814 of /gallery_plugin/_gallery.php should look like this

			case 'small':
				return
				remake_image(array(
					'image'		=> $image,
					'width'		=> 0,
					'height'	=> 48,
					'mode'		=> 'area',
					'size'		=> 0,	
					'quality'	=> 96,
					'debug'		=> $this->debug						
				));
				break; // unreachable

Line 77 of /gallery_plugin/includes/styles/_gallery.css should look like this

.gallery .image {
	height:48px;

Customize that to your likening.

see these 48 numbers?, i think this is where you do it...

476 Dec 07, 2007 00:39

Yes that should be correct.

477 Dec 12, 2007 04:03

buzzworkers wrote:

Is there any chance to get the galery working with the latest beta or i should wait for the next release ?

I got it to work with a little bit of manual tweaking. The following refers to gallery plugin version 1.2.5.2-final and b2evolution 2.2.0 beta. Please note though that I'm having no clue what I'm actually doing here, I just went error by error ...

In skins_adm/_html_header.inc.php, add

require_js( '../../plugins/gallery_plugin/includes/scripts/admin.js' );
require_js( '../../plugins/gallery_plugin/includes/common/scriptaculous/prototype.js' );
require_js( '../../plugins/gallery_plugin/includes/common/renderers/admin.js' );
require_js( '../../plugins/gallery_plugin/includes/common/scriptaculous/effects.js' );

In plugins/gallery_plugin/includes/scripts/admin.js, uncomment and set the gallery_url variable

var gallery_url = '/plugins/gallery_plugin/';

In plugins/gallery_plugin/_gallery.plugin.php, add a class variable to the class gallery_plugin

var $group = 'rendering';

You might then have to enable the plugin manually in the database table evo_plugins by setting the plug_status field to "enabled".

I think that was it. No guarantees, but these steps got the gallery plugin working for me again.[/code]

478 Dec 12, 2007 16:40

I tested you solution but didn't managed to get it working
it seems it does'nt find the path to the plugin, i guess i'll wait for the excelent balupton next version for 2.x :)

479 Dec 13, 2007 18:17

buzzworkers: Did you upgrade from an old version? Or did you install 2.2.0 from scratch?

I upgraded from 1.x, with a working installation of the gallery plugin. Maybe that's why it worked for me?

480 Dec 18, 2007 20:44

Hey all, I am now on Facebook Pages at http://curtinedu.facebook.com/profile.php?id=6810572902

And have set up the discussion board for nearly everything now. It is also good as I can schedule releases in events, and send updates to all of you about new releases.

So please become a fan of me, and also please give your feedback about a issue concerning Gallery here: http://curtinedu.facebook.com/topic.php?topic=4512&uid=6810572902 as it is currently slowing development until I can find a solution for this issue.

Again thanks :)

481 Dec 19, 2007 10:42

ionos wrote:

buzzworkers: Did you upgrade from an old version? Or did you install 2.2.0 from scratch?

I upgraded from 1.x, with a working installation of the gallery plugin. Maybe that's why it worked for me?

I upgraded from an old version, but before using 2.x i never installed the galery plugin, maybe you're right.

ps : balupton : you have one more fan ! :p

482 Dec 20, 2007 04:32

I am absolutely befuddled: out of the blue, my gallery plugin on 1:10:02 no longer works. When I try to upload a picture into a new or existing gallery, it acts as if it is going to do so, then, it comes back having not uploaded anything saying there is no picture to display.

483 Dec 20, 2007 17:29

New to B2evo and was just about to launch for my community when I found that the 2.2.0 might be the way to go. Already loaded and tested 1.10.3 and was absolutely thrilled with the gallery plugin you built. It's gorgeous! I await a compatible release for 2.2.0.

484 Dec 20, 2007 17:57

cslepage, pm me your b2evo admin details, and ftp info, and I will look into it asap.

brushwoodnursery - thanks :)

485 Dec 20, 2007 18:01

It's really just exactly what my community needs. They love to chat and share a few pics. It would suit their kind of sharing and, therefore, they will be more likely to sign up and use the new setup when I release it. Wish I could help you but I'm definitely dangerous at best with php etc.

486 Dec 21, 2007 19:07

brushwoodnursery, thanks soo much for the comments and the donation. They both help :-)

Regarding the new version of the gallery plugin, there will be changes to the image types as discussed here http://curtinedu.facebook.com/topic.php?uid=6810572902&topic=4512

The new solution will get rid of the preview/image size, so only thumbnail/small and large is present. There will also be the possibility of including an attachment to the image which can be downloaded. There will also be a checkbox to say "Use original as attachment".

Gallery and a new plugin I will be releasing are now my priorities. I will post more updates as it comes. But if you are on facebook, use the new discussion board here http://curtinedu.facebook.com/board.php?uid=6810572902

Cheers.

487 Jan 02, 2008 03:01

Just installed the Gallery plugin (actually uninstalled an old non working version of the plug in and then installed the new version).

I made a post and it updated fine and inserted the images but when i try to load the page i get:

Fatal error: Call to a member function get_thumbnails() on a non-object in /home/knarf/public_html/plugins/gallery_plugin/_gallery.plugin.php(476) : regexp code on line 1

and the page will not load after that.I have disabled the plugin and the page loads fine, but as soon as i enable the plugin I get that error,

Any ideas?

488 Jan 02, 2008 03:10

Did you delete all the files from the old version, or just stuck the new files in there? And are you using the Avatars plugin?

Oh and what version numbers exactly.

489 Jan 02, 2008 03:14

Which version of b2 did you load it on? That may help someone to answer.

490 Jan 02, 2008 04:00

I am not using the Avatars plugin
b2 version 1.10.2
gallery version: 1.2.5.2 final
I deleted the plugin folder and the table from the database. I did not delete any of the old gallery folders until after I had the problem.

491 Jan 02, 2008 04:39

If I edit the post to include a gallery and click 'save' then try and load the blog i get the error. If I navigate the back office away from that page(the one with send trackbacks ect) the error disappears.

492 Jan 02, 2008 18:55

Hrmm it must be a problem with your php settings. Next time when you do an upgrade though, don't delete the mysql table or the images it saves, because then you will lose all your images if you delete one or the other!

So could you send the line it is complaining about, and we should be able to get it fixed :)

493 Jan 02, 2008 19:25

Do you know if this plugin works in b2evo 2.2.0

494 Jan 02, 2008 19:41

No it doesn't. It will be ported over by the end of the month hopefully.

495 Jan 02, 2008 20:21

Thanks.
I'm relatively new to b2evo but I find find it to be a remarkable piece of work. And of course, being the geek that I can be, I had to go with the latest release.

496 Jan 02, 2008 20:41

Thanks balupton, It's complaining about:

plugins/gallery_plugin/_gallery.plugin.php(476) : regexp code on line 1

497 Jan 15, 2008 03:13

Balupton:
I'm getting a weird error when installing or uninstalling the Gallery plugin.

ERROR: Conflicting function versions:
Function [scan_dir]
Original Version [4.2]
Attempted Version [6]

Notice: Undefined variable: path in /home/sobrenad/public_html/plugins/gallery_plugin/resources/functions/_scan_dir.funcs.php(58) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sobrenad/public_html/plugins/gallery_plugin/resources/functions/_scan_dir.funcs.php(58) : eval()'d code on line 1

I had the Avatars plugin installed. I uninstalled it, deleted the avatars_plugin folder from the Plugins folder.
Do I have to fix the files I hacked when I've installed the Avatars plugin? You know, those adminpayloadend lines??

498 Jan 20, 2008 12:13

Ben, I'm confused. Between this forum, your own blog and facebook it seems info is scattered all over. You know I'm a big fan of this plugin as well as your other work but I'm trying to figure where you are with the plugin development. Particularly as to my desire to be able to specify thumbnail size and go directly to large image without the intermediate. Forgive me if you've already posted about this. I've not been in the forum in a while - got distracted. I've not followed your facebook stuff much because I detest facebook as a piece of technology - as a thing.

499 Jan 21, 2008 22:24

Stevet, yes info is scattered all over the place... I guess it is quite annoying, but I really do not have time to fix it.

I put some time into b2evo v2.3 a week or two ago, but couldn't get anything finished.

For my involvement, it is lacking, as I do not earn any money from the time i put into my b2evo work, so they are black holes for me. For the avatars plugin, a new release of that came out a few weeks ago because a client sponsored the new release.

So I am too busy taking on work that pays to really get to work on any of this. My client work should be finished in about 3 weeks, in which case I need to take on more. So pretty much the only way I am able to get to work on this, is if a release gets sponsored, so becomes client/paid work.

It is very unfortunate, but it is the way it is.

The other option is if the community start doing the dev, in which I will post the work I have done so far, and they can take over, but so far, no one has shown interest in that either...

500 Jan 21, 2008 22:35

Alas I do not have the skills to develop your work. However I am keen to involve colleagues and students at my University in working in open source communities. I shall see if I can get anything going.

501 Jan 22, 2008 00:13

What does it take to sponsor a plug in?

502 Jan 23, 2008 00:09

cslepage wrote:

I am absolutely befuddled: out of the blue, my gallery plugin on 1:10:02 no longer works. When I try to upload a picture into a new or existing gallery, it acts as if it is going to do so, then, it comes back having not uploaded anything saying there is no picture to display.

Hey,

Did anyone discover a fix for this? I have an intermittent problem, some images upload - but others don't and there doesn't seem to be any logical reason behind it (photos are RGM / .jpg's no crazy symbols in file name).

Gallery version: 1.2.5.2-final
b2evo version: 1.10.3

Cheers,
Dave

503 Jan 23, 2008 00:57

I had to CHMOD the gallery directory to 777. I don't know why if that was different than it was before, but it did fix the problem.

504 Jan 24, 2008 01:52

D-ave-pty, cslepage is on the money, instructions are mentioned in the readme.txt file included in the plugin's folder.

stevet, thankyou.

cslepage, just paying for the dev time. So for the Avatars plugin, and a new Friends Plugin that is on the way, Writelink.co.uk has been the sponsor, so they request what they want to see, and I send them off a quote, they accept, and I get cracking, then send off a invoice when done.

If multiple people are interested in sponsoring the Gallery Plugin, I will put together a page where people can see the requested features / tasks, the cost of that task, and how much of the cost has been reached via donations.

505 Jan 24, 2008 12:05

Hey,

The CHMOD settings are all correct but I still have the problem. I have also found the solution.

It's to do with the 'Maximum allowed filesize' setting in 'App Settings' >> Files >> Upload options. The file I was trying to add to the post was over this setting, which is why it was being rejected wheras the other files were uploading without a problem.

Thanks for your help cslepage and balupton, it was very much appreciated.

I do have another question though, when I use the gallery plugin my pages fail XHTML validation - this is the result of the validation:

Line 71, Column 117: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

…/balupton.com --><div class="gallery"><div class="thumbnails" ><a href="http:

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

The XHTML code around this area is:

<!-- START OF POSTS CODE -->

<h2 class="bTitle">A little bit about me...</h2>
<div class="bSmallHead">
Posted on: 22/01/08 at: 06:35:27 pm, by <strong>Sam Lumb</strong>, 1 view <br /> Categories: <strong><a href="http://aberguild.myextranet.co.uk/blogs/index.php?blog=5&amp;cat=14" title="Browse category">Announcements [A]</a></strong> </div>

<div class="bText">
<p>Its not easy being a president who works hard all the time for the benefit of the students that i love…</p>

<p><!-- The following gallery is a result of Balupton`s Gallery Project - http://balupton.com --><div class="gallery"><div class="thumbnails" ><a href="http://aberguild.myextranet.co.uk/blogs/media/gallery_plugin/273921544177787/medium/2_Smurf.jpg" rel="lightbox[gallery_1]" title="Smurf" ><img class="image" src="http://aberguild.myextranet.co.uk/blogs/media/gallery_plugin/273921544177787/small/2_Smurf.jpg" alt="" /></a><a href="http://aberguild.myextranet.co.uk/blogs/media/gallery_plugin/273921544177787/medium/7_Cannonk_042.jpg" rel="lightbox[gallery_1]" title="Cannonk 042" ><img class="image" src="http://aberguild.myextranet.co.uk/blogs/media/gallery_plugin/273921544177787/small/7_Cannonk_042.jpg" alt="" /></a><a href="http://aberguild.myextranet.co.uk/blogs/media/gallery_plugin/273921544177787/medium/8_Char15.jpg" rel="lightbox[gallery_1]" title="Char15" ><img class="image" src="http://aberguild.myextranet.co.uk/blogs/media/gallery_plugin/273921544177787/small/8_Char15.jpg" alt="" /></a><a href="http://aberguild.myextranet.co.uk/blogs/media/gallery_plugin/273921544177787/medium/9_P7050141.jpg" rel="lightbox[gallery_1]" title="P7050141" ><img class="image" src="http://aberguild.myextranet.co.uk/blogs/media/gallery_plugin/273921544177787/small/9_P7050141.jpg" alt="" /></a><a href="http://aberguild.myextranet.co.uk/blogs/media/gallery_plugin/273921544177787/medium/11_P5140003.jpg" rel="lightbox[gallery_1]" title="P5140003" ><img class="image" src="http://aberguild.myextranet.co.uk/blogs/media/gallery_plugin/273921544177787/small/11_P5140003.jpg" alt="" /></a></div></div></p>
<a href="http://aberguild.myextranet.co.uk/blogs/index.php?blog=5&amp;title=a_little_bit_about_me&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1" title="Permanent link to full entry" class="permalink_right"><img src="http://aberguild.myextranet.co.uk/blogs/rsc/icons/minipost.gif" border="0" align="top" width="12" height="9" class="middle" alt="Permalink"/>Permalink</a><br />
</div>

I know this was posted before, but I couldn't see an answer... Is there a way of fixing this problem? It looks pretty simple, as the <p> tag is surrounding the DIV - although I am not an expert in validation, but I am slowly learning... A fix that doesn't involve the blogger changing anything would be best as they have very limited web coding knowledge...

Cheers,
Dave

506 Jan 25, 2008 11:10

Hi,

I've noticed that manager.php is accessible directly and I am able to edit other people's galleries (including on some of the sites linked on this forum).
Just wondering if anyone knows how I can call is_logged_in() and $current_User from manager.php.

Have tried calling manager from index but can't get around multiple errors.

Any suggestions to work in some security would be great.

Thanks
Luke

507 Jan 26, 2008 00:31

How much do i have to DONATE to get the gallery working for 2.4????

508 Feb 28, 2008 09:12

when i click upload button, this scrip will be appear

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\fmcc\blogs\plugins\gallery_plugin\_gallery.php on line 689

509 Mar 01, 2008 15:17

balupton wrote:

OSdave, thankyou :) I'm adding that install tip to the gallery post on my blog.

Display in simple mode hack:
Open up _gallery.plugin.php and change line 496 to

		// Comment the below statement out if you want your plugin shown in simple view
		if ( false && $params['edit_layout'] === 'simple' )
			return false;

and again for line 569

hmmm, my _gallery.plugin.php have only 466 lines ;] (version for v1.9+)
I've installed this plugin on 2.4, I know that this version is not supported yet but somehow it works (I can't edit galleries after they are done).
BUT, all I wanted to do, is to disable this small image preview after clicking on thumbnail. It's VERY annoying that each time i go to next photo i have to click LARGE version ;[
This gallery plugin looks great but it would be nice to disable this annoying small version of each picture and of course having full support for 2.4 ;P

510 Mar 01, 2008 15:22

second thing is that when I'm uploading more then one picture, pop-up window (with upload options) clears. When I'm uploading only one by one picture, everything seems to be ok.

511 Mar 07, 2008 13:09

Hi,

i want to disable the small preview too !

Give it a hack for this ?

Greetz...Markus.

512 Apr 03, 2008 15:23

Hey,
Is there anyone who can make the gallery work on version b2ev 2.4.1 I have the Gallery button on the post/write page but not working, I fon't know what to do with it.

Thanx for help

513 Apr 07, 2008 22:28

Hi!

I've also just upgraded to 2.4.1 and had the gallery plugin used on my previous version in my blogs.

Does anyone no of a solution to get this working with the latest version?

Thanks in advance.

:)

514 Apr 08, 2008 19:39

@ketrinweb I second that emotion! I'm looking for a gallery solution for my 2.x blogs, too!

This plugin looks decent, I hope the author plans to release a 2.x version soon! I'll look at the code myself, though my knowledge of b2evo plugins is a bit on the week side :P

515 Apr 09, 2008 21:05

nate_02631 wrote:

@ketrinweb I second that emotion! I'm looking for a gallery solution for my 2.x blogs, too!

This plugin looks decent, I hope the author plans to release a 2.x version soon! I'll look at the code myself, though my knowledge of b2evo plugins is a bit on the week side :P

If you have any luck in getting this to work then i would appreciate a copy of the updated files!

:)

516 Apr 11, 2008 19:14

arlequino, ketrinweb

I'm trying a test install of b2evo 2.41 and the latest gallery 1.244 and it appears to work more of less, with the exception that the "Save Changes" doesn't close the pop-up window...

Gonna do some further testing, but what errors/issues were you having with it exactly?

518 Apr 11, 2008 22:14

@ketrin - A quick peek at the likn reference of those images indicates you have a path problem somewhere

http://www.ketrin.co.uk/blogs/media/gallery_plugin//home/httpd/vhosts/ketrin.co.uk/httpdocs/blogs/media/gallery_plugin/664598542262323/medium/16_100_0453.jpg


Or it might be getting a wrong environment value from the server somewhere (sorry to stretch out the page, guys)

519 Apr 15, 2008 18:34

Hi - just wondering has anyone had any luck integrating this with TinyMCE. When TinyMCE is active and I click the Gallery link, it doesn't do anything.

I get an error in FireFox's error console:

document.getElementById("itemform_post_content") is null


I can see that the Gallery plug calls this in the gallery_add() function attached to the button, but evidentally TinyMCE passes the itemform_post_content to another object(?)...

Gonna look around a bit more here and over @ TinyMCE - didn't know if anyone had already done this successfully?

520 Apr 15, 2008 21:16

I'm still asking if anyone can install it on the Latest 2.4.1 [Nevada] version yet. I've updated and i know a lot of plugins might not work but some people say they get it to work, but i can't even get it to install. It just keeps getting an error when i trying to install it via plugin console. If anyone can tell me how they installed it i would greatly appreciate that!

-Mocha

521 Apr 15, 2008 21:17

It's always helpful if you can provide detail (i.e. what error, etc...)

522 Apr 15, 2008 21:33

nate_02631 wrote:

It's always helpful if you can provide detail (i.e. what error, etc...)

Thats exactly the problem. there's only a general error which is why i would like to know if someone did...so i know there's something i'm doing wrong.
Here's the error:

The installation of the plugin failed.
An error occured

that's all i get and i really love the idea of the plugin and it would make my blog so much better as i have alot of photos to share with my blog readers!

Thanks for reading and responding and if u can help me its much appreciated.

524 Apr 16, 2008 21:47

Who can help please?
I want to attach a new Gallery to a Category.
the button "craete a new gallery is active, but as I press "Perform"-nothing happens!
I tryed for hours please help. Thank you!
Michael

525 Apr 16, 2008 21:49

Michael, what version of b2e are you using?

526 Apr 17, 2008 00:16

Thank you for answering so quickly,
sorry I cant answer this so easyly, a friend of mine has just installed a new version and I will answer as soon as he tells me the nr.
would appreciate your help then.......
Michael

527 Apr 17, 2008 13:15

Hi everybody,
I had a problem when opening my blog with IE: the first time IE crashed (from the second time it opened, with error in the page).
It turned out to be the version (1.5) of prototype.js from Gallery and Avatar plugins.
Replacing /plugins/gallery_plugin/includes/common/scriptaculous/prototype.js and plugins/avatars_plugin/includes/common/scriptaculous/prototype.js with [url=http://www.prototypejs.org/assets/2007/11/6/prototype.js]this one[/url] solved it.
Hope this help.

528 Apr 17, 2008 16:51

thanks, .My friend solved the problem with nthe latest version...everything works now!

529 Apr 17, 2008 19:35

michaelwillfort wrote:

thanks, .My friend solved the problem with nthe latest version...everything works now!

i just want to know how you guys solved the problem...i'd sure mine won't install on 2.4.1 because it wont connect to the database to create the table...but i haven't had a chance to go at it full yet. I plan to spend this whole weekend doing so...but if you can can i get a copy of the source files for your plugin...if i works with 2.4.1

Just to see if it works for me

pm me please...thanks

-mochababy

530 Apr 17, 2008 23:06

i'll forward this to my friend, he can say how he worked it out...

531 Apr 18, 2008 00:01

michaelwillfort wrote:

i'll forward this to my friend, he can say how he worked it out...

thanks...i just can't seem to get it to install properly on my system...unless i create the table myself...and then it doesn't work...i'm just screwing with it too much...i need to sit and look at the code instead of trying a quick fix. Thanks for your help!

532 Apr 19, 2008 20:48

Hi everybody,
i have problems installing the gallery plugin on my server. he says that the media folder is not writable but it is. there are also no entrys in the error.log from the apache.

i followed the manual on this page http://manual.b2evolution.net/Install_b2evolution#File_permissions but it still says, i dont have permissions...

i have no idea at the moment what to do

533 Apr 21, 2008 12:04

ok, i commented out the part of the writable test in the _gallery.plugin.php, after this i could install the gallery and it works fine...

534 Apr 21, 2008 18:58

würmchen wrote:

ok, i commented out the part of the writable test in the _gallery.plugin.php, after this i could install the gallery and it works fine...

what version on B2 are you using by chance?

535 Apr 24, 2008 05:03

Hey i'm having a small problem with the gallery. when i view my post, it will quickly display it then goto a white blank page that will be loading but not do anything. then I click back and it will goto my post and it will all work.

but on the white page that doesn't do anything, i right clicked and went view source, and this it what is on the blank page

<script type="text/javascript" src="http://masterzproject.com/blog/plugins/gallery_plugin/includes/common/scriptaculous/effects.js"></script>

anyone have an idea whats going on? or how i can fix it?

536 Apr 24, 2008 15:30

MasterZ wrote:

Hey i'm having a small problem with the gallery. when i view my post, it will quickly display it then goto a white blank page that will be loading but not do anything. then I click back and it will goto my post and it will all work.

but on the white page that doesn't do anything, i right clicked and went view source, and this it what is on the blank page

<script type="text/javascript" src="http://masterzproject.com/blog/plugins/gallery_plugin/includes/common/scriptaculous/effects.js"></script>

anyone have an idea whats going on? or how i can fix it?

Please provide the version number and it sounds like you are having a script/memory problem. This white page...is it in the back office or actually in the common area of your site?

537 Apr 25, 2008 01:42

it happens in the front end version, what the public see.

heres the version that im running:
b2evolution 1.10.2

it happens sometimes, like I did it a lot yesterday but now, this morning its not doing it no more. :-/ Maybe it fixed itself?

Not sure, ill let use know if it happens anymore.
Thanks

538 Apr 27, 2008 11:10

Hello all, since 2 days busy with b2evo and very impressed about it's possibilities. A problem with the calendar forced me to make this post on the forum.

I am using the latest version (2.4.1) of b2evo and installed the Galery pluging. When I create a new post and click on the GALLERY button, seemingly nothing happens, I do see that I get a script error which says:

LINE: 524
SIGN: 1
ERROR: OBJECT IS EXPECTED
CODE: 0

(I translated above from dutch (OS language)) so some of the descriptions may not be right.

Has anyone any idea?

Thanks!

539 Apr 27, 2008 16:47

mochababy wrote:

würmchen wrote:

ok, i commented out the part of the writable test in the _gallery.plugin.php, after this i could install the gallery and it works fine...

what version on B2 are you using by chance?

I use version 1.10.3

And now I have a new problem. Today I created my second galery and now i can click on the first picture of my second galery, when i go further, I will also see the pictures of my first galery...
Why is this? I mean, i uploaded 14 pictures and now I can click through all 34 pictures, even if they are in other galeries....

these are two permalinks, maybe someone has an idea...

http://may25th.de/index.php/mario/2008/04/27/spazieren_arbeiten_geburtstag_und_kuz
http://may25th.de/index.php/mario/2008/04/25/bilder_zu_radio_unfertig_im_april

540 Apr 28, 2008 15:01

am i the only one with this issue or is this a feature? :-)

541 Apr 28, 2008 15:10

I visited your links and can only click through the specific galleries.
One has 12 and goes no further, the other has 19 and goes no further.
Firefox on Mac

542 Apr 28, 2008 15:23

I use Firefox 2.0.0.14 on a Linux OS...

http://may25th.de/screen.jpg

There is a screenshot and you can see, it is the last image of the last gallery, but it is picture 12 of 31 and in the addressline on the bottom of the browser it says picture "35_...."

The important thing is, this gallery has an other id then the gallery with the other pictures and is saved in a complete different directory...

@John, you have just 12 pictures in the last gallery?

543 Apr 28, 2008 15:45

There was 12 thumbnails in one gallery and 19 in the other one.
Total pictures 31.

This plugin has been going for 37 pages.... I gave up at about page 3 or 4 :)

You seem to have it working well from a visitors point of view but I'm buggered if I know about any of the other issues :(

544 Apr 28, 2008 17:04

Ok, I think I found the problem...
in the file gallery_plugin/includes/common/gallerylightbox/js/gallerylightbox.js
on line 317...

        if (!document.getElementsByTagName){ return; }
        var anchors = document.getElementsByTagName('a');

The anchors are the images on the current page, so as gave you the permanent links to my blogentrys, there are only the 12 btw 19 images on the page, so in this lightbox you will get only 12 of 12 iimages...

but if you look on my blog, where at the moment 2 gallerys on the front page, it will take all the images together in the lightbox...

can anyone help me to change this javascript, to look only in a single blog entry for pictures and not on the whole page?

545 Apr 29, 2008 21:09

I have moved to a new host and the gallery images don't show up

it's looking for the image here

http://www.tvcm2.co.uk/media/gallery_plugin//var/www/vhosts/tvcm.co.uk/httpdocs/media/gallery_plugin/517443573853067/small/91_Long_Shot.jpg

a lot of the refers to the old host

I'm sure it should be

http://www.tvcm2.co.uk/media/gallery_plugin/517443573853067/small/91_Long_Shot.jpg

546 Apr 30, 2008 13:08

Having upgraded to 2.x (now 2.4.2), I've found that the gallery plugin only partially works on my setup.

I had two errors:
1. A Javascript error whenever I tried to insert a new gallery into a post (ie: nothing happened on clicking the 'gallery' button, but the error was in the Error Console).
2. A Fatal PHP error (re trying to call get_thumbnails on a non-object) when 'managing' any page that had a gallery.

I've solved the errors like this:
1. applying these fixes from a post in this topic on Dec 12 2007:
ionos wrote:

In skins_adm/_html_header.inc.php, add

require_js( '../../plugins/gallery_plugin/includes/scripts/admin.js' );
require_js( '../../plugins/gallery_plugin/includes/common/scriptaculous/prototype.js' );
require_js( '../../plugins/gallery_plugin/includes/common/renderers/admin.js' );
require_js( '../../plugins/gallery_plugin/includes/common/scriptaculous/effects.js' );

In plugins/gallery_plugin/includes/scripts/admin.js, uncomment and set the gallery_url variable

var gallery_url = '/plugins/gallery_plugin/';

In plugins/gallery_plugin/_gallery.plugin.php, add a class variable to the class gallery_plugin

var $group = 'rendering';

And then applying this nasty hack:


if (!isset($Gallery->version)) {
	// Include the Gallery Class
	require_once(dirname(__FILE__).'/_gallery.php');
}

at the start of the _gallery_plugin.php file

(it seems that on the admin pages the _gallery.php class is not otherwise instantiated, but it is on public pages)

So far this works for me. Hope it helps you.

Edit:
Originally posted in the wrong place - now all in the right place (and comments removed) :D

547 May 01, 2008 22:29

Hi, I was able to successfully get the gallery plugin (V.1-2-4-4-beta) working on b2evolution 2.4.1 - it worked for a while without any problem (see www.kunst2day.de ) but now everytime I want to upload more pictures - no matter if the upload takes place within an existing gallery or into a new gallery - I get this error message:

Warning: unlink(/var/kunden/webs/kunst2day/media/gallery_plugin/mm-small.jpg) [function.unlink]: No such file or directory in /var/kunden/webs/kunst2day/plugins/gallery_plugin/_gallery.php on line 643

I never changed anything - the only thing that has changed is the overall URL of the site (without movong any files) - it used to be development under a subdomain and now it is www.kunst2day.de - I changed this setting in my domain account and also in my config file.

any clues what this could be?
Any other ideas what I could do? I really have to finish this site, it is brand new and only a small part of the pictures are there. I appreciate any kind of help I can get.

548 May 01, 2008 23:26

stevet, I believe that version of the gallery plugin stores the absolute path within the database. You can do a search and replace SQL query to update the paths.

maxwell, maybe this applies for you to.

davidhw, glad you got it working, but don't you have a lot of javascript problems? as any publicly released version still uses the prototype framework that clashes with the jquery framework that b2evo v2 has adopted.

John, that problem is due to the gallery_count no longer being used when displaying a gallery. If you have any PHP knowledge find a line of code that looks comething like this: rel="lightbox" and add a gallery count to it, so something like rel="lightbox_$gallery_count". I believe the gallery count variable may still be in there.

Again, I no longer support my b2evolution work, nor have I touched b2evolution (or my b2evo work) for a fair few months. Just merely dropped by.

549 May 02, 2008 00:27

maxwell wrote:

Hi, I was able to successfully get the gallery plugin (V.1-2-4-4-beta) working on b2evolution 2.4.1 - it worked for a while without any problem (see www.kunst2day.de ) but now everytime I want to upload more pictures - no matter if the upload takes place within an existing gallery or into a new gallery - I get this error message:

Warning: unlink(/var/kunden/webs/kunst2day/media/gallery_plugin/mm-small.jpg) [function.unlink]: No such file or directory in /var/kunden/webs/kunst2day/plugins/gallery_plugin/_gallery.php on line 643

I never changed anything - the only thing that has changed is the overall URL of the site (without movong any files) - it used to be development under a subdomain and now it is www.kunst2day.de - I changed this setting in my domain account and also in my config file.

any clues what this could be?
Any other ideas what I could do? I really have to finish this site, it is brand new and only a small part of the pictures are there. I appreciate any kind of help I can get.

Balupton is right...you will need to make sure that path is correct again. Also can i have a copy of the source files you modified to have it work for 2.4.1?

Thanks!

550 May 02, 2008 08:20

mochababy wrote:

maxwell wrote:

Hi, I was able to successfully get the gallery plugin (V.1-2-4-4-beta) working on b2evolution 2.4.1 - it worked for a while without any problem (see www.kunst2day.de ) but now everytime I want to upload more pictures - no matter if the upload takes place within an existing gallery or into a new gallery - I get this error message:

Warning: unlink(/var/kunden/webs/kunst2day/media/gallery_plugin/mm-small.jpg) [function.unlink]: No such file or directory in /var/kunden/webs/kunst2day/plugins/gallery_plugin/_gallery.php on line 643

I never changed anything - the only thing that has changed is the overall URL of the site (without movong any files) - it used to be development under a subdomain and now it is www.kunst2day.de - I changed this setting in my domain account and also in my config file.

any clues what this could be?
Any other ideas what I could do? I really have to finish this site, it is brand new and only a small part of the pictures are there. I appreciate any kind of help I can get.

Balupton is right...you will need to make sure that path is correct again. Also can i have a copy of the source files you modified to have it work for 2.4.1?

Thanks!

Sorry, I never changed any source files, I just installed it and it worked fine with the first 8 galleries or so as you can see.

With regards to the path: the path in the error-warning /var/kunden/webs/kunst2day/media/gallery_plugin/
has not changed at all. Are you talking about this one or about the absolute path change from kunst2day.vserver3.antagus.de to www.kunst2day.de ?

551 May 02, 2008 16:39

maxwell wrote:

mochababy wrote:

maxwell wrote:

Hi, I was able to successfully get the gallery plugin (V.1-2-4-4-beta) working on b2evolution 2.4.1 - it worked for a while without any problem (see www.kunst2day.de ) but now everytime I want to upload more pictures - no matter if the upload takes place within an existing gallery or into a new gallery - I get this error message:

Warning: unlink(/var/kunden/webs/kunst2day/media/gallery_plugin/mm-small.jpg) [function.unlink]: No such file or directory in /var/kunden/webs/kunst2day/plugins/gallery_plugin/_gallery.php on line 643

I never changed anything - the only thing that has changed is the overall URL of the site (without movong any files) - it used to be development under a subdomain and now it is www.kunst2day.de - I changed this setting in my domain account and also in my config file.

any clues what this could be?
Any other ideas what I could do? I really have to finish this site, it is brand new and only a small part of the pictures are there. I appreciate any kind of help I can get.

Balupton is right...you will need to make sure that path is correct again. Also can i have a copy of the source files you modified to have it work for 2.4.1?

Thanks!

Sorry, I never changed any source files, I just installed it and it worked fine with the first 8 galleries or so as you can see.

With regards to the path: the path in the error-warning /var/kunden/webs/kunst2day/media/gallery_plugin/
has not changed at all. Are you talking about this one or about the absolute path change from kunst2day.vserver3.antagus.de to www.kunst2day.de ?

if i'm getting this correct the files on the server which refer to your website have not changed? That means when you switched from sub-domain to domain the files remained in the same folder on the server. IF this is what you mean then there should be no issues, but if this is not the case then put in the new path to the folder of your site in the database and that should work.

If it is the first and you have problems i don't know what to tell you i would have to look at the file...i'm giving up on this plugin and i'm trying to develop a plugin for b2 evo based on the lightbox plugin that supports more than one photo in an array. I see your setup but it allows you to see photos out of the gallery...major flaw...among the other little ones. Plus its not quite so lovely for b2evo 2.4.x since only the 1.2.4.4-beta works!

Hope this helps!

552 May 07, 2008 04:43

please forgive me for my ignorance but i just upgraded to 2.4.2 and found out about this plugins. I would really like to know how to get it working. Ive tried to do so and looked at the past 3 pages but didnt really manage to make it work.

Could some1 provide a simple step by step explanation on how to do it.

Like what exactly to modify after a fresh install of the gallery plugin 1.2.4.4 in order to make it work with b2evo 2.4.2

also i already had lightbox installed...should i remove it ?

553 May 07, 2008 06:16

Raisthlin wrote:

please forgive me for my ignorance but i just upgraded to 2.4.2 and found out about this plugins. I would really like to know how to get it working. Ive tried to do so and looked at the past 3 pages but didnt really manage to make it work.

Could some1 provide a simple step by step explanation on how to do it.

Like what exactly to modify after a fresh install of the gallery plugin 1.2.4.4 in order to make it work with b2evo 2.4.2

also i already had lightbox installed...should i remove it ?

nevermind that. i got it working. it was actually the old installation of lightbox. as soon as i removed it the gallery plugin started to work correctly. my only concern is the "preview" thing. I would like for the pictures to open up at their real size instead of having to click LARGE.

554 May 07, 2008 07:02

Raisthlin wrote:

Raisthlin wrote:

please forgive me for my ignorance but i just upgraded to 2.4.2 and found out about this plugins. I would really like to know how to get it working. Ive tried to do so and looked at the past 3 pages but didnt really manage to make it work.

Could some1 provide a simple step by step explanation on how to do it.

Like what exactly to modify after a fresh install of the gallery plugin 1.2.4.4 in order to make it work with b2evo 2.4.2

also i already had lightbox installed...should i remove it ?

nevermind that. i got it working. it was actually the old installation of lightbox. as soon as i removed it the gallery plugin started to work correctly. my only concern is the "preview" thing. I would like for the pictures to open up at their real size instead of having to click LARGE.

nevermind that as well. i found it

555 May 14, 2008 15:40

Raisthlin wrote:

Raisthlin wrote:

Raisthlin wrote:

please forgive me for my ignorance but i just upgraded to 2.4.2 and found out about this plugins. I would really like to know how to get it working. Ive tried to do so and looked at the past 3 pages but didnt really manage to make it work.

Could some1 provide a simple step by step explanation on how to do it.

Like what exactly to modify after a fresh install of the gallery plugin 1.2.4.4 in order to make it work with b2evo 2.4.2

also i already had lightbox installed...should i remove it ?

nevermind that. i got it working. it was actually the old installation of lightbox. as soon as i removed it the gallery plugin started to work correctly. my only concern is the "preview" thing. I would like for the pictures to open up at their real size instead of having to click LARGE.

nevermind that as well. i found it

how have you done this?

556 May 17, 2008 23:24

well it was quite simple actually. I just un-installed my previous lightbox script and everything started to work properly.

but now i have a problem. I was working just fine but now whenever i create a new gallery it will merge with the previous one. like if i upload 4 images the new gallery will contains those 4 images but the user will be able to navigate thru the previous gallery even tho those images arent in that gallery and dont appear as thumb in the post.

also...some images will simply disapear from the gallery.

i havent changed anything...the only difference is that im actually in japan now. any1 got a clue ???

557 May 18, 2008 10:25

I have the same Problem, I posted it already a few posts ago but noone answers. The problem is, that the gallery script counts the gallery in your post. It creates for every picture a 'rel="lightbox[Gallery_X]"' (the X stands for a number), so every picture with an attribute Gallery_1 is in one gallery...

Your gallerys will work fine, if you use the direct link, because there will be only one gallery with the id Gallery_1 but when you show maybe 5 posts, they all will be Gallery_1 so the all appear in one gallery...

I'd try to fix this, using a the servertime instead of the normal count. but this script is completely OOP and I have no experience with OOP and PHP. If anyone will try to fix this bug, the variable "gallery_count" on line 44 in the _gallery.php file is the problem. It starts with 0 and gets increment for every gallery in the same post... should be different for every post....

558 May 18, 2008 13:58

oh well i fixed my problem with the merging gallery. i think its because im in japan now because evrything was working fine when i was home. Japan is 11 hours ahead of my home so when i post something here it mess up. what i did is i check online what time it is at home and scheduled the post and the gallery to be made public 3 minutes after...or 2 or 1. then the gallery works fine and everything is back to normal.

559 Jun 08, 2008 20:39

I've asked this before - probs got answered and I forgot. I LOVE this plugin. I HATE the intermediate image at max 400pixels. In the plugin page is asks you to set your max values for intermediate and large image. I want to set intermediate to 800 pixels so the image goes right to the money in one click. It won't let me go beyond 400 pixles. What file do I need to hack and where to get out of this straight jacket

560 Jul 09, 2008 23:12

[1.10.x] Internet Explore cannot open the site

http://forums.b2evolution.net/viewtopic.php?t=13144

Please see the attached thread and my final post as added below:

Thanks for the advice Blonde...removing the Gallery plug-in immediately solved the problem with javascript...which, of course, leaves me with a dilemma. What do I use to provide similar functionality in B2Evolution. Is something similar built into the 2.x version...this plug-in is not available in v2...or is something else available...or I guess I can try to contact balupton about the plug-in and javascript issues.

Can you help with any of the problem I've been seeing or are these templates and Gallery just incompatible? Thanks.

561 Jul 12, 2008 16:47

stevet wrote:

I've asked this before - probs got answered and I forgot. I LOVE this plugin. I HATE the intermediate image at max 400pixels. In the plugin page is asks you to set your max values for intermediate and large image. I want to set intermediate to 800 pixels so the image goes right to the money in one click. It won't let me go beyond 400 pixles. What file do I need to hack and where to get out of this straight jacket

I changed the following line in the file _gallery.php

			case 'enhanced':
				$r .=
				'<a '.
					//'href="'.$image['image_medium_url'].'" '.
					'href="'.$image['image_large_url'].'" '.

So the link gets created to tha large image...
Works without problems...

562 Jul 13, 2008 23:15

I cannot seem to get to Balupton's site. 500 Errors left and right. Is there another place to get this plugin?

563 Jul 31, 2008 18:38

Since support for this has stopped can someone adopt this project? Is it worth it to port this to the latest 2.x ?

What are people doing for photos? Is there an alternative?

564 Jul 31, 2008 18:39

Currently I'm using the Thumbnail plugin.

565 Oct 06, 2008 13:20

PadreSol wrote:

Since support for this has stopped can someone adopt this project? Is it worth it to port this to the latest 2.x ?

I must agree with PadreSol. This is a brilliant plugin, and I would really have liked to see it updated to the latest version...
Is it possible to adopt it? Are anyone interested in adopting it?

566 Oct 13, 2008 04:44

why nothing happens when I click "gallery" in the write entry box ?

567 Oct 15, 2008 03:29

jfeia,

As is stated earlier in the thread if you are using b2evolution > 2.0 then the gallery plugin is not supported and doesn't work. Hopefully someone can pick it up because it seemed pretty popular but at the moment there aren't a whole lot of plugin developers.

568 Feb 15, 2009 21:17

würmchen wrote:

I changed the following line in the file _gallery.php

			case 'enhanced':
				$r .=
				'<a '.
					//'href="'.$image['image_medium_url'].'" '.
					'href="'.$image['image_large_url'].'" '.

So the link gets created to tha large image...
Works without problems...

Thanks, its works fine.

but, only with new gallerys. I need edit all old gallerys to work.

Any chance to auto fix all old gallerys?

569 Apr 08, 2009 20:35

I've got the same problem, "sorry there are no images to be displayed" since the upgrade to 3.1... what a bummer!

570 Jun 12, 2010 20:57

Helo,
I can't find the Gallery Admin area.

The button "Gallery" show at text area, but nothing happening when I click it.
What I'm doing wrong?

Ok, I found that it's do not support b2evolution v.3.3.3
:'(


Form is loading...