"Approve" - module for moderation

alikim

Joined: 2008-05-09
Posts: 7
Posted: Tue, 2008-05-20 13:01

hi All,

I've written a module for moderation based on a dynamic album code... so basically it's a full featured dynamic album which displays newly added images and allows to approve or delete them.
Also the module adds a special group for moderators so that all members of the group can moderate and they are not necessarily have admin access.
The module uses its own templates and theme which you have to install along with it.

I used and checked this module under Gallery 2.2.4

I've never done anything for the gallery so any your feedback is welcome.

AttachmentSize
approve.zip221.59 KB
 
lmabee

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

Hi Alikim,
Thanks for your module.
I've downloaded it to test it out (along with one other). Thank you!

 
alikim

Joined: 2008-05-09
Posts: 7
Posted: Fri, 2008-06-20 06:08

Hi Imabee,

Thanks for choosing my module!
Please let me know if u have any problems with it

 
lolli

Joined: 2008-06-25
Posts: 5
Posted: Thu, 2008-08-07 22:18

GET ERROR MESSAGES

looks like a decent mode but i dont know why its not working.

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 (GalleryStorage::search)
* in modules/approve/ModerateAlbum.inc at line 342 (Gallery::search)
* in modules/approve/ModerateAlbum.inc at line 293 (ModerateAlbumView::getChildIds)
* in modules/core/classes/GalleryView.class at line 300 (ModerateAlbumView::loadTemplate)
* in main.php at line 445 (GalleryView::doLoadTemplate)
* in main.php at line 94
* in main.php at line 83

 
lolli

Joined: 2008-06-25
Posts: 5
Posted: Thu, 2008-08-07 22:20

debug output
Debug Output
file_exists(/home/smk/gallery/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) Unimplemented: GalleryUrlGenerator getParameter session.lifetime for core plugin file_exists(/home/smk/gallery/cache/module/core/0/0/0.inc) getParameter session.inactivityTimeout for core plugin (mysqli): SET NAMES "utf8" file_exists(/home/smk/gallery/cache/module/_all/0/0/GalleryStorage_describeMap.inc) (mysqli): SELECT g_userId, g_remoteIdentifier, g_creationTimestamp, g_modificationTimestamp, g_data FROM g2_SessionMap WHERE g_id='846fbc4023833ea7c863ee3ed094b866' controller , view approve.ModerateAlbum Loading plugin core Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/core/module.inc) core plugin successfully instantiated file_exists(/home/smk/gallery/versions.dat) file(/home/smk/gallery/versions.dat, ) [1218146921] can't guarantee 5 -- extending! file_exists(/home/smk/gallery/cache/entity/0/0/6.inc) Loading plugin approve Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/approve/module.inc) approve plugin successfully instantiated Check the version of the approve plugin file_exists(/home/smk/gallery/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the approve plugin is ok file_exists(/home/smk/public_html/sissyprep/gallery/modules/approve/ModerateAlbum.inc) getParameter acceleration for core plugin getParameter id.anonymousUser for core plugin getParameter id.anonymousUser for core plugin getParameter id.adminGroup for core plugin (mysqli): SELECT g_userId FROM g2_UserGroupMap WHERE g_userId=6 AND g_groupId=3 LIMIT 1 file_exists(/home/smk/public_html/sissyprep/gallery/modules/core/classes/GalleryDynamicAlbum.class) Loading plugin approve approve plugin successfully instantiated Check the version of the approve plugin The version of the approve plugin is ok realpath(/home/smk/public_html/sissyprep/gallery/modules/core/classes/../../..) Binding text domain: modules_approve -> /home/smk/public_html/sissyprep/gallery/modules/approve/locale file_exists(/home/smk/gallery/cache/module/approve/0/0/0.inc) Loading plugin approve Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/themes/approve/theme.inc) approve plugin successfully instantiated Check the version of the approve plugin file_exists(/home/smk/gallery/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the approve plugin is ok file_exists(/home/smk/gallery/cache/theme/approve/0/0/0.inc) file_exists(/home/smk/gallery/cache/theme/approve/9/1/913.inc) (mysqli): SELECT g2_Group.g_id FROM g2_Group WHERE g2_Group.g_groupName = 'Moderators' file_exists(/home/smk/gallery/cache/entity/9/1/914.inc) (mysqli): SELECT g_userId FROM g2_UserGroupMap WHERE g_userId=6 AND g_groupId=914 LIMIT 1 getParameter id.adminGroup for core plugin mysqli error: [1146: Table 'smk_g2gallery.g2_ApproveMap' doesn't exist] in EXECUTE("SELECT g_itemId FROM g2_ApproveMap") (mysqli): SELECT g_itemId FROM g2_ApproveMap Query: SELECT g_itemId FROM g2_ApproveMap failed. Table 'smk_g2gallery.g2_ApproveMap' doesn't exist
1146: Table 'smk_g2gallery.g2_ApproveMap' doesn't exist

ADOConnection._Execute(SELECT g_itemId
FROM g2_ApproveMap, false) % line 889,
file: adodb.inc.php
ADOConnection.Execute(SELECT g_itemId FROM g2_ApproveMap,
Array[0]) % line 473, file: GalleryStorage.class
GalleryStorage.search(SELECT [::itemId] FROM [ApproveMap],
Array[0], Array[0]) % line 202, file:
Gallery.class
Gallery.search(SELECT [::itemId] FROM
[ApproveMap]) % line 342, file: ModerateAlbum.inc
ModerateAlbumView.getChildIds(6) % line 293, file: ModerateAlbum.inc

Loading plugin albumselect Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/albumselect/module.inc) albumselect plugin successfully instantiated Loading plugin comment Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/comment/module.inc) comment plugin successfully instantiated Loading plugin customfield Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/customfield/module.inc) customfield plugin successfully instantiated Loading plugin hidden Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/hidden/module.inc) realpath(/home/smk/public_html/sissyprep/gallery/modules/core/classes/../../..) Binding text domain: modules_hidden -> /home/smk/public_html/sissyprep/gallery/modules/hidden/locale hidden plugin successfully instantiated Loading plugin httpauth Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/httpauth/module.inc) httpauth plugin successfully instantiated Loading plugin imageblock Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/imageblock/module.inc) imageblock plugin successfully instantiated Loading plugin linkitem Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/linkitem/module.inc) linkitem plugin successfully instantiated Loading plugin multilang Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/multilang/module.inc) multilang plugin successfully instantiated Loading plugin quotas Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/quotas/module.inc) quotas plugin successfully instantiated Loading plugin sizelimit Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/sizelimit/module.inc) sizelimit plugin successfully instantiated Loading plugin squarethumb Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/squarethumb/module.inc) squarethumb plugin successfully instantiated Loading plugin watermark Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/watermark/module.inc) watermark plugin successfully instantiated Loading plugin useralbum Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/modules/useralbum/module.inc) useralbum plugin successfully instantiated Loading plugin approve approve plugin successfully instantiated Loading plugin core core plugin successfully instantiated getParameter default.theme for core plugin Loading plugin nzdi Class not defined, trying to include it. file_exists(/home/smk/public_html/sissyprep/gallery/themes/nzdi/theme.inc) nzdi plugin successfully instantiated Check the version of the nzdi plugin The version of the nzdi plugin is ok Loading plugin core core plugin successfully instantiated Check the version of the core plugin The version of the core plugin is ok getParameter id.adminGroup for core plugin realpath(/home/smk/public_html/sissyprep/gallery/modules/core/classes/../../../) realpath(/home/smk/public_html/sissyprep/gallery/) (mysqli): SELECT g_mimeType, g_toolkitId, g_priority FROM g2_TkOperatnMimeTypeMap WHERE g_operationName='thumbnail' ORDER BY g_mimeType ASC, g_priority ASC file_exists(/home/smk/gallery/smarty/templates_c/%%3604523610) is_dir(/home/smk/gallery/smarty/templates_c/%%3604523610) file_exists(/home/smk/gallery/smarty/templates_c/%%3604523610) is_writeable(/home/smk/gallery/smarty/templates_c/%%3604523610) file_exists(/home/smk/gallery/smarty/templates_c/%%3604523610/v_12) file_exists(/home/smk/public_html/sissyprep/gallery/modules/core/classes/../../../lib/javascript/local/BlockToggle.js) realpath(/home/smk/public_html/sissyprep/gallery/modules/core/classes/../../..) Binding text domain: themes_nzdi -> /home/smk/public_html/sissyprep/gallery/themes/nzdi/locale file_exists(/home/smk/public_html/sissyprep/gallery/modules/core/../../themes/nzdi/local/theme.css) file_exists(/home/smk/public_html/sissyprep/gallery/modules/core/classes/../../../themes/nzdi/local/theme.css)

 
alikim

Joined: 2008-05-09
Posts: 7
Posted: Sat, 2008-08-16 13:57

Thanks for your feedback,
It's hard to tell what's wrong here w/o knowing under which circumstances you receive these errors. The only suggestion I have is to check if you switched gallery to the template provided in the package - the template is a must to use with this mode.