The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
This hack adds expansion and contraction support to the forum home page (index.php). The current version of this hack has been tested on vBulletin 2.3.2
Only supported browsers gain the ability to expand and collapse forum groups, non supported browsers do not gain anything, but no errors will be displayed. Each users preference is saved to the database, additionally admins can select which forums are to be collapsed by default.
Note: PHP 4.1.x or 4.2.x is required, PHP 4.0.x is now unsupported. Instructions inside attachment. Updated 4:18 PM 1/12/2002 - Packaged Post, Thread template Addon Updated 7:53 PM 1/11/2002 - corrected installer Updated 4:23 PM 1/11/2002 - Added DB support - Added Per forum Collapsed Pref to admin cp Updated 01/10/02 01:39am. - Fixed missing line. Updated 04/06/02 01:30am. - Version 1.2 - PHP 4.1.x, 4.2.x support with or without register globals off. - Performance tweeked javascript Updated 06/06/02 11:20pm. - Corrected templatecache bug Updated 06/25/02 - Corrected formatting errors in readme Updated 09/01/02 - vB 2.2.7 compatiblity statement, updated readme. Updated 30/08/03 - vB 2.2.x and 2.3.x compatiblity statement, added new automatic testing script. FAQ Q: what exactly is Template_Option.txt? A: Basically that exention was provided as a request to cover sites with the template modification that adds a "header" to each grouping. Q: How do I show a forum depth greater than 2? A: Open vB Admin cp set forum depth to your required level. Then create the additional templates. For template examples see https://vborg.vbsupport.ru/showthrea...465#post250465 Q: Can sub-forums be collapsed? A: Yes. See the above answer for example templates. Q: XYZ doesn't work help. A: Check that all the template changes required have been made, 99% of problems are due to incorrect template alteration. Also use the cx_test.php to automatically check your installation! Show Your Support
|
Comments |
#142
|
|||
|
|||
hmmm,
s o r o k a: The change needed to fix the hack is relatively tiny. open up forumhome_expandjscript and change while (document.getElementById('f'+itemID+i)!=null) { fitems[i]= document.getElementById('f'+itemID+i); i++; } to while (document.getElementById('f'+itemID+'z'+i)!=null) { fitems[i]= document.getElementById('f'+itemID+'z'+i); i++; } |
#143
|
||||
|
||||
hmmm... still no luck, I just thought I should mention that I changed index.php from the original
PHP Code:
PHP Code:
|
#144
|
||||
|
||||
alright, i downloaded the most recent version, but now it minimizes fine, but when i maximize it only the forum/posts etc. show up.???
|
#145
|
||||
|
||||
alright i figured out the problem, if anyone else is having this problem, it is because i teeny bit of code was left out in Template_Option. What is missing is a +'z' in the first while statement. I have included a new version that will work.
Code:
<script language="JavaScript" type="text/javascript"> <!-- function dostatesaveXP (forumID, value) { var ifrm; if (document.getElementById("colapser")) { document.getElementById("colapser").setAttribute("src", "updateindex.php?s=$session[sessionhash]&fid="+forumID+"&val="+value); document.getElementById("colapser").style.visibility="visible"; document.getElementById("colapser").style.display="inline"; document.getElementById("colapser").style.visibility="hidden"; document.getElementById("colapser").style.display="none"; } else { ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id","colapser"); ifrm.setAttribute("src", "updateindex.php?s=$session[sessionhash]&fid="+forumID+"&val="+value); ifrm.style.width = 80+"px"; ifrm.style.height = 30+"px"; // ifrm.onload = hideframe; document.body.appendChild(ifrm); document.getElementById("colapser").style.visibility="hidden"; document.getElementById("colapser").style.display="none"; } } function hideframe() { document.getElementById("colapser").style.visibility="hidden"; document.getElementById("colapser").style.display="none"; } function forumexp(itemID) { var fitems=new Array(); var i=0; var csslevel =1; if (document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("CSS", "2.0")) { // The browser claims to support CSS Level 2 // interface csslevel=2; } if (document.getElementById('c'+itemID).style.visibility=='hidden') { document.getElementById('c'+itemID).style.visibility="visible"; document.getElementById('c'+itemID).style.display="inline"; document.getElementById('e'+itemID).style.visibility="hidden"; document.getElementById('e'+itemID).style.display="none"; document.getElementById('f'+itemID+'z').style.visibility="visible"; if (csslevel==1) { document.getElementById('f'+itemID+'z').style.display="inline"; } else { document.getElementById('f'+itemID+'z').style.display="table-row"; } // build element collection using w3c dom level2 methods while (document.getElementById('f'+itemID+'z'+i)!=null) { fitems[i]= document.getElementById('f'+itemID+'z'+i); i++; } for (i = 0; i < fitems.length; i++) { fitems[i].style.visibility="visible"; if (csslevel==1) { fitems[i].style.display="inline"; } else { fitems[i].style.display="table-row"; } } dostatesaveXP(itemID,0); } else { document.getElementById('c'+itemID).style.display="none"; document.getElementById('c'+itemID).style.visibility="hidden"; document.getElementById('e'+itemID).style.display="inline"; document.getElementById('e'+itemID).style.visibility="visible"; document.getElementById('f'+itemID+'z').style.visibility="hidden"; document.getElementById('f'+itemID+'z').style.display="none"; // build element collection using w3c dom level2 methods while (document.getElementById('f'+itemID+'z'+i)!=null) { fitems[i]= document.getElementById('f'+itemID+'z'+i); i++; } for (i = 0; i < fitems.length; i++) { fitems[i].style.visibility="hidden"; fitems[i].style.display="none"; } dostatesaveXP(itemID,1); } } //--> </script> |
#146
|
||||
|
||||
okay I applied the hack and i dont see anything at all,
can someone hel pme out, i downloaded the files on the top page, after going through 10 pages, I am totally confused as to how to get this hack working, can anybody help me out www.mindsights.com if you need to take a look |
#147
|
|||
|
|||
hyperdave, firstly you have added the 2 new templates? and made the other template alterations.
|
#148
|
||||
|
||||
yep I sure have, :bunny:
|
#149
|
|||
|
|||
Quote:
does this line exisit? PHP Code:
|
#150
|
||||
|
||||
im like half sleep
where should that coding exist |
#151
|
||||
|
||||
Here are some more icons to replace the expand / collapse.gif images included with the original archive. I drafted them up for my site and was going to use them, but have switched back to some plain white ones for the time being.
Just my small contribution as a way of thanking dabean for this excellent hack. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|