![]() |
Please help mine is messed up it looks like the attachment
also here is my postbit code whats wrong with it PHP Code:
also the + and - aint showing :( please help me |
/me Bumps This Thread And Crys For Help
|
Only just found this hack and think its one of the most useful I have come across. Really easy to install as well. Thanks a lot bira :)
L8R |
Hmm, I remember a "Collapsable forums on forum home" hack that does a similar thing, but also works with MoZilla. I wish this one would work with MoZilla, too ...
|
[QUOTE]Originally posted by FireFly
place $post[shortmsg] in the posbit template. :) |
Nice hack, installed and works perfectly!
|
[QUOTE]Originally posted by SiXXGuNNZ
where abouts to I put it? do I replace anything in postbit? or do I just add it wherever I feel like it? |
I do havea agree that this is a nice hack, though I know I have messed up on the install, nothing seems to be broken though the expand all / contract all does not work. I have tried to go through the reg process to see if there were any problems there and I have found none. The board is up and working fine other than that one problem.
I am running 2.2.6 and I have a few mods installed already any help with this would be welcomed and my thanks for this in advance. |
Well I went back after a good nights sleep and found that I had left one of the steps out. So this was totally my error and this is one of those hacks that are a must have :)
|
I really wanted an expand/contract all that is client side. This will not hold state when moving from page to page.
Note that the object I am referencing to get the DIV collection has the id of "tblResults". You will have to modify the "postbit" tempate and add a name to the parent table that encapsules all of the threads. id="tblResults" JavaScript Code [QUOTE] <script language="JavaScript" type="text/javascript"> <!-- function ExpandAll(){ var objDivs = tblResults.all.tags("DIV"); for(i = 0; i < objDivs.length; i++){ if (objDivs(i).style.display=="none") { objDivs(i).style.display=""; }else { objDivs(i).style.display="none"; } } } function ContractAll(){ var objDivs = tblResults.all.tags("DIV"); for(i = 0; i < objDivs.length; i++){ if (objDivs(i).style.display=="show" || objDivs(i).style.display=="") { objDivs(i).style.display="none"; }else { objDivs(i).style.display=""; } } } </script> |
All times are GMT. The time now is 07:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|