|
This puts a space between the poll table and the threads table inside a thread with a poll. Global Footers is where the module should go. <script type="text/Javascript"> // Separate Poll from Thread by Chris // Do not redistribute without permission of the creator
if(location.href.match(/action=view_topic/i)){ var f = document.forms; for(a=0;a<f.length;a++){ if(typeof f[a].action == "string" && f[a].action.match(/action=do_poll/i)){ var x = f[a]; while(x.nodeName.toLowerCase() != "table"){ x = x.parentNode; } x.parentNode.insertBefore(document.createElement("br"), x.nextSibling); break; } } } </script>
Last Edit: Jun 17, 2007 21:42:00 GMT by Chris
|
|
|
|
|
June 17th 2007, this code was updated to prevent a JavaScript error from being generated in threads without a poll because of an error with some form.
|
|
|
|