inherit
118095
0
Feb 25, 2021 0:36:17 GMT -8
Rosefriend
Friendship is the Finest Rose in the Garden of Life
1,855
January 2008
rosefriend
|
Post by Rosefriend on Nov 21, 2012 1:58:18 GMT -8
Can anyone help me here please...sorry if it has already been asked for..
RF
|
|
inherit
118095
0
Feb 25, 2021 0:36:17 GMT -8
Rosefriend
Friendship is the Finest Rose in the Garden of Life
1,855
January 2008
rosefriend
|
Post by Rosefriend on Nov 24, 2012 1:14:15 GMT -8
This is the code that we have been using from TodgeTime limit on deleting/modifying posts by Todge (Todge-@ntlworld.com) Global or board footer Copyright ? 2005 Please keep this header intact */ // How many minutes should modifying/deleting be allowed? (Up to 1440 minutes (24 hours)) var modDelTime = 30; // Check for admin or Guest if(pb_username != 'Guest' && administrator != 'yes' ) { // Set variables var postTime; var postHr; var postMin; var realHr = parseInt(realTime[0].split(' ')[realTime[0].split(' ').length-1]); var realMin = parseInt(realTime[1].split(/(p|a)/)[0]); if(modDelTime < 5) { modDelTime = 5; } // Get forum time and convert to minutes if(realTime[1].match('p') && realHr != 12) { realHr = realHr+12; } else if(realTime[1].match('a') && realHr == 12) { realHr = 0; } realHr = realHr+24; realTime = realHr*60+realMin; // Check mini profiles and get post times, convert to minutes var td=document.getElementsByTagName('td'); for(t=0; t<td.length; t++) { if(td[t].className.match('windowbg') && td[t].width=='20%' && td[t].vAlign=='top' && td[t].align=='left' && td[t].innerHTML.match(pb_username)) { postTime = td[t+3].innerHTML.split('?')[1].split('?')[0]; if(postTime.match('day')) { postTime = postTime.split(':'); postMin = parseInt(postTime[1].split(/(p|a)/)[0]); postHr = parseInt(postTime[0].split(' ')[postTime[0].split(' ').length-1]); if(postTime[1].match('p') && postHr != 12) { postHr = postHr+12; } else if(postTime[1].match('a') && postHr == 12) { postHr = 0; } if(postTime[0].match('Today')) { postHr = postHr+24; } postTime = postHr*60+postMin; // Remove modify and delete buttons if time has expired if(realTime-postTime > modDelTime) { td[t+4].innerHTML = '<a'+td[t+4].innerHTML.split(/<a/i)[1]; }} else { td[t+4].innerHTML = '<a'+td[t+4].innerHTML.split(/<a/i)[1]; }}}} // --> </script>
|
|
inherit
134494
0
Jun 11, 2015 21:30:29 GMT -8
taylor40
317
December 2008
taylor40
|
Post by taylor40 on Nov 24, 2012 6:03:30 GMT -8
I've also been using that code on my forum and would like to have it on my v5 forum if possible... Cheers
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,322
January 2004
todge
|
Post by Todge on Nov 24, 2012 12:05:17 GMT -8
Added to the list
|
|
inherit
118095
0
Feb 25, 2021 0:36:17 GMT -8
Rosefriend
Friendship is the Finest Rose in the Garden of Life
1,855
January 2008
rosefriend
|
Post by Rosefriend on Nov 24, 2012 22:34:42 GMT -8
Thanks for the help Todge, it is really appreciated.
RF
|
|
inherit
134494
0
Jun 11, 2015 21:30:29 GMT -8
taylor40
317
December 2008
taylor40
|
Post by taylor40 on Dec 28, 2012 1:06:27 GMT -8
Just wondering if this'll be available when v5 launches?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,322
January 2004
todge
|
Post by Todge on Dec 28, 2012 3:37:38 GMT -8
This is my next project now that Christmas is out of the way.
As for if it will be ready in time for v5, I hope so, but I'm not promising.
|
|
inherit
First Contributor
66253
0
Mar 18, 2024 11:09:20 GMT -8
aRMY83
2,925
December 2005
army83
|
Post by aRMY83 on Dec 28, 2012 7:28:57 GMT -8
Now this one Todge I'll be looking forward to. *bookmarked*
|
|
inherit
134494
0
Jun 11, 2015 21:30:29 GMT -8
taylor40
317
December 2008
taylor40
|
Post by taylor40 on Dec 31, 2012 5:01:53 GMT -8
This is my next project now that Christmas is out of the way. As for if it will be ready in time for v5, I hope so, but I'm not promising. Brilliant... look fwd to it... cheers
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,322
January 2004
todge
|
Post by Todge on Jan 1, 2013 6:46:06 GMT -8
Plug-in is in the database.
|
|
inherit
First Contributor
66253
0
Mar 18, 2024 11:09:20 GMT -8
aRMY83
2,925
December 2005
army83
|
Post by aRMY83 on Jan 1, 2013 7:21:32 GMT -8
Thanks Todge and Happy New Year to you and yours.
|
|
inherit
118095
0
Feb 25, 2021 0:36:17 GMT -8
Rosefriend
Friendship is the Finest Rose in the Garden of Life
1,855
January 2008
rosefriend
|
Post by Rosefriend on Jan 1, 2013 7:25:46 GMT -8
Plug-in is in the database. Wonderful Todge and thanks so much...Happy New Year !! RF EDIT: Does this also stop members deleting posts after a certain time Todge ??
|
|
inherit
First Contributor
66253
0
Mar 18, 2024 11:09:20 GMT -8
aRMY83
2,925
December 2005
army83
|
Post by aRMY83 on Jan 1, 2013 17:45:01 GMT -8
Hello Rosefriend...
I know you directed this to Todge, but if I may add here, it does stop members from deleting posts when the time has expired within the time settings of the plug-in.
|
|