Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
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

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
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.

newBookmarkLockedFalling