Moderation Module

pitou

Joined: 2007-04-13
Posts: 4
Posted: Fri, 2007-04-13 08:43

Hello,
this module works fine with the G2.2.x. Thanks a lot, I was looking for it for a long time now.
But I have a problem, there is no thumbnails with the moderation information, just an "id=??"
So no thumbnails, no comments, what will I do when I'll have 10 pictures to moderate ? Is it a bug or not ?
Thx for your answers.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2007-04-13 20:04

see my comment I posted with the 1.1 version:

mindless wrote:
The admin view still references imageblock module, so thumbnails only appear in that view if imageblock is active.

 
pitou

Joined: 2007-04-13
Posts: 4
Posted: Sat, 2007-04-14 10:52

OK, thx, I haven't seen it

 
cluaps

Joined: 2007-04-15
Posts: 1
Posted: Sun, 2007-04-15 22:38

This module will not install for me! Can anyone help? I'm using gallery 2.2

Cheers
cluaps.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2007-04-16 17:27

um.. what version did you try to install and what happened? can't help with no info..

 
pitou

Joined: 2007-04-13
Posts: 4
Posted: Fri, 2007-04-20 22:13

Hello
I've made a mistake previously. The module did work fine with version 2.1.x, but I juste tried to install version 2.2.1 and The module will not install.
So I have Gallery 2.2.1 and moderation module 1.1. I upload the module via FTP, in the module directory and nothing appears in the composant's page (for the french version, but maybe it's not the same word in the english version)so for the moment, I have no way to install it.

Edit : Now it works, Sorry for that, but I've made a big mistake. I uploaded all the directory, with the other one inside. So I just delete the first one and now it's ok.
Sorry again.

 
GlennCoco

Joined: 2006-05-15
Posts: 27
Posted: Sat, 2007-04-21 01:17

OK,

With all of the different versions of this that seem to be around, I thought I'd post what happened to me and see if that is the expected behavior.

I uploaded a picture just as a regular user. There were no messages telling me it needed approval, which is what I was expecting I think. Looking in the album, the image does not show up, which is what I expected, since it hadn't been approved yet. However, the thumbnail appears in the album, which I was not expecting.

For the admin side of it, no email was sent out letting me know there was something to approve, which I think I was expecting an email. The only way I knew there was something there to approve was just to click the MODERATE link. The thumbnail appeared for me to approve, which I did expect. No emails were sent letting the user know their photo was approved.

Is this the expected behavior? Or did I do something wrong?

Quote:
Gallery version = 2.2.1 core 1.2.0.1
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysqlt 4.1.21-standard-log, lock.system=flock
Toolkits = Exif, Gd, NetPBM
Acceleration = none, none
Operating system = Linux hydrogen.webserversystems.com 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686
Default theme = floatrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Rows in GalleryAccessMap table = 6
Rows in GalleryAccessSubscriberMap table = 4
Rows in GalleryUser table = 56
Rows in GalleryItem table = 3
Rows in GalleryAlbumItem table = 1
Rows in GalleryCacheMap table = 0

 
pitou

Joined: 2007-04-13
Posts: 4
Posted: Sun, 2007-04-22 07:54

An other interessant evolution will be to know where the picture will be approved, don't you think ? For example, in the moderate module, having both picture and destination album together. Maybe you won't publish the picture if she's not in the correct album.
For GlenCoco, the only strange thing for me is that you have a thumbnail even if you didn't accept the picture. Except this, everything seems to be ok (as it should be)
++

 
GlennCoco

Joined: 2006-05-15
Posts: 27
Posted: Mon, 2007-04-23 12:00

OK, I just double checked everything and this is what I found.

I have the Gallery set up like this:

- Main (I guess that is what you call it)
----- 2006-2007
--------- Picture waiting approval
----- 2005-2006
----- 2004-2005

OK, so here is the deal. Logged in as admin, I see the picture no matter which page I am on.

Logged in not as an admin, but either as the person who submitted the picture, or as a guest, I can see the thumbnail in the main album, because as the only picture in 2006-2007, it is the highlight of the album. If I click on the 2006-2007 album, I can still see the thumbnail. But when I click on the thumbnail to actually view the picture, it says "This album is empty" or whatever it normally says when there isn't a picture.

 
GlennCoco

Joined: 2006-05-15
Posts: 27
Posted: Fri, 2007-04-27 14:05

So basically this module is unsupported?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2007-04-30 16:41

it was developed by the gallery community and is not part of the core product.. up to the community to provide support, if any. might be a nice future addition to the product though.. hope people will keep working on it.

 
jebj60

Joined: 2007-05-08
Posts: 2
Posted: Wed, 2007-05-16 03:06
Quote:
I think I have it using the old style now, so it should work for G2.1.x and 2.2.x.

I just installed your ItemAddConfirmation.tpl file in a v2.2.1 and it works just fine. Thanks for your work, mindless.

 
jlynn

Joined: 2007-07-11
Posts: 1
Posted: Wed, 2007-07-11 01:36

I'd also like to see this become part of the core product. I want our registered users to be able to upload their photos, but I certainly don't want someone to register and immediately upload porn or spam. This one unsupported feature is the only thing making me hesitant to use Gallery, which otherwise seems to be an excellent piece of software. A moderation function is not something I would expect to find missing from the core product.

 
derryb

Joined: 2007-07-18
Posts: 1
Posted: Wed, 2007-07-18 01:14

This "does just what it says on the tin" and is almost what I am looking for. However, instead of the site admin doing approvals I would like to create moderator groups and an "approve" permission, then I could give particular moderator groups "approve" permission on particular galleries. So members of the moderator groups could approve uploads to those particular galleries. This allows the site admin to delegate responsibility for content approval.

The code for registering the permissions is included below. Obviously the "Moderate" menu link should only appear if you have "approve" permission for the current gallery and members of a moderator group should only be able to moderate uploads for galleries for which they have "approve" permissions.

I am not particularly familiar with G2 development, however I think that I can see that this is possible. I think that I can make it possible for a user with "approve" permissions to moderate images by changing most of the checks for the admin user with checks for the "approve" permission. However I do not think that is everything i need to do. Can anyone help with the practicalities of modifying the moderator module code to do this?

I use the G2 embeded in drupal and this would mean that my moderator groups in drupal would be carried over to G2.

Quote:
function upgrade($currentVersion) {
global $gallery;
if (!isset($currentVersion)) {
$currentVersion = '0';
}
list ($ret, $coreParams) = GalleryCoreApi::fetchAllPluginParameters('module', 'core');
if ($ret) {
return $ret;
}

switch ($currentVersion) {
case '0':
/* Register our permission */
$ret = GalleryCoreApi::registerPermission($this->getId(), 'moderate.approve',
$gallery->i18n('[moderate] Approve'));
if ($ret) {
return $ret;
}
break;

case '1.0.0':
case '1.1.0':
case '1.1.1':

case 'end of upgrade path':
break;

default:
return GalleryCoreApi::error(ERROR_BAD_PLUGIN, __FILE__, __LINE__,
sprintf('Unknown module version %s', $currentVersion));
}

return null;
}

 
abhigudi12

Joined: 2007-09-04
Posts: 2
Posted: Wed, 2007-09-05 13:33

hi
"Access denied for user 'nobody'@'localhost' (using password: NO)"
this is the error what i get when i go to Moderation page in the site admin
please can can one help me out

 
jtownsend

Joined: 2006-11-24
Posts: 19
Posted: Mon, 2007-10-22 18:52

I have a similar problem with Moderate. It worked perfectly under my IIS install and I loved it. No luck now running under Apache (I switched due to IIS instability). Below is my post from the plugin section.

"I have recently moved my gallery2 installation from a MS 2000 server running with Mysql and IIS to a MS 2003 Server running Mysql and Apache.

Everything went well with some minor glitches. The last issue I am having is with the Moderate plugin (which I love). I get an error "Access denied for user 'ODBC'@'localhost' (using password: NO)" when accessing the plugin. If I add the Mysql user "ODBC and no password, I then get the error "no database selected"

The ODBC really confuses me. I am not really sure if this is a 2003 thing. Any help in getting moderate functioning again would be appreciated."

 
mrzeo

Joined: 2007-11-13
Posts: 2
Posted: Fri, 2007-11-30 13:26

i would like to create two things in this module:
* giving and removing moderate permission to groups or users
* create link on left side (near add album, add items, ...) to moderate photos, like i have in site admin

can anyone help me because i have no idea where i should do this. i tried to look at cart module, where are these two things which i need but it's to difficult for me to copy it to moderate module

pls help ;p

 
mlapl1

Joined: 2007-10-24
Posts: 11
Posted: Sun, 2007-12-02 09:06

Dear All

I have just joined this discussion and tried to read everything (very quickly). The module is very much what I am looking for.

Can anyone tell me what is the current state of play? And can anyone post the latest version or tell me/us where the latest up-to-date version is (as well as some installation instructions if possible). I am aware that this still seems to be an unofficial version (i.e. developed by the community etc. etc.) but expect that there will be a "latest" version somewhere.

Thank you very much indeed - wonderful work.

Andrew

 
mrzeo

Joined: 2007-11-13
Posts: 2
Posted: Mon, 2007-12-03 11:49
Quote:
can anyone post the latest version or tell me/us where the latest up-to-date version is

http://gallery.menalto.com/files/moderate-1.1.zip

 
mlapl1

Joined: 2007-10-24
Posts: 11
Posted: Mon, 2007-12-03 11:53

Thank you mrzeo

Andrew

 
diecartin

Joined: 2007-12-06
Posts: 2
Posted: Thu, 2007-12-06 15:42

Excuseme for my question but is that I´m very new in this system.
I uploaded the fixed version (moderate-1.1) in the modules directory. But when it click on install option in the plugin administration menu, but nothing happens, just that line gets green.
I hope you can help me because my site can´t operate without this plugin.
Thank you!

 
djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Sat, 2007-12-08 21:26

This is a fantastic module - thanks to all those who've worked on it.
The only improvement I would like to see is that users get to see the items after they have uploaded them and are awaiting approval. Despite the confirmation message I added I still get email from people saying 'your site doesn't work - my images didn't show up!'.

 
gwmbox

Joined: 2007-05-08
Posts: 38
Posted: Wed, 2008-01-02 02:11

Hi

Is it possible in the admin moderate section when viewing images to be approved that the image shows the album it has been submitted to - I could not locate the call in the blocks.inc file

Cheers

 
gwmbox

Joined: 2007-05-08
Posts: 38
Posted: Thu, 2008-01-03 05:13

HI All

When moderate is on - where or how does it get the photos permissions - is it directly related to the albums permissions or does it have some defaults?

Reason I ask is that I have 6 albums, one of them I allow ratings in a sub-album, all the rest of the albums I have ratings NOT on. The moderation seems to work great however the permission to allow ratings to Everybody is not set in the photo within the album that allows ratings. I have to go back into the album and reset the permissions to allow Everybody to Ratings - all

I hope I make sense

Cheers]

Greg

 
madiran

Joined: 2007-11-08
Posts: 1
Posted: Mon, 2008-01-07 12:49

Thank you to everyone who worked on the plugin. It's very useful and I was looking for something similar for a long time. Unfortunately my programming skills are lacking, so I cannot help you developing it.
Once again, thank you so much and keep up the good work!

 
jojomart

Joined: 2008-01-15
Posts: 26
Posted: Tue, 2008-01-22 20:57
nikola99 wrote:
Thanks for this module.

I have changed it so the item description(caption) is displayed as well on the moderation page, and bad words are highlighted to facilitate easier moderation. All you need to do is to add the bad words.

Here are the changes:
AdminModeration.inc ~line 249

$i = 0;
while ($t1row= mysql_fetch_array($t1result))
{
	$images[$i]["id"] = $t1row[0]; //this has been changed so now each "image" contains an array of 2 elements id and description
	
	/*Load Entity (photo) */
	list ($ret, $item) = GalleryCoreApi::loadEntitiesById($t1row[0]);
	if ($ret) {
		return array($ret->wrap(__FILE__, __LINE__), null);
	}
	$images[$i]["description"] = $item->getDescription();
	
	$dirtyWords = array("badWord1", "badWord2");
	$dirtyCount = count($dirtyWords);
	
	/*Highlight bad words*/
	for($j=0; $j < $dirtyCount; $j++)
	{
		preg_match ("/([[:alpha:]]*)($dirtyWords[$j])([[:alpha:]]*)/i", $images[$i]["description"], $matches);
		
		if($matches[0] != "")
		$images[$i]["description"] = eregi_replace("([[:alpha:]]*)($dirtyWords[$j])(.*)", "\\1<span style='background-color: yellow; color:red; font-weight: bold;'>\\2</span>\\3", $images[$i]["description"]);
	}
	
	$i++;
}

I don't know why, but I can't find anything in the AdminModeration.inc that resembles the code above. Has something changed in version 2.4 of the Gallery 2?

Thanks,
Joanne

 
Pleshti

Joined: 2008-01-27
Posts: 3
Posted: Sun, 2008-01-27 14:02

Is possible to modify this beautiful plugin so that the admin can approve any edit by the guest? i mean caption, keywords ect? So every edit of all the guests to be logged and then to be pended for approval?
Sorry for my bad english

 
Ryno80

Joined: 2008-04-07
Posts: 12
Posted: Tue, 2008-05-06 00:28

Is it possible to uninstall this module? I think I may have figured out a workaround that may not require it and I wanted to test it, however when removing the moderate folder it broke my gallery site admin page. Thanks!

 
lmabee

Joined: 2008-06-09
Posts: 6
Posted: Tue, 2008-06-10 18:34

I would just like to post my 0.02.
First - GREAT Module. I've been looking and needing something like this for a bit.

Second - I am a huge stinker when it comes to programming. (Best I can muddle with his HTML - I know.. it's sad)
But. I would love to use this module. Does anyone have the current specs of the current version of this module?
And.. is anyone still working on it?

Thanks for your time and patience!
Warmest,
Laura

 
zepdad60

Joined: 2008-07-24
Posts: 32
Posted: Sat, 2008-07-26 15:37

Observations:
* Moderation should be part of the core. It's an essential admin function for many sites.
* The mod is funciontal but needs significant work. It is very basic. First, uploaders should get a message regarding admin approval. Admins should receive an email stating that an upload awaits approval. The approval dialog also needs more options. Approve / delete is fine but the admin should also see what album is being effected and have the option of renaming and redirecting to a more appropriate album. Finally, the user should get a final email that the upload was approved with an link to the gallery.

Like lmabee I'm decent at html and very light programming, but don't have the skills to make these changes. I'm hoping someone can take this to the next level.

 
malcomio

Joined: 2008-08-21
Posts: 1
Posted: Thu, 2008-08-21 13:20
mrzeo wrote:
Quote:
can anyone post the latest version or tell me/us where the latest up-to-date version is

http://gallery.menalto.com/files/moderate-1.1.zip

using this version, I've installed the mod and it seems fine, but when I try to upload a photo to test it out, I get this error:

Quote:
Edit Conflict!

Your change cannot be completed because somebody else has made a conflicting change to the same item. Use the back button in your browser to go back to the page you were on, then reload that page and try your change again.
Go back and try again

Alternatively, you can return to the main Gallery page and resume browsing.

Back to the Gallery

is it something i'm doing wrong? any ideas?

thanks

 
TransportImages
TransportImages's picture

Joined: 2005-08-28
Posts: 9
Posted: Thu, 2008-10-23 23:06

I really like the idea of this module, but as others have said development work is needed. Before I can deploy this module on my site I need it to be a bit more powerful.

So I've decided to see if anyone can improve the module for me. Details at http://gallery.menalto.com/node/82802

Is anyone here interested in taking up the challenge?

 
Josch

Joined: 2009-01-12
Posts: 5
Posted: Mon, 2009-01-12 08:23

Hi there,

nothing new here? This module need major work.

- thumbnails of the images that are waiting for approval with a link to that picture

- picture rights are changed completely to changeable/editable for all users when picture is approved :-(

- option to deactivate approval for registered users or selected groups

I'm astonished, that there aren't more people who need this functionality? A software
with a user and group system without a moderate/approval function seems a little
bit paradoxical, doesn't it? :-)

I would like to help working on this but haven't got enough experience with the whole
gallery system right now. Where can I find the functions for the user/group system?
I saw the "isUserInSiteAdminGroup" function but how can I set the same for registered
users so tha only guest uploads have to be approved?

Where are the rights on approval set?

Is there anyone who can help here?

Thanks a lot in advance and regards from Germany,

Josch

 
j0yst1ck

Joined: 2006-04-20
Posts: 6
Posted: Tue, 2009-04-21 23:19

Hi everyone, just to say that now this module has grown a lot :)

I'm glad to have "started" such a good community work, this gallery is amazing! ;)

Bye!

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

My Gallery : www.facceitaliane.it

 
BetterBob

Joined: 2009-06-26
Posts: 2
Posted: Mon, 2009-06-29 02:01

This is exactly what i was looking for. Works great!

Thank you.

 
Josch

Joined: 2009-01-12
Posts: 5
Posted: Mon, 2009-06-29 09:33

Hi,

Quote:
Hi everyone, just to say that now this module has grown a lot

I'm glad to have "started" such a good community work, this gallery is amazing! ;)

Bye!

uhm - I can't see anything new. The newest version I have is 1.1.0 (Build 1862).

What has "grown a lot" there?

Regards,

Josch

 
m3lvm

Joined: 2009-06-17
Posts: 49
Posted: Thu, 2009-07-16 16:56

Ok I have got the Idea around this mod but would it be possible to have a control to limit the amount of user uploads that are permitted per 24 hour period.

Also it that were added helpful if there was a way to switch the image Moderate or the upload quota Moderate on and off independantly.
And to have overall control of the site without too many images to look through, a section where you could add the albums that you want to Moderate Eg albums with a sexual nature.

 
theuman

Joined: 2009-10-15
Posts: 2
Posted: Sat, 2009-10-17 00:44

Does this plugin work with G2.3??

Also what do I need to do to install it?

I don't know how installation works for this script

Thamks

 
navjotjsingh

Joined: 2009-12-23
Posts: 1
Posted: Wed, 2009-12-23 07:49

Any further progress on updating this plugin further? This is an essential mod and should be in Gallery's core.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-12-23 16:45

No and it's not going to happen. Major development of G2 is done. All future work is being done on G3.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
mdsouza

Joined: 2010-07-13
Posts: 8
Posted: Tue, 2010-08-31 05:18

sweet mod saved me a ton of work or hiring a developer to create, thanks a bunch.