New verison of Simple module (for easy uploads and editing)

nkurz

Joined: 2005-08-16
Posts: 12
Posted: Fri, 2005-09-02 07:08

I did some more work on the 'Simple' module that I was working on. The general goal is to make it easier for non-computer experts to upload photos to a group website. It provides a parallel upload and editing interface that removes most of the confusing options. It's still far from perfect, but it's getting to the point where it meets my needs.

*) Uploads from web browser (autonaming, etc)
*) Simple editing (only description and title)
*) AJAX style rotate of photos
*) Allows user to delete only photos/albums they own
*) Create a new album to hold photos
*) Hides all the permissions and confusing stuff

Test site is available at http://test.notate.net/gallery.

Current version attached, but if you have already installed the first version please 'uninstall' it before trying to upgrade to this one. I changed the permissions around a bit to make them simpler, but didn't get the upgrade function working properly.

AttachmentSize
simple_0.1.0.tar.gz15.41 KB
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-02 07:20

cool :)

i guess we'll some day need to find a balance between this almost uber simplification and the current g2 GUI.

could you please update your entry in http://codex.gallery2.org/index.php/Gallery2:UserContributions#Modules (first row)?
just register on the codex page and edit the table.

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Sun, 2005-09-04 08:52

nice :)
wouldn't it be nice if a user (let's say a kid..) could simply click on a "simpler version" link "anywhere"..so maybe as a link in album/item actions.
My users for example sure to have problems finding the way they could adjust the theme for their albums, but on the other hand, couple of other users needs all the functionality, so i can't simply set Simple to be the default :)
(and as far as i understand this module, atm it is on/off, fixed)
just an idea..

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-09-04 18:00

Having a way to switch themes based on just a user session for the visitors and just not people who can edit the albums has been discussed. I hope this is something that comes to be in the future.

 
ytauctions

Joined: 2005-09-03
Posts: 18
Posted: Mon, 2005-09-05 05:58

I have downloaded Simple, uploaded the module un gallery2/modules.
Then I have Installed Simple in the Administration, then activated it.
I have made a ziped file of about 60 pic called Voyage.zip.
In the Upload file menu, I entered the c:\I M A G E S\Voyage été 2005\Voyage.zip.

When I click on Upload file, I get the http://www.dentsdelion.com/gallery2/main.php web page, with an error message: The page cannot be displayed

I must do something wrong.

Haru

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2005-09-05 06:12

I doubt this is related to the theme. Please post your system info and a link to phpinfo as described here, http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F

Also, how large was that zip file and did you have directories in the zip file or did is it flat?

 
ytauctions

Joined: 2005-09-03
Posts: 18
Posted: Mon, 2005-09-05 07:09

Flat.

It finaly uploaded, when I made it smaller than 8MG, my mistake in the first place.
It loaded, but I see it nowwhere...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2005-09-05 18:33

I can only repeat myself

Quote:
Please post your system info and a link to phpinfo as described here, http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F

 
ytauctions

Joined: 2005-09-03
Posts: 18
Posted: Tue, 2005-09-06 01:24

System info:

Quote:
Last Run Details:

Gallery version = 2.0-rc-2+ core 0.9.37
PHP version = 4.3.10 cgi
Webserver = Apache
Database = mysql 4.0.20-Max
Toolkits = ArchiveUpload, Exif, ImageMagick, Gd
Operating system = Linux phantom.xssl.net 2.4.21-32.0.1.ELsmp #1 SMP Tue May 17 17:52:23 EDT 2005 i686
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

My page is here: http://www.dentsdelion.com/gallery2/

phpinfo here: http://www.dentsdelion.com/gallery2/phpinfo.php

The problem is such: I have uploaded 2 ZIP files of about 5-6MG, with Simple Module, getting a message "successful loading", but I don’t see those images appearing in my album.
Also, if I ftp to my site, there is only one file, loaded separately, in my /var/www/html/gallery2/g2data/albums folder.

Thank you so much for your help.

Haru.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2005-09-06 13:30

Well, you can only upload 2MB files, upload_max_filesize = 2M

Your total upload can be 8M, post_max_size = 8M

But that means you would have to upload 4, 2MB files.

I haven't really looked at it closely, but perhaps this Simple Module is stripped down to be just a little too simple and isn't giving basic messages about upload file size.

http://codex.gallery2.org/index.php/Gallery1:FAQ#Why_can.27t_I_upload_big_files_.28over_a_megabyte_or_two.29.3F

 
ytauctions

Joined: 2005-09-03
Posts: 18
Posted: Tue, 2005-09-06 13:52

It works! I uploade 5 pictures totaling 1MG, and it worked.

Now, is there a better way to upload more file, like 20 or 40 at a time? Another module or a program?

Thank you for your precious help!
Haru.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2005-09-06 14:08

You can either try changing the upload_max_filesize value, instructions are in the link I provided above, or you can "Upload From Local Server". That's a standard method shipped with Gallery. You'd upload the zip file to the server and upload from there. A valid "upload directory" needs to be specified in Site Admin > General first.

I'm not familiar with this Simple Module/Theme, so I don't know how it works, what it changes or what's available.

 
ytauctions

Joined: 2005-09-03
Posts: 18
Posted: Tue, 2005-09-06 14:16

I see. I will try that.
Thanx again.
Haru.

 
ytauctions

Joined: 2005-09-03
Posts: 18
Posted: Tue, 2005-09-06 14:27

I tried. It works.
Once I have uploaded the file from my server, I guess I can delate the Zip file that I FTPed?
Haru

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2005-09-07 14:16

Yes you can delete the file after you're done with it.

 
Kevin7654

Joined: 2005-09-08
Posts: 14
Posted: Mon, 2005-09-12 18:05

thanks for putting together this simple module

I've installed version 0.1.1 and activated it in the admin options panel. But how do I set it up where all users use this view by default? (I'd prefer the admin to have the normal view if thats possible)

Thanks,
Kevin

 
hqtrung

Joined: 2005-09-30
Posts: 2
Posted: Mon, 2005-10-03 11:19

do you have message.po file for this modules ?

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Thu, 2005-10-27 12:12

Kevien7654, You have to remove all other permissions than simple. ones i guess.

hqtrung..you have to 'make'..but not all of the text in this module is translateable..

nkurz: any update on the module? :)

 
igrcic
igrcic's picture

Joined: 2005-04-19
Posts: 78
Posted: Thu, 2005-11-10 16:52

You dont even have to remove rest of the permissions, because links for ur simple modules are edit THIS photo, edit THIS album... i changed them to Simple edit album and simple upload picture...so user can choose :) tnx for this module

 
junkfood

Joined: 2005-11-22
Posts: 5
Posted: Tue, 2005-11-22 08:37

I love the "simple" module. It's just what I wanted for my users. But how do you turn off the other options, so that they only see the ones from "simple"? I only want Registered Users to see the options included in Simple.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-11-22 09:52

maybe disable some modules in site admin -> modules and manage blocks in site admin -> themes -> matrix and edit permissions by browsing to your top album and clicking edit permissions.

 
junkfood

Joined: 2005-11-22
Posts: 5
Posted: Tue, 2005-11-22 13:43

I tried in the Edit Permissions of the top gallery, I tried giving Registered Users only those rights listed with the "[simple]" tag. But I can still see the "Album Actions" drop down when I log in as a normal registered user. And I still get all of the standard album options for that user.

I tried removing everything from the Matrix admin and I still see the album actions drop down. I have to add back "Item actions" to the sidebar to see the "simple" commands.

As far as the modules, I'm not sure what I should disable. Any suggestions?

The way the demo at the top is set up is perfect. Only the basic "simple" options - upload photos, edit ablum and edit photos. And all are the simple screens. I must be missing something.

 
junkfood

Joined: 2005-11-22
Posts: 5
Posted: Tue, 2005-11-22 16:27

HEY - it works. I created a new account and all new accounts created are only seeing the "Simple" options. Awesome.

I hate to be a further pain, but if anyone has an idea about how to get users back to their albums, I would appreciate it. Using the simple module, I turned off the link to "Your Album" because that page has all of the options I want hidden. That's great except if someone wants to come back and add more photos to their album they are going to have to search for it. Could be a pain if I get a lot of albums.

 
junkfood

Joined: 2005-11-22
Posts: 5
Posted: Tue, 2005-11-22 16:36

Also, does anyone know how to prevent users from adding photos to Albums created by other users?

 
jblucher

Joined: 2004-12-25
Posts: 3
Posted: Sun, 2005-12-04 05:48

Great work. One suggestion: Add an option to add the image to either the beginning or end of the album.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2006-01-11 16:50

Here is the module updated for current CVS / Gallery 2.1
(not tested.. hopefully I updated everything correctly)

 
Fuji86
Fuji86's picture

Joined: 2006-02-16
Posts: 12
Posted: Thu, 2006-03-09 14:33

How do I set it up, that the admin hasn’t the simple links in the sidebar? (I have the Gallery 2.0.3)

I have tried to edit the modules\simple\module.inc at line 100

if (isset($permissions[$itemId]['simple.edit_all']) ||
(isset($permissions[$itemId]['simple.edit']) && $ownsItem)) {
/* only for images and not on the gallery view page */
if ( ! $isAlbum && isset($wantsDetailedLinks[$itemId])) {
$links[$itemId][] = array('text' => $this->translate('Edit This Photo'),
'params' => array('view' => 'simple.SimpleEdit',
'itemId' => $itemId,
'return' => 1));
}
}

To

if ($user.isRegisteredUser) {
if (isset($permissions[$itemId]['simple.edit_all']) ||
(isset($permissions[$itemId]['simple.edit']) && $ownsItem)) {
/* only for images and not on the gallery view page */
if ( ! $isAlbum && isset($wantsDetailedLinks[$itemId])) {

$links[$itemId][] = array('text' => $this->translate('Edit This Photo'),
'params' => array('view' => 'simple.SimpleEdit',
'itemId' => $itemId,
'return' => 1));
} else {}
}
}

It happens nothing.
I’m not very well versed in those things, can anyone help me, please?

And sorry for my bad english - I should have better watched out in school ;)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2006-03-09 17:00
list ($ret, $isAdmin) = GalleryCoreApi::isUserInSiteAdminGroup();
if ($ret->isError()) {
    return array($ret->wrap(__FILE__, __LINE__), null);
}
if ($isAdmin) {
    return array(GalleryStatus::success(), array());
}

put that above the foreach loop in getItemLinks.

 
Fuji86
Fuji86's picture

Joined: 2006-02-16
Posts: 12
Posted: Thu, 2006-03-09 18:40

THANK YOU!It works. Thanks for the effort!

Leon

 
youpi

Joined: 2005-06-17
Posts: 35
Posted: Fri, 2006-04-21 16:40

hi i use the simple g2.0 but i have a problem with the module.

When i want to upload a picture, i get this error :

Quote:
Error (ERROR_BAD_PARAMETER) : Controller results are missing status, error, (redirect, delegate, return)

* in main.php at line 211 (gallerycoreapi::error)
* in main.php at line 87
* in main.php at line 80

I use the Blacjack release 2.1

 
trampic

Joined: 2006-05-01
Posts: 1
Posted: Mon, 2006-05-01 17:31

How to install this file to gallery?
May are you upload it in other format?

 
rajaito

Joined: 2004-06-13
Posts: 22
Posted: Fri, 2006-05-05 23:26

Hello. I am using XoopsGallery which is basically G2.1 converted module for XOOPS 2.0.13.

I have installed your simple module and it works most beautifully. However, by default all new users are automatically given FULL ACCESS to their album when it is made for them by G2. I do wish to have the users gallery made for them, but I would rather them only be given SIMPLE permissions by default.

Can you assist?

 
rajaito

Joined: 2004-06-13
Posts: 22
Posted: Sat, 2006-05-06 22:40

I discovered the only way to do this is to disable the your album link. It then forces the new albums to be created by simple mod only.(except for admins)

 
anonp

Joined: 2006-07-04
Posts: 12
Posted: Tue, 2006-07-04 09:49

Hello.

I would like to let the user add or update custom fields with Simple. Can someone give me some pointers on how to do this? Can I include custom fields' template in Simple? Please help.

Thanks.

 
Jthomps

Joined: 2006-07-12
Posts: 7
Posted: Tue, 2006-08-01 20:28
Incompatible module! 
Core API Required: 6.0 (available: 7.2) 
Module API Required: 2.0 (available: 3.0) 

I recieve this error when I tried to get the module going. How would I go about fixing this little error? It appears in the modules page of the site admin. Thanks.
__________________________________________
Gallery version = 2.1 core 1.1.0
PHP version = 5.1.2 isapi
Webserver = Microsoft-IIS/6.0
Database = mysql 5.0.18-nt, lock.system=database
Toolkits = Exif, Thumbnail, ImageMagick
Acceleration = none, none
Operating system = Windows NT NSENGWEB 5.2 build 3790
Default theme = matrix
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2006-08-01 21:44

get the right version of the module for the Gallery version you are using..
http://codex.gallery2.org/index.php/Gallery2:User_Contributions

 
Jthomps

Joined: 2006-07-12
Posts: 7
Posted: Tue, 2006-08-01 21:51

Makes sense, thanks!

 
Jthomps

Joined: 2006-07-12
Posts: 7
Posted: Wed, 2006-08-02 20:26

I'm having another strange problem. The Simple Module works great and I love it, however, it only works when logged in as an Admin. As soon as I test it with any other account, I get:

Security Violation 
The action you attempted is not permitted. 

Back to the Gallery

I gave Everyone (under Group Permissions) the ability to upload, edit and delete using Simple... so permissions shouldn't be an issue.

Strannnge... Anyone have a clue?

 
gowdy

Joined: 2005-10-27
Posts: 18
Posted: Fri, 2006-08-11 08:38

I'm using version 0.2.0 with Gallery 2.1.1. I've done this before but perhaps that was before upgrading Gallery from 2.0.x... it doesn't rotate images now. Sometimes the web browsers says there was no reply and sometimes it says the rotation failed. Any ideas what is wrong?

 
anonp

Joined: 2006-07-04
Posts: 12
Posted: Wed, 2006-09-27 01:54

Hi,

I have just installed both the simple module and the quota module. Unfortunately, they are not compatible. Quota module's messages are not display by the simple module and if you exceed your quota, simple module will bomb out w/o any error message to tell the user what has happened.

Please help.

 
juliusbarra

Joined: 2006-10-07
Posts: 2
Posted: Sat, 2006-11-04 14:09

Gallery 2.1.2. installed simple module ver. 0.2.0.

Installed and actived were ok, but nothing is changed. Admin and new users have always the full edit and add photo.

Do I have to set something somewhere?

Thanks.

 
anonp

Joined: 2006-07-04
Posts: 12
Posted: Mon, 2006-12-04 10:46

Hi all,

I paid someone to fix the incompatibility between Simple and Quota. And I want to contribute this fix back to the community. So, here you go. :)

Alvin

PS. How to make an animation in minutes - www.MySkits.com

 
kwanbis

Joined: 2006-11-08
Posts: 22
Posted: Wed, 2006-12-06 18:08

I like this idea. I actually feel that one of the problems with G2, for newbies, is the upload module.

I would like the option of either, selecting many pictures, or selecting a folder, instead of a zip. Newbies won't be doing zip files.

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Fri, 2006-12-15 01:18
kwanbis wrote:
I like this idea. I actually feel that one of the problems with G2, for newbies, is the upload module.

I would like the option of either, selecting many pictures, or selecting a folder, instead of a zip. Newbies won't be doing zip files.

These are options in the upload _applet_

 
tomsawyer123
tomsawyer123's picture

Joined: 2002-07-24
Posts: 81
Posted: Tue, 2007-01-09 13:43

please check my post:
http://gallery.menalto.com/node/59157

The user interface for upload used by multiply.com is great!

Let me know what you think.

Florian

 
L5eoneill
L5eoneill's picture

Joined: 2004-07-02
Posts: 16
Posted: Fri, 2007-02-09 19:18

Someone else asked it but it never was answered:

Quote:
I would like to let the user add or update custom fields with Simple. Can someone give me some pointers on how to do this? Can I include custom fields' template in Simple? Please help.

I'd really like to do this. And if it can be done with a basic template inclusion, in which file and where? Any help appreciated.

Also, after entering Title and Description, was returned to the top level of G2, not the album in which the photo was added. Is that a setting I can fix somewhere? Perhaps better is to go straight to the newly added photo, so folks can see if they are happy with the results.

This installation of G2 is a "member directory", and we wish to hand out the instructions in a couple of days. Hope there'll be a solution soon!

thanks,
--eon--

 
L5eoneill
L5eoneill's picture

Joined: 2004-07-02
Posts: 16
Posted: Fri, 2007-03-02 19:06

Sorry nobody has had anything to say about "Simple" and Custom Fields...

Another topic, though: the Simple module appears to strip double-returns from the description field during Edit. Is there a fix for that? It's a royal pain, every time you want to edit a description, to have to spot the line breaks in the text and put a second -Return- on each one.

Of course, it would be better if G2 would simply render each paragraph as a properly html-coded < p >text< /p > paragraph, but that is presumably not under the control of the Simple module.

--eon--

 
zdiva

Joined: 2007-07-18
Posts: 14
Posted: Fri, 2007-07-20 23:33

I just installed the simple module 0.2.0 and it works very well. But I need more permissions than the module offers - namely the rearange/reorder/move permissions. The other module, I was considering is the Jens permissions. This module allows the owner to move the picture but unfortunately it also uses the core.edit which I do not want for my users because of the complexity and confusing nature. Now, my question is how do I either 1) add needed permissions - reorder/rearrange/move - to simple module or 2) call simple module - edit, create and update from within jensperms?

 
zdiva

Joined: 2007-07-18
Posts: 14
Posted: Tue, 2007-07-31 12:20

I'm sort of answering my own question here. I find the simple module way superior to the core.edit/upload and just right for my non-computer savvy users. I wish I could use it. But I realy need the move/rearrange option - otherwise, I - the admin - have to move things around for my users who have to email me each time they need to change the order for whatever reason, mainly because they have made mistake when they were uploading the stuff! It is very frustrating for me and for my users since we have thousands of pictures!

I could not figure out how and where I can modify the simple module itself, so I looked how I can use the jensperms which has the move/arrange option built in and a simple module for uploads/edits. I figured out how to substitute the core edit in jensperms with simple module edit. Just changed core.edit to simple.edit in module.inc in jensperms, and voila! Works OK.

BUT, that does not solve my other problem - moving/rearraging the items! In order for jensperms move option to work, you have to give the core.AddItem & core.AddAlbum permissions to the user. And that destroys the whole purpose because it also gives the user all the edit caboozle - edit permissions, change themes, etc, etc. - the stuff I wanted to avoid in the first place!

So back to square one!

 
andrabr

Joined: 2007-09-05
Posts: 18
Posted: Fri, 2007-09-07 02:52

When trying to upload via "Simple" module I consistently get an error (see details below).
It appears even when I have ALL other modules disabled and even with an empty album. Does Simple depend on some other module?

I am able to upload images normally by other means.
I have not seen other database problems (not yet, but it's a new installation).

Please do not hesitate to contact me for more debugging/experimenting - helping to debug is my way of saying "thank you".
A>

---------------------------------------------------------------------------
Error Detail -
Error (ERROR_STORAGE_FAILURE)

* in modules/core/classes/GalleryStorage.class at line 480 (gallerycoreapi::error)
* in modules/core/classes/Gallery.class at line 202 (mysqlstorage::search)
* in modules/quotas/classes/GalleryQuotasHelper.class at line 410 (gallery::search)
* in modules/quotas/classes/GalleryQuotasHelper.class at line 92 (galleryquotashelper::fetchuserquota)
* in modules/simple/SimpleUpload.inc at line 77 (galleryquotashelper::getuserdiskquota)
* in modules/core/classes/GalleryView.class at line 300 (simpleuploadview::loadtemplate)
* in main.php at line 441 (simpleuploadview::doloadtemplate)
* in main.php at line 94
* in main.php at line 83

System Information
Gallery version 2.2.3
PHP version 4.4.4 cgi
Webserver Apache 3 - HOSTMerit
Database mysqlt 4.1.10a
Toolkits Gd
Operating system FreeBSD cs11.simplehost.com 5.4-RELEASE-p14 FreeBSD 5.4-RELEASE-p14 #2: Wed Aug 16 13:33:03 EDT 2006

:/usr/obj/usr/src/sys/CS11 i386
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

 
Chrisgoh11

Joined: 2007-09-15
Posts: 10
Posted: Sat, 2007-09-15 08:12

Is there a way to allow users to edit their own posted images?

Where the instructions?

thanks
help help