Reminder message for topics older than 1 month
4 posters
Page 1 of 1
Reminder message for topics older than 1 month
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
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
Re: Reminder message for topics older than 1 month
Well? Anyone? At least reply whether its possible or not?
Re: Reminder message for topics older than 1 month
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
Re: Reminder message for topics older than 1 month
But that's not what he wishes!sarkzkalie01 wrote:If you're a moderator or s.mod, you can lock/unlock any thread - any time
Who told you that with script can not?sarkzkalie01 wrote:, but script can't.
The impossible is just a matter of opinion, you have never heard this?sarkzkalie01 wrote: My opinion is hard to do, man!
How do you believe that if even tried to solve it?sarkzkalie01 wrote: In case someone can do, I believe your forum will be crash
@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...)
Re: Reminder message for topics older than 1 month
Thanks! Glad you like the idea!
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
Appreciate that you're working on it
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
Appreciate that you're working on it
Re: Reminder message for topics older than 1 month
Be calm, the code is being developed ok?Rhino.Freak wrote:bumping this
JS
Re: Reminder message for topics older than 1 month
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
When I finish I will post the code ok?
JS
Re: Reminder message for topics older than 1 month
just reminding.. and pushing this topic towards top.
Re: Reminder message for topics older than 1 month
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
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
Re: Reminder message for topics older than 1 month
I don't get what the use of Pagination got to do with what I want.. Can you explain further?
Re: Reminder message for topics older than 1 month
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
Re: Reminder message for topics older than 1 month
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
javascript 2
placement = homepage
css
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;
}
Re: Reminder message for topics older than 1 month
@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
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
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum