WPSary - Gallery Plugin
Janoary 30th, 2007 at 10:40 am (Wordpress, Plugin)
When I installed Wordpress MU, I was looking for a photo gallery like in Lifetype… but I couldn’t fine one. So I tried to create mine.
Of course there is already FAlbum (flickr album) which fetches images from flickr but what I needed is a way for people to upload their image in the server.
Installation
Just drop everything unzipped into your mu-plugins folder
Configuration
The main menu to manage the Photo Gallery is in Manage -> Photo Gallery
Each user sets where he/she will show the gallery. The default is blogurl/?p=gallery but it can be changed. Other options can also be set.
Once saved, the Photo Gallery is activated. To add an album, go back to Manage->Photo Gallery. You can add albums first then upload photos in them.
Demo
- Inside Wordpress 2.0 http://vetso.free.fr/wp/?p=gallery
- Inside Wordpress MU 1.0 http://hery.blaogy.org/gallery
To do
Those are some future plans before I release this plugin
- Sub-albums
- Album and photo comments
- Plugin (for TinyMCE or REGEX) to insert images into post
Downloads
ChangeLog
NB. Bug reporting comments are removed when the bug is fixed.
- Beta 0.9.8 (26-Mar-2007)
- Next and Previous button in photo page. Thanx to Koppi
- Beta 0.9.7 (9-Feb-2007)
- Give access to Authors Thanks to JLH
- Beta 0.9.6 (9-Feb-2007)
- I changed the maybe_serialize function. Now it should work for other versions of WPMU
- Beta 0.9.5 (07-feb-2007)
- Some fixes for localization support (Thanks to Nonoco)
- French Language
- Malagasy Language
- Beta 0.9.4
- Ready for localization (added the ‘wpsary’ domain for all text message)
- Beta 0.9.3
- Fixed Page Title As reported by JLH
Febroary 5, 2007 at 5:05 pm
Hello, I intalled your plugin on Wordpress MU, but I get the following error:
Parse error: parse error, unexpected T_ELSE in C:\…\wp-content\mu-plugins\wpsary\wpsary-admin.php on line 420
Febroary 5, 2007 at 5:29 pm
Please check your file at that line and compare to the source.
Maybe it is corrupted.
Mine is ok.
Febroary 5, 2007 at 7:42 pm
I don’t know what I’m doing wrong. Dropped WpSary folder and wpsary.php into the mu-plugins folder, but all I get is that error when I reload. Thank you very much for the help.
Febroary 7, 2007 at 8:32 am
I installed your plugin. It works lovely.
I will look here for the new version.
Good job
Febroary 7, 2007 at 2:11 pm
I translate it in French. But i can’t use it.
I put the file in lang/wpsary-fr_Fr.mo
Is it a bug..?
Febroary 7, 2007 at 2:22 pm
I don’t think it is yet ready for gettext. I have to add the wpsary domain to all the messages and the function load_plugin_textdomain(’wpsary’,'wp-content/mu-plugins/wpsary’).
Ok that can be done right now…
Febroary 7, 2007 at 4:05 pm
I have do it. It works lovely in French.
If you want, my file you can download it here : http://aquablog.fr/wpsary-fr_FR.mo
Febroary 9, 2007 at 5:39 pm
Can other roles, contributer etc, add items to the gallery or just the admin?
Thanks!
Febroary 9, 2007 at 5:58 pm
hi mr
i use this plugins in my wordpress mu and when i upload an image this error appear ? what can i do? how can i use your plugin?
Fatal error: Call to undefined function: maybe_serialize() in /xxxxxx/wp-content/mu-plugins/wpsary/wpsary-admin.php on line 177
Febroary 9, 2007 at 6:20 pm
emra> I use the function maybe_serialize in this plugin and I just discovered that it is a new function in WPMU.
http://trac.wordpress.org/browser/trunk/wp-includes/functions.php#L402
Ok I may remove that and create a similar one
JLH> Don’t know yet how other roles deal with plugins.. I’ll check
Febroary 9, 2007 at 7:33 pm
I made a small change to let the authors view the gallery.
changed line 73 of wsary.php
from
add_submenu_page(’edit.php’, ‘Photo Gallery’, ‘Photo Gallery’, 8, ‘wpsary’, ‘wpsary_adminPage’);
to
add_submenu_page(’edit.php’, ‘Photo Gallery’, ‘Photo Gallery’, 2, ‘wpsary’, ‘wpsary_adminPage’);
Febroary 9, 2007 at 11:23 pm
JLH> Thanks… I made the modification in 0.9.7
Febroary 10, 2007 at 8:22 pm
thanks admin now its work perfect… but i think the image name seen on the title i want to this the next release… thanks…
Febroary 22, 2007 at 3:31 pm
Hi.
I’ve got problem when i try to upload photos. Files aren’t uploaded into server, although i got info that ” Image successfully uploaded”. What i have to do?
Febroary 22, 2007 at 3:38 pm
I use the wp standard upload system.
Can you upload files at all in your wordpress? I mean other files or images in pages or post?
Febroary 22, 2007 at 4:43 pm
huh i can’t upload any files, so everything clear.
Febroary 28, 2007 at 7:05 pm
any new version..?
Martsa 5, 2007 at 3:32 am
When I installed your plugin to my WPMU 1.1.1 installation I get the following erorrs:
Warning: main(/home/stmarys/public_html/blogs/wp-content/mu-plugins/wpsary.php) [function.main]: failed to open stream: Permission denied in /home/stmarys/public_html/blogs/wp-settings.php on line 222
Warning: main() [function.include]: Failed opening ‘/home/stmarys/public_html/blogs/wp-content/mu-plugins/wpsary.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/stmarys/public_html/blogs/wp-settings.php on line 222
Any ideas? I’d love to get this working, it looks like an awesome plugin!
Martsa 10, 2007 at 2:27 pm
hello i got the same error taht Stuardo have but i dont can fix it can anybody explain me wat i must do?
Martsa 14, 2007 at 3:18 pm
Is there a way to install “next” and “previous” links in the individual photo pages?
Martsa 19, 2007 at 1:14 pm
Thanks for the plugin but I got same error with Alex for wpmu 1.1.1
BTW, those are pretty pics, is she your gal?
Martsa 21, 2007 at 2:07 am
Gee, is a response on the way? The plugin works fine but is there a way of viewing the photos as a series without using the browser’s back and forward buttons?
Martsa 21, 2007 at 2:09 am
Oh, by the way, for those getting errors, drop the plugin in the “plugins” folder — not in “mu-plugins”.
Martsa 23, 2007 at 12:24 pm
Connie> ok… I have that in the feature list.
Joseph> If I said yes… would you believe?
A new version will soon come
Martsa 25, 2007 at 8:27 pm
I created a small patch which implements next and prev links on the photo pages. you may download it at http://weirdoz.net/downloads/wpsary-0.9.7.diff
Martsa 26, 2007 at 12:10 am
Thanx Koppi. I’ll test and apply your patch tomorrow if ok.
Martsa 26, 2007 at 9:39 pm
I tried the plugin and it seems to work in either the mu-plugins folder or the plugins folder.
The problem is when I upload something, I dont get any thumbnails, Sorry if I have missed something in the directions.
I just installed .98 to test, and I am still having the problem.
thanks
Martsa 28, 2007 at 10:31 pm
Figured it out, I Needed to install php4-gd and also gd-devel
so I am using fedora 6 I typed yum install gd-devel
then yum install php4-gd
I had already did a yum install php-gd for php 5
hope this helps someone else.
it is working great now…
Aprily 1, 2007 at 5:03 pm
Oh, thank you, thank you for the next/previous feature.
Aprily 2, 2007 at 11:27 am
Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in /var/www/html/ConstantConversation/wp-includes/link-template.php on line 53
any ideas???
Aprily 4, 2007 at 10:18 pm
So far the plugin is working great in wordpressmu 1.2.1 I have a question though. I created a page through wordpress and then changed the desired path to photo-gallery so that when I click on the photo-gallery page it brings up the gallery.
Is that the way it is supposed to work? Maybe I am being a little confusing, take a look at http://bill.checkmyhead.com/ and you will see photo-gallery at the top when you click it it opens the gallery, which is good, the only problem as I would need to explain to users that they need to create a page to make this happen, right in the configuration screen would be a good spot for these directions.
Aprily 9, 2007 at 3:03 pm
Hi, the plugin looks great but u need to do something about the way it activates photo gallery. Most photo bloggers do not understand these instructions.
What I suggest is, the default values should be activated once the plugin is installed so the users can directly start creating galleries/albums and upload pictures. The options link should be kept separate, also it would be a great idea to incorporate creating albums or inserting images from albums in the writing post area also.
I am sure this plugin will become a lot popular.
Aprily 15, 2007 at 10:41 pm
Hello, just installed and this looks very promising! I was just thinking about how to make gallery2 work in my wpmu site in development since I use it in many single user sites. Think I like this solution better!
I got it installed just fine and uploaded some images, but am having a few issues. I cant get any thumbnails on either the site or in the admin section. I saw Bill’s comment, but not sure adding php-ged is the issue or not. Havent checked yet to see if its already installed. What I did notice is that the links to all the thumbnails are incorrect. They all have double // in the path like below:
…/blogs.dir/1/files//album/
any thoughts?
The files were uploaded correctly as the photo page works (400×300 size) and the full size photo also comes up.
Aprily 16, 2007 at 1:38 pm
I wonder if this plugin is still being developed. Didnt hear from the author for quite some time. Does anyone know of a similar plugin ?
Aprily 16, 2007 at 7:35 pm
Is there anyway to add a `rel=”lightbox”` attribute to the photo links, and remove the `target=\”_blank\”` when on the photo page. I use lightbox on my blogs and I think this would be a great way of showing fullsize.
I tried removing `target=\”_blank\”` and instead wrote `rel=\”lightbox”` but that did not work, I got an error.
Any ideas?
Aprily 22, 2007 at 10:04 pm
I second the lightbox idea..
How about multiple additions? If I have 40 pics to add, doing it one by one would take forever..
Aprily 25, 2007 at 3:30 am
looks abandoned… time for another solution?
Aprily 25, 2007 at 8:58 am
I develop this according to my need
Some ideas come up and I add it in the feature list.
Aprily 25, 2007 at 4:34 pm
np… just thought you had disappeared… still having issues getting it working though…
anyways, found something odd and perhaps the reason for the // in my post above… will have to try when I get home tonight…
From wp-settings.php, the definition of UPLOADS - note the trailing slash
define( “UPLOADS”, “wp-content/blogs.dir/{$wpdb->blogid}/files/” );
From wpsary-admin.php function wpsary_getUploadDir()
if ( defined(’UPLOADS’) ) {
$dir = ABSPATH . UPLOADS;
$url = trailingslashit($siteurl) . UPLOADS;
}
$dir .= “/album/”;
$url .= “/album/”;
the upload directory (from UPLOADS) has a trailing slash already on it and the appending of /album/ which doubles up the /
Aprily 26, 2007 at 2:57 am
well that helped… but still no luck… strange… no image works… uploaded fine… thumbnail created fine… but they wont display…
links/img src in the admin pages and the display pages are correct, but the image wont show… If I put the url to the image directly into the browser url,the image doesnt display either, but instead, the path to the image is echoed in the broswer window… the browser even appears to think the url text is an image…
if I ftp the file itself to my pc and then open in graphics program, the image displays properly…
any thoughts?
Aprily 26, 2007 at 3:01 am
doh! The text is just simple the alt text…. still dont know why the image wont display…
Aprily 26, 2007 at 4:25 am
hooah! problem solved, I think… turns out my host had the php readfile() function disabled… which is used in the wpmu blogs.php file which handles the uploaded files serving… thus the display of the image was disabled…
got my host to turn it on and voila, working…
Aprily 26, 2007 at 9:50 am
Mr Papa> As I said in #15 above. I’m using the WP upload function. If you can upload any file (or image) with WP then you can upload images.
Aprily 26, 2007 at 2:35 pm
The problem wasnt with the upload feature… that worked fine… however, for me the problem was with the way wpmu displays or serves uploaded files of specific mime types with the wp-content/blogs.php file (via an htaccess rewrite rule) and its use of the readfile() function.
my host had it turned off because there are some security holes with the use of that php function.
now I can anxiously await future versions…
Aprily 27, 2007 at 8:39 pm
Hey since, we are in the replying mood, maybe someone can tell me if we can get a multiple upload feature? Something to make it easier to upload a bunch of pics at a time?
Aprily 28, 2007 at 7:00 pm
In concert with Kevin’s request, it would be nice to add images that are already uploaded to the server.
Aprily 28, 2007 at 7:52 pm
Hey Mr. Papa, are you using MU or regular WP?
Aprily 28, 2007 at 7:55 pm
wpmu
Mey 2, 2007 at 7:08 pm
[…] added WPSary - Gallery Plugin to iBlog365.com. All users now can create his/her own photo albums and upload photos immediately. […]
Mey 5, 2007 at 9:59 pm
[…] на сезона е буквално току-що инсталираното разширение wpsary, което позволява да създавате свои собствени албуми […]
Mey 6, 2007 at 7:18 pm
sexy girls
Mey 8, 2007 at 11:47 am
Hi,
Alas, the plugin breaks most themes badly — due to the plugin’s reliance on its own custom-coded index, album and photo pages, rather than simply dropping the relevant content into the currently-selected theme. Any chance of a restructuring that would allow the plugin to work with themes?
Thanks,
Greg
Mey 8, 2007 at 11:57 am
Yes it breaks because it pretends to be stand alone (self criticism)…
I’m learning all wp coding to see how it should be dropped in the content.
That was an attempt, and it still works for some (for me for example) but for sure to be more standard, I’ve to change it.
Keep tuned.
Mey 31, 2007 at 2:57 am
Hello, may I know why am I getting this error? I’m testing the plugin on my WPMU 1.1.1 in a local WAMP server.
Parse error: parse error, unexpected T_ELSE in C:\wamp\www\wpmulive\wp-content\mu-plugins\wpsary\wpsary-admin.php on line 420
I would appreciate if anyone here could lead me to making this work with wpmu?
Mey 31, 2007 at 8:37 am
I don’t see where is the problem.
Can you please try to download this. I added a missing “;” which didn’t create any problem before.
Jiona 20, 2007 at 6:02 pm
Hello Hery,
I can’t really seem to make it work with wpmu 1.2.1 even in previous versions. Maybe because I’m testing it on my local computer? Could you please let me know if it really works with wpmu 1.2.1 ?
Thanks,
Jolay 4, 2007 at 12:30 pm
Hi,
Thanks …
Can you please add comment for photo section ???
Jolay 25, 2007 at 8:39 pm
[…] haben das Wordpress Mu Plugin WPSary - Gallery in unseren Stadtlog.com Service aufgenommen, jedem Weblog steht ab heute eine Galerie zur […]
Jolay 25, 2007 at 9:23 pm
Hi,
we have translated it in German. But it doesn´t work. Please look here for the german file. Can you help us to solve the problem or include it to your source.
Thanks,
Maarz
Septambra 15, 2007 at 7:31 pm
Hi, how can I set the other language? I have translated teh PO file and exported it to MO, but I cant find a way to let your gallery use it
Septambra 26, 2007 at 5:35 am
Very nice plugin, great job!
I would be nice if users or authors can only create and edit their own album, just like how wordpress does with the post settings where only the author can edit the post beside the admin. If it’s possible please make it happen. Thanks a lot.
Oktobra 20, 2007 at 4:36 pm
Hello again,
now the german file works with wpsary, look here.
Greetings
Maarz
Novambra 13, 2007 at 9:02 am
He was right, Joel had an disgustingly homogeneous thruound peeing between his legs. I looked at him in disbelief. http://celeb-porn-movie.britney-sextape.in/
Novambra 20, 2007 at 5:30 pm
Give up the ghost
Novambra 28, 2007 at 10:40 pm
Accidentally on purpose
Novambra 29, 2007 at 1:01 am
Meat and drink
Novambra 29, 2007 at 3:26 am
Counting sheep
Novambra 29, 2007 at 8:08 am
Good riddance
Novambra 29, 2007 at 10:51 am
Bad hair day
Novambra 29, 2007 at 8:46 pm
Pond life
Novambra 29, 2007 at 11:05 pm
Cash on the nail
Novambra 30, 2007 at 1:13 am
Bone idle
Novambra 30, 2007 at 1:19 am
Curry favour
Novambra 30, 2007 at 3:48 am
Talk to the hand
Novambra 30, 2007 at 8:32 am
Shanks’ mare/shanks’ pony
Novambra 30, 2007 at 8:33 am
Agree to disagree
Novambra 30, 2007 at 4:12 pm
Haven’t got a clue
Novambra 30, 2007 at 6:17 pm
Tits up
Novambra 30, 2007 at 8:29 pm
Below the salt
Desambra 1, 2007 at 6:06 pm
Hello alli have baG with
.gerber life insurance
Desambra 24, 2007 at 4:58 pm
thanks for writing this plugin..
Desambra 25, 2007 at 2:34 am
new life ministry nyc
Desambra 28, 2007 at 7:29 pm
What code looking like that shoul I put on sidebar to see the galerie ?
It look something like that, but can’t found for galerie script !!
Which Code should I put on sidebar ? thanks you verry much
Desambra 28, 2007 at 7:30 pm
Desambra 28, 2007 at 7:30 pm
…