Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Saturday, May 18 2013 @ 11:27 AM EDT


 Forum Index > Extensions > Cool Hacks New Topic Post Reply
 Moderation without submission
   
remy
 11/16/03 07:38AM (Read 1318 times)  
+++--
Chatty

Status: offline


Registered: 06/09/03
Posts: 43
The moderation API works just fine for submitted objects.
The code, admin/moderation.php, however makes a difference for users and the rest.

Within the custom_member registration I've coded a transaction to submit some comment to the moderator(s). This shows up in the moderation menu. After 'processing' by the moderator(s) the comments are deleted.
Now, this transaction just uses a field within the custom_memberinfo table. No separate submissiontable. In order to have this work for me, I've change admin/moderation.php: added the test
PHP Formatted Code
(!empty($submissiontable) && $table != $submissiontable)
 

just before the place where item is deleted from the submissiontable
and where the submissiontable is copied into the table.
I think the test is harmless and adds safety. Maybe this should make it into CVS?

Of course, I feel good with this. It opens up the possibility when using the API to work with transactions or have your code tested without loosing all the testdata. Just by nullifying the submissiontable.

FYI: when a user fills in the 'purpose' field of his membership, merely to communicate a request or question, the field shows up in the moderation menu. The moderator follows up the request and deletes the purpose field. See this as a replacement for an email, since the email address of the moderator(s) is not known at all times.

 
Profile Email Website
 Quote
Content generated in: 0.28 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content