PDA

View Full Version : Auto move threads - If receive reply - Based on rating (3.7)


NeverBored
06-13-2008, 10:05 PM
These are two options I'd love to have. I'll explain further...

1. Auto move threads from a particular forum once they receive a reply. I want threads made in certain forums to move to a different forum if they get a reply. I'd want the option to set it up on multiple forums (each forum able to have the threads move to a different forum).

2. Auto move threads based on rating. The thread should be moved to a set forum after it's rating reaches a certain level, should be able to set rating and number of votes. And more, I'd really like if you could then set it up to move the thread back to the forum it came from if the rating ever increases.

I think both would work fine as cron jobs...

If someone were going to think about writing up one of these mods, I'd personally most like to have #1, but of course both would be nice. If I had any idea how to do it, I would.

Opserty
06-13-2008, 11:29 PM
Similar Threads...
Auto Move Threads Based On Ratings (https://vborg.vbsupport.ru/showthread.php?t=143351)

You might need to change the comparison around in the PHP file.

So instead of:

if($x <= $y)

You have:

if($x >= $y)

NeverBored
06-14-2008, 02:05 AM
Thanks, I did see that before I posted this, but I didn't use it because it's a bit old and there's not much info there. But I decided to try it and it seems to work. Still would like the option to have it move back to the forum it came from. It would be possible to create a copy of it and reverse the settings, but that would only work if the threads came from one forum originally. Anyhow, I could live with this...

I tried playing around with it to get threads to move if they get a reply, but I can't get it to work. It looks like it would be very easy to do, especially based on the code of the above product.

Opserty
06-14-2008, 08:31 AM
For the first one, you'd have to create a plugin that executes on reply to a thread. Then just moves it when the reply is submitted. I might cook up something small later if I get time.