Misc List all users who have posted.

File Not Found

Guest
Author
File Not Found
Contributors
N/A
Quickbar Entry
javascript: function getElementsByClass(searchClass, node, tag)
{var classElements = new Array();
if (node == null) node = document;
if (tag == null) tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp("(^|\\s)" + searchClass + "(\\s|$)");
for (i = 0, j = 0;i < elsLen;i++)
{if (pattern.test(els[i].className))
{classElements[j] = els[i];
j++;
}
}
return classElements;
}
posters = '';
listArray = getElementsByClass("igmline small");
posters =[];
for (i = 0;i < listArray.length - 1;i++)
{posters[i] = listArray[i].getElementsByTagName("a")[0].firstChild.nodeValue;
}
alert(posters);
Public?
Public
The below will list all users who have posted on the current page of a thread on your tribe forum.

Again however, this version is currently only setup to work if you "Open forum in a new window"

[spoil]
Code:
javascript: function getElementsByClass(searchClass, node, tag)
   {var classElements = new Array();
    if (node == null) node = document;
    if (tag == null) tag = '*';
    var els = node.getElementsByTagName(tag);
    var elsLen = els.length;
    var pattern = new RegExp("(^|\\s)" + searchClass + "(\\s|$)");
    for (i = 0, j = 0;i < elsLen;i++)
       {if (pattern.test(els[i].className))
           {classElements[j] = els[i];
            j++;
           }
       }
    return classElements;
   }
posters = '';
listArray = getElementsByClass("igmline small");
posters =[];
for (i = 0;i < listArray.length - 1;i++)
   {posters[i] = listArray[i].getElementsByTagName("a")[0].firstChild.nodeValue;
   }
alert(posters);
[/spoil]
 
Upvote 0

File Not Found

Guest
and the below script will compare the output list from the above, to the members list.

[spoil]
Code:
javascript: alert(checklist  + "\n" + memberlist); tbl = document.getElementById("ally_content").getElementsByTagName("table")[0]; checklist = prompt("Please paste the list of players you need to check against").split(", "); memberlist = []; rows = tbl.getElementsByTagName("tr"); for(i=1; i< rows.length -1; i++){if(rows[i].getElementsByTagName("a")[0]){memberlist[i-1] = rows[i].getElementsByTagName("a")[0].firstChild.nodeValue;} else memberlist[i] = "error error error error  -  " +i } counter = [];  for(x=0; x<memberlist.length;x++){counter[x] = 0; for(y=0; y< checklist.length; y++){if(checklist[y].match(memberlist[x])) counter[x] = counter[x]+1;}} output = ''; for(z=0; z < memberlist.length; z++){output += memberlist[z] + "  -  "; if(counter[z] > 0) {output += "true\n";} else {output += "false\n";}} alert(output);
[/spoil]
 

File Not Found

Guest
UPGRADES!

Now works regardless of open forum in new window.


[spoil]
Code:
javascript: 

function getElementsByClass(searchClass, node, tag)
   {var classElements = new Array();
    if (node == null) node = document;
    if (tag == null) tag = '*';
    var els = node.getElementsByTagName(tag);
    var elsLen = els.length;
    var pattern = new RegExp('(^|\\s)' + searchClass + '(\\s|$)');
    for (i = 0, j = 0;i < elsLen;i++)
       {if (pattern.test(els[i].className))
           {classElements[j] = els[i];
            j++;
           }
       }
    return classElements;
   }

var doc = (window.frames.length > 1) ? window.main.document: document;
if (doc.getElementsByTagName("iframe").length > 0)
   {var iframes = doc.getElementsByTagName("iframe")[0];
    var frame = (iframes.src.match(/forum.php/)) ? iframes.contentWindow.document: doc;
    work =  frame;
   }
else
   {work = doc;
   }

listArray = getElementsByClass("igmline small", work);
posters =[];

for (i = 0;i < listArray.length - 1;i++)
   {posters[i] = listArray[i].getElementsByTagName("a")[0].firstChild.nodeValue;
   }
alert(posters);

void (0);
[/spoil]
 
Top