|
Post by Wormopolis on Sept 4, 2009 15:32:08 GMT -8
<script type="text/javascript"> <!-- // posting page checkboxes merge/hide // by Wormopolis - wormocodes.proboards.com// keep header intact if (location.href.match(/thread=260/) && document.postForm) { placehold=document.postForm.counter.parentNode.parentNode; nwrw=placehold.parentNode.insertRow(placehold.rowIndex+1); var nwcl=nwrw.insertCell(0); nwcl.appendChild(document.createElement('font')); nwcl.firstChild.size=2; nwcl.className="windowbg2"; nwcl.firstChild.appendChild(document.createTextNode('Options:')); nwcl=nwrw.insertCell(-1); nwcl.id="options"; nwcl.className="windowbg2"; spacer=document.createTextNode(" "); function comp(vict) { vict.id=vict.name+'orig'; cls=vict.parentNode; nwbx=document.createElement('input'); nwbx.type="checkbox"; nwbx.id=vict.name; nwbx.style.verticalAlign="middle"; nwbx.onclick= function () {v=this.id+'orig'; document.getElementById(v).checked=this.checked;}; desc=cls.parentNode.firstChild.cloneNode(true); desc.innerHTML=desc.innerHTML.replace(/\:/,''); nwcl.appendChild(nwbx); nwcl.appendChild(desc.firstChild); nwcl.appendChild(spacer.cloneNode(true)); cls.parentNode.style.display="none"; } function hide(vict) { cls=vict.parentNode; cls.parentNode.style.display="none"; } if (document.postForm.notify) comp(document.postForm.notify); if (document.postForm.nosmiles) hide(document.postForm.nosmiles); if (document.postForm.lock) comp(document.postForm.lock); if (document.postForm.sticky) comp(document.postForm.sticky); if (document.postForm.announcements) comp(document.postForm.announcements); } // --> </script>
|
|
|
Post by tunescool on Sept 4, 2009 16:52:48 GMT -8
|
|
|
Post by Wormopolis on Sept 5, 2009 10:06:51 GMT -8
sorry.. I copied directly from the header I was testing with.
change this line:
if (location.href.match(/thread=260/) && document.postForm) {
to this:
if (document.postForm) {
|
|
|
Post by tunescool on Sept 5, 2009 10:19:44 GMT -8
how can i make the font next to the boxes smaller again
|
|
|
Post by Wormopolis on Sept 5, 2009 10:29:40 GMT -8
did you erase the CSS? it was adjustable in the CSS.
|
|
|
Post by tunescool on Sept 5, 2009 10:54:34 GMT -8
it wasnt there, everything works, thanks for the code
|
|
|
Post by tunescool on Sept 7, 2009 1:43:03 GMT -8
i didnt really check it, i just wanted to take a break. when i modified the announcement again, announcement wasnt checked. i copied it and hit modify and it disappeared
|
|
|
Post by Wormopolis on Sept 7, 2009 2:12:51 GMT -8
ah.. yeah it doesnt go in reverse.. I see what you mean. hold on I think I can fix that...
|
|
|
Post by Wormopolis on Sept 7, 2009 2:26:37 GMT -8
<style type="text/css"> #options font {font-size:10; color:0055FF;} </style> <script type="text/javascript"> <!-- // posting page checkboxes merge // by Wormopolis - wormocodes.proboards.com// keep header intact if (document.postForm) { placehold=document.postForm.counter.parentNode.parentNode; nwrw=placehold.parentNode.insertRow(placehold.rowIndex+1); var nwcl=nwrw.insertCell(0); nwcl.appendChild(document.createElement('font')); nwcl.firstChild.size=2; nwcl.className="windowbg2"; nwcl.firstChild.appendChild(document.createTextNode('Options:')); nwcl=nwrw.insertCell(-1); nwcl.id="options"; nwcl.className="windowbg2"; spacer=document.createTextNode(" "); function comp(vict) { vict.id=vict.name+'orig'; cls=vict.parentNode; nwbx=document.createElement('input'); nwbx.type="checkbox"; nwbx.id=vict.name; nwbx.style.verticalAlign="middle"; if(document.getElementById(vict.id).checked) nwbx.defaultChecked=true; nwbx.onclick= function () {v=this.id+'orig'; document.getElementById(v).checked=this.checked;}; desc=cls.parentNode.firstChild.cloneNode(true); desc.innerHTML=desc.innerHTML.replace(/\:/,''); nwcl.appendChild(nwbx); nwcl.appendChild(desc.firstChild); nwcl.appendChild(spacer.cloneNode(true)); cls.parentNode.style.display="none"; } function hide(vict) { cls=vict.parentNode; cls.parentNode.style.display="none"; } // use hide() to hide option, use comp() to compact it if (document.postForm.notify) comp(document.postForm.notify); if (document.postForm.nosmiles) hide(document.postForm.nosmiles); if (document.postForm.lock) comp(document.postForm.lock); if (document.postForm.sticky) comp(document.postForm.sticky); if (document.postForm.announcements) comp(document.postForm.announcements); } // --> </script>
|
|
|
Post by tunescool on Sept 7, 2009 2:43:16 GMT -8
|
|
|
Post by Wormopolis on Sept 7, 2009 5:08:21 GMT -8
that link takes me to a page that is an error (probably because guests dont have the ability to delete posts).
can you describe what happened?
|
|
|
Post by Wormopolis on Sept 7, 2009 5:08:46 GMT -8
test sticky
|
|
|
Post by Wormopolis on Sept 7, 2009 5:14:51 GMT -8
test Unsticky
|
|
|
Post by Wormopolis on Sept 7, 2009 5:22:19 GMT -8
well that is interesting... even with no codes running, if you make a new reply and a checkbox is ticked, if you uncheck it, it doesnt register.
I'm going to see what support has to say about it...
|
|
|
Post by tunescool on Sept 7, 2009 5:23:34 GMT -8
|
|