News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Reactivate a topic after N days

Started by Alcor, December 05, 2011, 01:58:56 PM

Previous topic - Next topic

Alcor

Hello.

I was searching the forum but I could not find anything similar. I want some mod that allows to bump the topic after a while, that is, on that topic creator cannot respond until after a few days or hours, after those days past a button will appear that would reactivate the topic and bumping it. I know that this exists in other forum, Can you help me? Thanks

Alcor

I think the wrong place to post my request. I don't search the creation of a mod, just to know if there is one to do what I explain in the previous post.

Sorry my bad English.

All Colours Sam

You can "bump" a topic by just posting on it, no button is needed.


What you can do is automate the process, with a scheduled task , if in X days a topic hasn't been answered then create a post on that very own topic.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Alcor

Thanks for your answer, Miss All Sunday.

I don't want to bump a topic, I want that any users who want to reactivate it, they can do it without writing it simply with a button or link. Reactivating the topic is changing the posting date, so the topic jumps to the top.

How can I do a scheduled task with SMF?

All Colours Sam

So, reactivating is ONLY changing the date?

any other parameters?

There is a tutorial buried somewhere about scheduled task, unfortunately I can't find it, but since your own users are the ones that gonna click the button, then there is no need for a scheduled task.

I don't know what repercussions will arise if the date of a topic is changed.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki


All Colours Sam

That code doesn't tell me much, in essence they are only changing the posted time, with some checks at the beginning.

porting that to SMF it will be a custom action, something like  action=bump  then a function on Subs.php  at the end:

function Bump()
{

// get the topic id via get
$_GET['topic']

// we do the query to change the time

}



the check to see if X topic has or not a response it will be done with the function that will display the button in Display.php, of course, permissions by membergroup can be applied here too.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Alcor

Thanks Miss All SUnday.

Ok, but if I knew coding, I would try

Advertisement: