inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Sept 16, 2006 13:11:28 GMT -8
Did this one for a request. Basically if a forum changes hands and a new owner takes over the admin account, this will let you change the profile shown for posts made by the "old" main admin. Just edit the blue with the new display name to show and the red with the timestamp for when the forum "changed hands" ( Time stamp Generator). <script type="text/javascript"> <!-- /* disassociate old admin posts from before certain date */
var new_name = 'New Name'; var cut_off_date = 0000000000;
if(location.href.match(/board=/)) { var td = document.getElementsByTagName('td'); for(i=0; i<td.length; i++) { if(td.item(i).width == '20%' && td.item(i).vAlign == 'top') { var a = td.item(i).getElementsByTagName('a'); if(a.item(0) && a.item(1) && a.item(0).name < cut_off_date && a.item(1).href.match(/action=viewprofile&(amp;)?user=admin/)) { td.item(i).innerHTML = new_name + '<br />Guest'; } } else if(td.item(i).width == '20%' && td.item(i).className == 'windowbg2' && td.item(i).innerHTML.match(/user=admin/) && td.item(i).onclick.toString().match(/&post=(\d{10})/) && RegExp.$1 < cut_off_date) { td.item(i).firstChild.replaceChild(document.createTextNode(new_name), td.item(i).getElementsByTagName('a').item(0)); } } } //--> </script>Global Footer
|
|