Post by Peter on Oct 31, 2004 11:24:39 GMT
Code by Uchiha Sasuke
This code will allow you to delete a massive amount of threads in one moment
Goes at the TOP of BOARD FOOTERS
for this part
this is where you put the moderators of that board
where it says Moderator1 and Moderator2, replace those with the moderators login names, and if you have more than 2, just keep adding the
SpecialUsers[1] = "Moderator2"
upping the green number by 1 each time you add another
for the Red URL, this is the URL to the "Delete Thread" button, if you wish to change it, edit the Red URL to a new one
for the Blue URL, this is the URL to the "Return To Board" button, if you wish to change it, edit the Blue URL to a new one
Description:
this is what it will look like when you enter a board
members.lycos.co.uk/mnstrgarge/ssd/mass_delete1.gif
and when you click that Delete Threads button, the page will look like this
members.lycos.co.uk/mnstrgarge/ssd/mass_delete2.gif
see the checkbox's next to the threads, when you click those, it will mark which thread you want to be delete
then, you would press the "Delete Threads" button, and it would delete them, or if you don't want to delete any threads, you can click the "Return To Board" button to return to regular board
well, have fun, and thanks to A._leon for hosting the images ^_^#nosmileys#nosmileys
This code will allow you to delete a massive amount of threads in one moment
Goes at the TOP of BOARD FOOTERS
<script>
/*
Mass Thread Deletion Code
Coded by NCGI (Uchiha Sasuke)
These credits may not be taken out, and code may not be reposted with out express permission from the creator, or your baord will be in violation of Copyrights
*/
SpecialUsers = new Array();
SpecialUsers[0] = "Moderator1"
SpecialUsers[1] = "Moderator2"
MassDelete = "http://members.lycos.co.uk/mnstrgarge/ssd/deletethread.gif"
ReturnToBoard = "http://members.lycos.co.uk/mnstrgarge/ssd/backboard.gif"
if (location.href.indexOf('action=') !=-1) {bname = 'index/cgi?'; snum = '0'}
else {
if (location.href.indexOf('start=') !=-1) {}
else {window.location=location+"&start=0"}
if (location.href.match(/board=(.+?)\&start=(\d+)/)) {bname = RegExp.$1; snum = RegExp.$2}
else {bname = '/index.cgi?'; snum = '0'}}
function deletethread(It,threadnum) {
form = document.getElementById('delete')
if (It == true) {form.innerHTML+='<input type="hidden" id="'+threadnum+'" name="action" value="removethread"><input type="hidden" id="s'+threadnum+'" name="delete-'+threadnum+'" value="1">'}
else {
fremove = document.getElementById(threadnum)
sremove = document.getElementById('s'+threadnum)
form.removeChild(fremove); form.removeChild(sremove)
}}
function displayboxes() {
iTD = document.getElementsByTagName('td')
for (t=0;t<iTD.length;t++) {
if (iTD[t].className=="windowbg2" && iTD[t].width=="4%" && iTD[t].align=="center") {
if (iTD[t+1].innerHTML.match(/num=(\d+)/i)) {var threadnum = RegExp.$1}
iTD[t].innerHTML='<input type="checkbox" name="thread" id="thread" onclick="deletethread(this.checked,'+threadnum+')">'
}}
iTable = document.getElementsByTagName('table')
for (a=0;a<iTable.length;a++) {
if (iTable.cellPadding=="3" && iTable.cellSpacing=="0" && iTable.width=="100%" && iTable.innerHTML.match(/Pages:/) && iTable[a+1].className=="") {
addtd = iTable.rows(0).insertCell(0)
addtd.innerHTML = '<div valign="middle" align="left"><form name="delete" id="delete" action="index.cgi"><input type="hidden" name="board" value="'+bname+'"><input type="hidden" name="start" value="'+snum+'"><input type="submit" value="Delete Threads"></form></div>'
}}}
vTD = document.getElementsByTagName('td')
for (g=0;g<SpecialUsers.length;g++) {
special = "|username="+SpecialUsers[g]}
users = "(action=admin"+special+")"
if (vTD[5].innerHTML.match(users)) {
displaybutton = ' <a href="/index.cgi?board='+bname+'&start='+snum+'&type=delete"><img src="'+MassDelete+'" border="0"></a>'
if (location.href.indexOf("type=delete") !=-1) {
displaybutton = ' <a href="/index.cgi?board='+bname+'&start='+snum+'"><img src="'+ReturnToBoard+'" border="0"></a>'
displayboxes() }}
else {displaybutton = ''}
for (v=0;v<vTD.length;v++) {
if (vTD[v].align=="right" && vTD[v].width=="400") {
vTD[v].innerHTML+=displaybutton}}
</script>
/*
Mass Thread Deletion Code
Coded by NCGI (Uchiha Sasuke)
These credits may not be taken out, and code may not be reposted with out express permission from the creator, or your baord will be in violation of Copyrights
*/
SpecialUsers = new Array();
SpecialUsers[0] = "Moderator1"
SpecialUsers[1] = "Moderator2"
MassDelete = "http://members.lycos.co.uk/mnstrgarge/ssd/deletethread.gif"
ReturnToBoard = "http://members.lycos.co.uk/mnstrgarge/ssd/backboard.gif"
if (location.href.indexOf('action=') !=-1) {bname = 'index/cgi?'; snum = '0'}
else {
if (location.href.indexOf('start=') !=-1) {}
else {window.location=location+"&start=0"}
if (location.href.match(/board=(.+?)\&start=(\d+)/)) {bname = RegExp.$1; snum = RegExp.$2}
else {bname = '/index.cgi?'; snum = '0'}}
function deletethread(It,threadnum) {
form = document.getElementById('delete')
if (It == true) {form.innerHTML+='<input type="hidden" id="'+threadnum+'" name="action" value="removethread"><input type="hidden" id="s'+threadnum+'" name="delete-'+threadnum+'" value="1">'}
else {
fremove = document.getElementById(threadnum)
sremove = document.getElementById('s'+threadnum)
form.removeChild(fremove); form.removeChild(sremove)
}}
function displayboxes() {
iTD = document.getElementsByTagName('td')
for (t=0;t<iTD.length;t++) {
if (iTD[t].className=="windowbg2" && iTD[t].width=="4%" && iTD[t].align=="center") {
if (iTD[t+1].innerHTML.match(/num=(\d+)/i)) {var threadnum = RegExp.$1}
iTD[t].innerHTML='<input type="checkbox" name="thread" id="thread" onclick="deletethread(this.checked,'+threadnum+')">'
}}
iTable = document.getElementsByTagName('table')
for (a=0;a<iTable.length;a++) {
if (iTable.cellPadding=="3" && iTable.cellSpacing=="0" && iTable.width=="100%" && iTable.innerHTML.match(/Pages:/) && iTable[a+1].className=="") {
addtd = iTable.rows(0).insertCell(0)
addtd.innerHTML = '<div valign="middle" align="left"><form name="delete" id="delete" action="index.cgi"><input type="hidden" name="board" value="'+bname+'"><input type="hidden" name="start" value="'+snum+'"><input type="submit" value="Delete Threads"></form></div>'
}}}
vTD = document.getElementsByTagName('td')
for (g=0;g<SpecialUsers.length;g++) {
special = "|username="+SpecialUsers[g]}
users = "(action=admin"+special+")"
if (vTD[5].innerHTML.match(users)) {
displaybutton = ' <a href="/index.cgi?board='+bname+'&start='+snum+'&type=delete"><img src="'+MassDelete+'" border="0"></a>'
if (location.href.indexOf("type=delete") !=-1) {
displaybutton = ' <a href="/index.cgi?board='+bname+'&start='+snum+'"><img src="'+ReturnToBoard+'" border="0"></a>'
displayboxes() }}
else {displaybutton = ''}
for (v=0;v<vTD.length;v++) {
if (vTD[v].align=="right" && vTD[v].width=="400") {
vTD[v].innerHTML+=displaybutton}}
</script>
for this part
SpecialUsers[0] = "Moderator1"
SpecialUsers[1] = "Moderator2"
SpecialUsers[1] = "Moderator2"
this is where you put the moderators of that board
where it says Moderator1 and Moderator2, replace those with the moderators login names, and if you have more than 2, just keep adding the
SpecialUsers[1] = "Moderator2"
upping the green number by 1 each time you add another
for the Red URL, this is the URL to the "Delete Thread" button, if you wish to change it, edit the Red URL to a new one
for the Blue URL, this is the URL to the "Return To Board" button, if you wish to change it, edit the Blue URL to a new one
Description:
this is what it will look like when you enter a board
members.lycos.co.uk/mnstrgarge/ssd/mass_delete1.gif
and when you click that Delete Threads button, the page will look like this
members.lycos.co.uk/mnstrgarge/ssd/mass_delete2.gif
see the checkbox's next to the threads, when you click those, it will mark which thread you want to be delete
then, you would press the "Delete Threads" button, and it would delete them, or if you don't want to delete any threads, you can click the "Return To Board" button to return to regular board
well, have fun, and thanks to A._leon for hosting the images ^_^#nosmileys#nosmileys