[wp-forums] resolved threads & closing
Mika A Epstein
ipstenu at ipstenu.org
Tue Nov 23 12:20:03 UTC 2010
Did I read that right and only people who CAN close tickets (ie mods) will be able to do so via this change or am I still too bleary eyed?
On Nov 23, 2010, at 5:18 AM, Rich Pedley <elfin at elfden.co.uk> wrote:
> On 23/11/2010 08:54, Mr mist wrote:
>> In message<4CEB7ABF.6090004 at elfden.co.uk>, Rich Pedley
>> <elfin at elfden.co.uk> writes
>>> Would it be better to just stop people from replying that are not
>>> Moderators, or the original poster, once a topic is marked as resolved?
>>>
>>
>>
>> Quite possibly. The use-case trying to be prevented is where a resolved
>> thread is hijacked by another (probably similar but often unreleated)
>> question, so I guess either works.
>
> Easier to just close after looking at the code.
>
> Suggested change to the support forums plugin.
>
> Amend the function setTopicStatus
> (I tried to use the filter: topic_resolution, but for some reason was unable to.)
>
> So I added this line:
>
> if ( bb_current_user_can( 'close_topic', $topic_id ) && 'yes' == $resolution) {
> bb_close_topic( $topic_id );
> }
>
> just before:
> $bb_cache->flush_one('topic', $topic_id);
>
> which seems to work.
>
> Rich
> _______________________________________________
> wp-forums mailing list
> wp-forums at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-forums
More information about the wp-forums
mailing list