|
Post by Dragon on Jan 9, 2012 12:58:54 GMT -8
Can an expand/collapse code for mod functions under threads be made please?
So the image for "Mod Functions:" can be clicked and hides the other buttons until you click it to expand and so...
|
|
|
Post by Wormopolis on Jan 13, 2012 17:19:44 GMT -8
posts too?
|
|
|
Post by Dragon on Jan 17, 2012 16:10:29 GMT -8
I thought it only showed at the bottom of the thread once ? O.O
Theres the disable advanced mod button on board listings so its not necessary there, just inside the threads.
|
|
|
Post by Wormopolis on Jan 22, 2012 1:19:07 GMT -8
<script type="text/javascript"> <!-- // admin function collapse // request by dragon // code by Wormopolis
var hideFuncsByDefault='true';
for (im=document.getElementsByTagName('img'), ii=im.length-1; ii>0; ii--) { if (im[ii].alt.match(/admin functions:/i)) { nwspn=document.createElement('span'); nwspn.id='adminfuncs'; if (hideFuncsByDefault) nwspn.style.display='none'; while (im[ii].nextSibling) { nwspn.appendChild(im[ii].nextSibling); } im[ii].parentNode.appendChild(nwspn); im[ii].onclick=function() {this.nextSibling.style.display=(this.nextSibling.style.display=='none' ? '' : 'none');}; break; } }
// --> </script>
|
|
|
Post by Dragon on Jan 22, 2012 21:30:03 GMT -8
|
|
|
Post by Wormopolis on Jan 22, 2012 21:53:42 GMT -8
is there an image or did you turn it to text?
|
|
|
Post by Dragon on Jan 23, 2012 9:22:47 GMT -8
Its a transparent text image. Just says Mod Functions. the rest o0f the buttons are the same that way.
|
|
|
Post by Wormopolis on Jan 23, 2012 10:43:46 GMT -8
dammit.. you had to be different on that one.
what is the url of the image?
|
|
|
Post by Dragon on Jan 24, 2012 19:25:44 GMT -8
|
|
|
Post by Wormopolis on Jan 24, 2012 20:50:47 GMT -8
you took out the alt I was looking for... but now I dont see how it found it in the first place....
can you give my account the ability to see admin functions
|
|
|
Post by Wormopolis on Feb 5, 2012 22:49:28 GMT -8
you know.. im thinking this didnt work because your forum remodel rewrites innerHTML of the boards and therefore strips off any events. if you moved it to bottom of global footer it should start working again...
|
|
|
Post by Dragon on Feb 11, 2012 13:47:47 GMT -8
I had to place it above outerforumborders part 2 but otherwise its at the bottom.
It seems to be working now, collapses the functions by default and opens when clicked on the board list and in threads.
Don't know that there any errors yet.
|
|
|
Post by Wormopolis on Feb 11, 2012 16:52:23 GMT -8
ok. that is what I was thinking would happen
|
|