|
Post by Mark Knight Day on Apr 30, 2011 3:48:55 GMT
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Apr 30, 2011 3:50:46 GMT
<script type="text/javascript"> <!-- // [CB] Ban/warn/modify profile links in mini-profile // [url]http://codercommunity.proboards.com[/url] // Edited for Mark
if(pb_username=='admin'){ if(pb_action == "display" || pb_action == "viewprofile") { for(var td = document.getElementsByTagName("td"), x = 6; x < td.length; x++) { if(td[x].width == "20%" && td[x].getElementsByTagName("center")[0]) { var a = td[x].getElementsByTagName("a"), b = a.length, c = 0, username; while(c < b){
if(a[c].className && a[c].className.match(/group/i)){ username = a[c].href.split("=")[2]; break; } c++; } td[x].innerHTML += "<br> <a href='index.cgi?action=warnuser&user="+username+"'>Warn "+username+"</a> - <a href='index.cgi?action=banuser&user="+username+"'>Ban "+username+"</a> - <a href='index.cgi?action=modifyprofile&user="+username+"'>Modify "+username+" Profile</a> ";
} } } } //--> </script>
Tested and works.
|
|
|
Post by Mark Knight Day on Apr 30, 2011 6:36:46 GMT
Thanks
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Apr 30, 2011 21:01:13 GMT
No problem, happy to help.
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Apr 30, 2011 21:04:13 GMT
THIS REQUEST IS NOW COMPLETED.
|
|