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 |
#332
|
|||
|
|||
Quote:
The level3 template doesn't appear? The plus minus symbols don't appear but the level3 template does? The level4 template doesn't appear? |
#333
|
|||
|
|||
i created both level3_no post and level4_post templates and they appear under the custom templates.
These 2 templates were not there before, i only had level 1 and level 2, so i added them. When i go back into the forums and click through each category, i see the templates, but no (+/-) symbols at the third level. Example... Canada (Category 1) - level 1 no post - i can see this page. | Computers (Category 2) - level 2 no post - i can see this page. | Hardware (Category 3) - level 3 no post - i can see this page but no (+/-) next to it. | Part 1, Part2,...(Postable forums) - level 4 post - i can see this page but it does not collapse |
#334
|
|||
|
|||
Define "click through each category", as this hack only applies to the main index page. It does not apply to any of the sub views inside forumdisplay.
|
#335
|
|||
|
|||
Well, when the main page comes up you will see Canada as a main category then Computers as a sub-category under it.
When i click on Computers, there is another sub-category called Hardware under that. Hardware contains a bunch of parts that i would like to collapse. Is this possible with your hack? |
#336
|
|||
|
|||
Quote:
This hack was designed for cases where lots of forums are required to be display on the home page. Most of the installations using forums 3 or more levels deep with this hack alter the "depth of forums" setting to show all the required forums on the index page. vBulletin Options > Forums Home Page Options > Depth of Forums |
#337
|
|||
|
|||
aahh...ok...the URL does change to forumdisplay.php
I changed the forum depth to 3 as you suggested. Now the (+/-) appears... Ok....well, thanks for all your help i really appreciate it. Sorry to have wasted your time. |
#338
|
|||
|
|||
Hey Dabean,
How hard would it be to change this chack to work with Forum Display? |
#339
|
|||
|
|||
Just copy paste the existing code into the correct places inside forumdisplay.php. No further template modifications are required.
Find PHP Code:
PHP Code:
Find PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find PHP Code:
Change it to: PHP Code:
Alter: PHP Code:
PHP Code:
|
#340
|
|||
|
|||
ok...made the changes to forumdisplay.php as you said and the (+/-) didn't show up.
so, i edited the forumdisplay_forumbit_level1_nopost, by adding the "$expandcontract" and the (+/-) shows up but it doesn't work. so, i edited the forumdisplay_forumbit_level2_post, by changing to "<tr id="f$forum[parentid]z$z" $fhomeexpandstyle align="center">" When i put my mouse over the (+/-), it says there is an error on the page. |
#341
|
|||
|
|||
We have a winner!
I got it working... i forgot to edit the forumdisplay template I added the "$expandcontractscript" to the forumdisplay template and it is working perfect now. Thanks for all your help.... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|