Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 16 Feb 2012, 20:12
SnakeV SnakeV is offline
Join Date: Jun 2008
Thread moderation


I'm using hook: postdata_presave to sent to thread awaiting moderation when certain criteria is matched.

For sent the post to moderation i use this and works fine: $this->set('visible', 0); but i want to send to moderation the thread enterely and not only the specific post.

I tried $thread->set('visible', 0); but it do not work, which would be the correct code?


Last edited by SnakeV; 16 Feb 2012 at 20:20.
Reply With Quote
Old 16 Feb 2012, 22:56
kh99 kh99 is offline
Join Date: Aug 2009
Real name: Kevin
You need to create a thread datamanager to change the thread. Try this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moderators Functions Per-Thread Moderation Alan @ CIT Modification Graveyard 36 08 Jun 2007 08:10

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 02:03.

Layout Options | Width: Wide Color: