Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2006-06-18 12:04:16
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: mem_moderation - Generic Moderation
Manfre,
thanks for this plugin, it is proving to be an asset for me. I’m finally adding moderation to an upload unit I was asked to write recently and I think I’ve found a mistake in the submit_moderated_content function.
I’ve v0.3.2 and I see this in there…
<pre>
function submit_moderated_content($type,$email,$desc,$data)
{
global $txp_user,$ign_user;
if (isset($ign_user)) $txp_user = $ign_user;
$type = doSlash($type);
$email = doSlash($type); // << $email is set from $type!!!
$desc = doSlash($desc);
</pre>
Presumably that should be slashed from the $email input.
— Steve
Offline
Re: mem_moderation - Generic Moderation
Good find. That managed to slip through for a few versions. The latest version is 0.4.4 and the next one will have this fix.
Offline
#33 2006-06-19 00:18:25
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: mem_moderation - Generic Moderation
Thanks Manfre,
this plugin is working very well for me having made the change in my local copy. Is v0.4.4 public yet? Sounds like I picked up an older version.
I am also having problems getting the multi-edit delete function to work on the moderation list page.
event = moderate
step = moderate_multi_edit
action = delete
result: no calls to the rejector function and the items remain in the moderation list.
My question is, am I using this the correct way or am I meant to write an event handler for this in my plugin and then have it call through to the moderation list to have it’s entry removed?
Thanks for your help!
Last edited by net-carver (2006-06-19 01:16:05)
— Steve
Offline
Re: mem_moderation - Generic Moderation
http://manfre.net/article/687/txp-moderation-plugin-still-beta
Go ^^ and it will explain all and provide download links for the latest versions of mem_moderation, mem_moderation_article, and mem_moderation_image.
Offline
#35 2006-06-20 13:41:55
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: mem_moderation - Generic Moderation
Manfre wrote:
Go and it will explain all and provide download links for the latest versions of mem_moderation, mem_moderation_article, and mem_moderation_image.
Thanks for those Manfre, I just went and grabbed mem_moderation and tried to install it and bam! down goes my local apache session. Tried it three times now, same result each time.
I was hoping it was something I had done to my local apache config but alas, other plugins install fine.
Looks like I got a bad download. Installing OK now.
Last edited by net-carver (2006-06-20 14:52:11)
— Steve
Offline
#36 2006-06-20 15:19:02
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: mem_moderation - Generic Moderation
Manfre,
fantastic! This version fixes the problems I had to work around in the 0.3.3 version — I just stripped the work-arounds out of my plugin :O)
Thanks for your efforts on this.
— Steve
Offline
Re: mem_moderation - Generic Moderation
I’m glad I could help you out. =)
Offline
#38 2006-07-12 05:37:19
- mmelon
- Member
- Registered: 2006-03-02
- Posts: 95
Re: mem_moderation - Generic Moderation
does anybody know how to hack mod_article so that approved articles do not default to use textile? My client uses tinymce wysiwyg editor and this becomes invisible when articles are submitted as use textile. The site is configured in admin to leave text untouched.
Thanks for any help
Mike
Offline
Re: mem_moderation - Generic Moderation
Go to the plugins tab and then select “edit “ for mem_moderation_article, then search for “USE_TEXTILE” (all caps and no quote). Replace the first two instances with “LEAVE_TEXT_UNTOUCHED”.
<code>
// remap field values
$incoming[‘textile_body’] = USE_TEXTILE;
$incoming[‘textile_excerpt’] = USE_TEXTILE;
</code>
Becomes
<code>
// remap field values
$incoming[‘textile_body’] = LEAVE_TEXT_UNTOUCHED;
$incoming[‘textile_excerpt’] = LEAVE_TEXT_UNTOUCHED;
</code>
I’ll make this configurable in a future release. For those that wish to only have it convert line breaks should replace it with CONVERT_LINEBREAKS.
Offline
#40 2006-07-12 14:14:28
- mmelon
- Member
- Registered: 2006-03-02
- Posts: 95
Re: mem_moderation - Generic Moderation
Thanks Manfre. I find your contributions extremely useful. Thanks for your efforts.
Mike
Offline
Re: mem_moderation - Generic Moderation
Repost from mem_self_register thread
alannie,
Currently this functionality does not exist. I shall add this to my todo list.
Please post questions pertaining to my moderation plugins in this thread. The mem_self_register and moderation plugins are designed to enchance eachother, but they are different and it’s easier for me when plugin questions are organized in the proper threads. This is part of the reason why I missed your first question.
Offline
#42 2006-08-14 21:03:34
- matt_g
- New Member
- Registered: 2006-08-14
- Posts: 2
Re: mem_moderation - Generic Moderation
Hey there, looking forward to utilizing this plugin, however, when i try to run the ‘install wizard’ I get:
<code>A problem occured while loading the plugin: mem_moderation -> User_Error: Unable to include required plugin “mem_admin_parse” on line 392</code>
along with
<code>Fatal error: Call to undefined function: dowrap() in /home/httpd/html/websitename/textpattern/lib/txplib_misc.php(459) : eval()’d code on line 108</code>
Any help you can lend would be greatly appreciated! thanks!
Last edited by matt_g (2006-08-14 21:04:04)
Offline
Re: mem_moderation - Generic Moderation
Hi Manfre, This is a very powerful plugin indeed! Hats off to you for all the hardwork!
I was intending to use this plugin in a more advanced community, were users can submit articles directly to the website without moderation once they are logged on (<a href=“http://forum.textpattern.com/viewtopic.php?id=8799&p=1”>ign_password_protect</a>). I also wanted to use it in a scenario where users can edit the aricle without logging on to the txp backend.
For eg. there’s a live article in the automobiles section on the website which has a password protected edit link. Once the author of the article logs on using ign_password_protect, he’d see the edit link. When he clicks on it he should see the <code>mod_edit_article</code> form with with the article embeded in it. After making changes to the article and on clicking submit the changes take place on the live website directly (instead of going through a moderation).
I tried doing the above with your plugin. But din’t get anywhere. If this is possible, how do i go about it?
“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”
— Albert Einstein
Offline
Re: mem_moderation - Generic Moderation
Hi Manfre,
After my success with your ‘mem_self_register’ plug-in, I’ve worked my way round to using this one for users to be able to upload their own content to the site, and come across a small problem: How do I set it so that articles are correctly sent to the right section with the right category? it’s slightly tedious to have to assign the article to the apropriate section each time something is submitted. I have a section of the site for submitted work, and so would be useful to have this set as a default. Is this functionality possible?
As an aside, I just want to applaud you for these plug-ins. Alongside ‘ign_password_protect’ they form the back bone to the community driven site that I am building, and as soon as I get some $$ I will be donating to their development for sure, as these are invaluable.
Many thanks again for all your work.
Luke
“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee
Offline
Re: mem_moderation - Generic Moderation
I’d like to give this thread a bump, if you dont mind :)
“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”
— Albert Einstein
Offline