The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Reminder message for topics older than 1 month

4 posters

Go down

Reminder message for topics older than 1 month Empty Reminder message for topics older than 1 month

Post by Rhino.Freak December 2nd 2014, 9:47 am

So I just saw this neat trick https://help.forumotion.com/t137157-warning-for-locked-topics

And I thought if it was somehow possible for a little message like that ABOVE the quick reply box and on top reminding that this topic is 1 month or older?
I mean many forums have a rule like this and many newbies often tend to ignore that. so its a great way to stop that from happening..

So can anyone create a script like that?

Much thanks for all replies Smile
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by Rhino.Freak December 3rd 2014, 5:34 pm

Well? Anyone? At least reply whether its possible or not?
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by SarkZKalie December 3rd 2014, 7:32 pm

If you're a moderator or s.mod, you can lock/unlock any thread - any time, but script can't. My opinion is hard to do, man! In case someone can do, I believe your forum will be crash Very Happy


Reminder message for topics older than 1 month Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1446
Reputation : 220
Language : English

https://rotavn.forumotion.com/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by JScript December 3rd 2014, 8:22 pm

sarkzkalie01 wrote:If you're a moderator or s.mod, you can lock/unlock any thread - any time
But that's not what he wishes!

sarkzkalie01 wrote:, but script can't.
Who told you that with script can not?

sarkzkalie01 wrote: My opinion is hard to do, man!
The impossible is just a matter of opinion, you have never heard this?

sarkzkalie01 wrote: In case someone can do, I believe your forum will be crash Very Happy
How do you believe that if even tried to solve it?


@Rhino.Freak

Hello!

I quite liked this your idea and I have to do it since it is very interesting !!!
I will mark the topic then I'll make a sketch of! Keep this topic active.


Edit:
Let's clarify a few things:
Do you wish that "if a topic has 30 or more days (or months)" that only appear this message or is not allowed to post? Or both together?

JS


Last edited by JScript on December 3rd 2014, 9:04 pm; edited 1 time in total (Reason for editing : Some questions...)
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by Rhino.Freak December 4th 2014, 8:53 am

Thanks! Glad you like the idea! Smile
What I mean is when the topic is left untouched (no new posts/replies) for 30 days, we get that information box on top of topic. It doesn't get locked automatically, so user CAN post if its something urgent or he is updating his own thread Smile
Appreciate that you're working on it Very Happy
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by Rhino.Freak December 5th 2014, 6:21 pm

bumping this Smile
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by JScript December 5th 2014, 7:18 pm

Rhino.Freak wrote:bumping this Smile
Be calm, the code is being developed ok?

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by JScript December 10th 2014, 11:27 pm

Hello, I had to leave my test forum with the same configuration of your so I can perform the tests!

When I finish I will post the code ok?

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by Rhino.Freak December 11th 2014, 10:57 am

sures I'm waiting Smile
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by Rhino.Freak December 16th 2014, 7:10 am

just reminding.. and pushing this topic towards top. Smile
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by JScript December 16th 2014, 9:51 pm

Hello!

I'm having problems with the pagination, I think I can only do up to 4 pages indexed, no more than that because of the Request Limit!

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by Rhino.Freak December 17th 2014, 3:59 am

I don't get what the use of Pagination got to do with what I want.. Can you explain further?
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by Rhino.Freak December 22nd 2014, 9:14 am

bump? @Jscript
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by _Twisted_Mods_ December 22nd 2014, 9:22 am

my guess is hes grabbing pages to find out the time of the last post ... so if you have a post with 10 pages it will only grab the time of the last post on page 4 but with js theirs no telling
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by Rhino.Freak December 27th 2014, 6:45 am

well so I guess it won't be possible?
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by _Twisted_Mods_ December 28th 2014, 12:33 am

ok here is my attempt .. hope it works but i might need admin account to fix it if it dont


javascript 1

placement = sub forums

Code:
// sub forums
$(function(){
    $('.row .lastpost>span').each(function(){
    var tmsg = "This Topic Is Older Then 30 Days";
    var dayso = "30";
        var hij = "";
        var dfg = "";
        var bbb = "";
        var usrDate = "";
    var usrDate = $(this).parent().first().contents().eq(1).text();
        dfg = usrDate.split("Postson");
        bbb = dfg[1];
        hij = bbb;
        hij = hij.replace(/ Jan /g,' 1 ').replace(/ Feb /g,' 2 ').replace(/ Mar /g,' 3 ').replace(/ Apr /g,' 4 ').replace(/ May /g,' 5 ').replace(/ Jun /g,' 6 ').replace(/ Jul /g,' 7 ').replace(/ Aug /g,' 8 ').replace(/ Sep /g,' 9 ').replace(/ Oct /g,' 10 ').replace(/ Nov /g,' 11 ').replace(/ Dec /g,' 12 ').replace(/ - /g,' ').replace(/ January /g,' 1 ').replace(/ February /g,' 2 ').replace(/ March /g,' 3 ').replace(/ April /g,' 4 ').replace(/ May /g,' 5 ').replace(/ June /g,' 6 ').replace(/ July /g,' 7 ').replace(/ August /g,' 8 ').replace(/ September /g,' 9 ').replace(/ October /g,' 10 ').replace(/ November /g,' 11 ').replace(/ December /g,' 12 ').replace(/ :\n /g,' ');
          hij = hij.replace(/rd /g,' ').replace(/th /g,' ').replace(/st /g,' ').replace(/, /g,' ');
        var res = hij.split(" ");
      if(res[2].length == 1){res[2] = '0' +res[2]};
        if(res[1].length == 1){res[1] = '0' +res[1]};
    var blah = res[2] + ', ' + res[1]+ ', ' + res[3];
    var d = new Date();
    var month = d.getMonth()+1;
    var day = d.getDate();

    var output = (month<10 ? '0' : '') + month + ', ' +
    (day<10 ? '0' : '') + day + ', ' +d.getFullYear();
var date2 = new Date(output);
var date1 = new Date(blah);
    diff = date2 - date1;
       
  var days = diff / 1000 / 60 / 60 / 24;

    if(days > dayso){
    $(this).parent().append(' <span id="tisold">'+tmsg+'</span> ');
    };
    });
    });

javascript 2

placement = homepage

Code:
//homepage

 $(function(){
    $('.row .lastpost>span').each(function(){
    var tmsg = "This Topic Is Older Then 30 Days";
    var dayso = "30";
    var usrDate = $(this).first().contents().eq(2).text();
      dfgggh = usrDate.split(", ");
        bbbeee = dfgggh [0];
      var yyyggg = bbbeee.replace(/rd /g,'09').replace(/th /g,' ').replace(/st /g,' ').replace(/ember /g,' ').replace(/ Jan /g,' 1 ').replace(/ Feb /g,' 2 ').replace(/ Mar /g,' 3 ').replace(/Apr/g,' 4 ').replace(/May/g,' 5 ').replace(/Jun/g,' 6 ').replace(/Jul/g,' 7 ').replace(/Aug/g,' 8 ').replace(/Sep/g,' 9 ').replace(/Oct/g,' 10 ').replace(/Nov/g,' 11 ').replace(/Dec/g,' 12 ').replace(/ - /g,' ').replace(/ January /g,' 1 ').replace(/ February /g,' 2 ').replace(/ March /g,' 3 ').replace(/ April /g,' 4 ').replace(/ May /g,' 5 ').replace(/ June /g,' 6 ').replace(/ July /g,' 7 ').replace(/Augu/g,' 8 ').replace(/ September /g,' 9 ').replace(/ October /g,' 10 ').replace(/ November /g,' 11 ').replace(/ December /g,' 12 ').replace(/ :\n /g,' ');
if (yyyggg.length > 0){
      var resh = yyyggg.split(" ");
      if(resh[0].length == 1){resh[0] = '0' +resh[0]};
      if(resh[1].length == 1){resh[1] = '0' +resh[1]};
    var blah = resh[2] + ', ' + resh[0]+ ', ' + resh[4];
    var d = new Date();
    var month = d.getMonth()+1;
    var day = d.getDate();
    var output = (month<10 ? '0' : '') + month + ', ' +
    (day<10 ? '0' : '') + day + ', ' +d.getFullYear();
var date2 = new Date(output);
var date1 = new Date(blah);
    diff = date2 - date1;
  var days = diff / 1000 / 60 / 60 / 24;
    if(days >= dayso){
    $(this).parent().append(' <span id="tisold">'+tmsg+'</span> ');
    };
};

    });
    });


css

Code:
#tisold {
    background: repeat scroll 0% 0% #F00 !important;
    padding: 3px;
    border: 1px solid #FFF;
    border-radius: 3px;
    color: black;
    font-weight: bold;
    display: inline;
    position: initial;
    margin-top: -6px;
    float: right;
    margin-right: 350px;
    max-height:30px;
    width:200px;
}
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by JScript January 8th 2015, 6:13 pm

@Rhino.Freak
Hello, I will test a code and you return as soon as possible, the biggest problem now is to work on all versions!
I do not like to make a code for a single version...

@_Twisted_Mods_
I have not tested your code, but I think that works, let's wait for him to answer.

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Reminder message for topics older than 1 month Empty Re: Reminder message for topics older than 1 month

Post by Rhino.Freak January 8th 2015, 6:53 pm

I will reply here soon to inform thanks guys
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum