Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#151 2009-06-29 13:56:28
- alannie
- Member

- From: Minnesota, USA
- Registered: 2005-09-15
- Posts: 150
Re: mem_moderation - Generic Moderation
Anybody out there know how to use mem_moderation_image? Still having the aforementioned issue.
Offline
#152 2009-06-29 18:57:41
Re: mem_moderation - Generic Moderation
There is no documentation that I know of, so its hard to say. I do know that mem_moderation_article causes errors in the latest SVN version of TXP (the soon to be released 4.20), so its possible that some part of the code needs a tweak.
Offline
#153 2009-09-21 03:35:21
Re: mem_moderation - Generic Moderation
Posted
v0.7.1 mem_moderation
v0.7.1 mem_moderation_article
- Tested and working with 4.2.
- Added lots of deprecation messages. Use mem_form tags. The others will be removed.
- Embedded options shifted to prefs. Click the install wizard link found in the plugin help for each.
I have yet to work on mem_moderation_image and a new mem_moderation_link, compliments of Jakob, will be posted soon.
Offline
#154 2009-09-21 11:44:17
Re: mem_moderation - Generic Moderation
Thanks a lot Manfre !
I just discovered this plugin ! I will see if I can use it to allow visitors to post new events in my calendar, in conjunction with Stef’s event calendar. That sure would be great!
Offline
#155 2009-09-29 19:48:42
Re: mem_moderation - Generic Moderation
Michael, thanks for this – seems to be working great in limited testing. After installing the new version of glz_custom_fields I see this error:
A problem occured while loading the plugin: mem_moderation_article -> Warning: Missing argument 2 for glz_check_custom_set() on line 552
Offline
#156 2010-03-28 12:00:06
Re: mem_moderation - Generic Moderation
I am getting these two messages with the three Mem Moderation plugins:
A problem occured while loading the plugin: mem_moderation -> User_Error: Unable to include required plugin "mem_admin_parse" on line 498
A problem occured while loading the plugin: mem_moderation_image -> User_Error: Unable to include required plugin "mem_form" on line 498
Any suggestions?
I’m on 4.2
Offline
#157 2010-03-28 12:39:13
Re: mem_moderation - Generic Moderation
To answer my own question – the plugin mem_admin_parse is also required to make the moderation work. Who knew?
Thank you, Manfre for a great, great set of plugins.
Offline
#158 2010-03-28 19:13:35
- -rr-
- Member
- Registered: 2005-09-11
- Posts: 73
Re: mem_moderation - Generic Moderation
Finally after reading through every post I figured out what it takes to make this work.
In Extensions/moderate looking at the images their thumbnails are not generated. Where are they supposed to go and should something else be installed to make them work? If I try to open them in a new window I get: Fatal error: Call to undefined function sanitizeForFile() in …
I have a working form that accepts uploading of JPG and GIF images, but I can’t get it to accept PDF or EPS files. It seems it only uploads to Content/Images which does not accept these. How can I make the plugin upload any file format to Content/Files? Would there be a decent way to create thumbnails too?
Last edited by -rr- (2010-03-28 20:31:52)
Offline
#159 2010-10-03 15:49:09
Re: mem_moderation - Generic Moderation
Trying to use a forum thread as a bug tracker doesn’t really work for various reasons.
- I don’t always get the email about the thread being updated.
- Different problems get interleaved.
- I’m forget about them and don’t re-read the older pages of a plugin thread looking for unfixed issues.
In an effort to fix this communication disconnect, I have moved all of my plugin code over to bitbucket, /Manfre/txp-plugins. I’ve enabled the issue tracker and wiki (for documentation). With this new channel of managing my plugins, I will continue to ignore issues reported in this plugin thread, but now it will be intentional instead of accidental.
Offline
#160 2011-04-18 22:39:02
Re: mem_moderation - Generic Moderation
I know Manfre’s not watching this thread any more, but the docs on his repo haven’t materialised and I’m having a hard time with the plugin docs. Getting very lost… Perhaps someone who has had experience with this plugin (and/or mem_moderation_article) could see their way clear to point me in the right direction please.
The problem is deceptively simple: I’m updating a site that was using ancient versions of the various plugins. Upon upgrading to the latest versions of the mem_ suite I’ve trawled the threads and the docs to find the new way of doing things and have mostly succeeded. But I still have <txp:mod_submit /> and <txp:mod_delete /> in my mem_moderation_article_form’s form; both of which are deprecated.
I figure that a standard <txp:mem_form_submit /> would probably do to replace the former, but what is the equivalent tag to use for <txp:mod_delete /> under the new mem_form regime? There’s talk of ‘sentries’ and ‘action links’ and ‘exposed functions’ but I don’t get how it all gels together (I’ve never used moderation before so it’s probably a conceptual thing).
Thanks in advance for setting a thicko on the right path.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#161 2011-04-18 23:33:23
Re: mem_moderation - Generic Moderation
Assuming you’re working with in the scope of <txp:mem_moderation_article_form>, which is the form that the users enters the article content. The sentry is more for handling the listing of content a user has pending moderation and allows them to delete the items without opening the article form.
You’re on the right track with <txp:mem_form_submit />. It’s looks for the post to contain one of the below named fields with any value that resolves to true.
Save – mem_moderation_save
Delete – mem_moderation_delete
Update – mem_moderation_update
I haven’t turned off all of the subscriptions to all of my threads, but I do find it much easier to address issues with an issue tracker instead of a forum. ;)
Offline
#162 2011-04-19 07:46:39
Re: mem_moderation - Generic Moderation
Manfre wrote:
You’re on the right track with <txp:mem_form_submit />….
Ah, brilliant, thank you very much sir. I’ll give that a whirl later. Just couldn’t figure out from the code what the values should be.
I do find it much easier to address issues with an issue tracker instead of a forum. ;)
Ain’t that the truth! But I figured this wasn’t an Issue (which I term a ‘bug’) — more a dim noob user question — so I didn’t feel justified raising a ticket for it. Thanks for the fast answer.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#163 2011-04-19 13:25:32
Re: mem_moderation - Generic Moderation
Stef, I think its something like this now:
<txp:mem_article_delete_sentry wraptag="div" class="success" successmsg="Your request for deletion has been submitted." failuremsg="Could not complete your request." />
Cannot double check though, traveling. Hope that sets you on the right path.
Edit: OK, I see Michael answered for you!
Last edited by jstubbs (2011-04-19 13:27:57)
Offline
#164 2011-05-21 21:19:29
Re: mem_moderation - Generic Moderation
Just trying to get smd_thumbnail to integrate with mem_moderation such that, when an image is approved, all the relevant thumbnail sizes are created.
I’ve raised a callback like this:
mem_moderation_register('image', array(), '', 'smd_thumb_image_approver', '');
because I have no interest in the presenter/rejecter. My callback is triggered no problem but in order to create the thumbs I need a single piece of information: the ID of the newly-inserted image in the txp_image table. How do I get hold of it?
I’ve dumped the contents of $data to see what’s available and there’s an id listed first, but that appears to be the ID of the item in the mem_moderation queue. I also tried outputting mysql_insert_id() in the hope it still held the latest ID (yeah yeah, it’s not atomic so can’t be relied upon in a high traffic site) but I just get 0 back anyway.
Anyone any idea how I can grab the ID of the inserted image in my plugin? Can I somehow utilise the $vars (2nd argument in the callback) to pass it into my function? Thanks in advance for any pointers.
Last edited by Bloke (2011-05-21 21:20:31)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#165 2011-06-02 00:29:09
Re: mem_moderation - Generic Moderation
Michael kindly modified the plugin for me so v0.7.8 now has a new callback in it, which functions the same way as the one in the core. Invoke it like this:
register_callback('your_plugin_function', 'image_uploaded', 'moderate');
The ID of the newly created image is passed in as the payload parameter after the obligatory event and step. Awesome!
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline