Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by dabean dabean is offline
Developer Last Online: Dec 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-08-2002 Last Update: Never Installs: 122
 
No support by the author.

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.

  • Browsers supported
  • Netscape6+/Mozilla0.6+
  • MS IE5+
  • Konqueror
  • Opera 7 support is included
  • Browsers unsupported
  • MS IE4 or earlier
  • Netscape 4 or earlier
  • Opera (version 6 and earlier)

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 01-12-2002, 11:27 PM
Master Ares's Avatar
Master Ares Master Ares is offline
 
Join Date: Jan 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok maybe I'm on crack here but I've followed everything to the letter within the 3b release at the start of those thread, and I get 1 of 2 errors depending on what I do with the jscript file.

1) if I use the one in the readme, when y ou hit + or - nothing happens. I see it zoom by with its call to the updatethread file but notta. This occurs on two different machine though both use IE6+ with XP.

2) if I use the one that adds the

document.getElementById('f'+itemID+'z').style.visi bility="visible";

line (in the template_options file included with the archive) then I get an error line 72 when I contract (object required) and at line 98 when I expand (object required). For the life of me I can't see the error so maybe you've run into it and I have yet to see this question asked in this thread which it may have but I have missed it

Anyways thanks for any help.

Site = http://forums.endlessfantasy.com
Reply With Quote
  #83  
Old 01-12-2002, 11:30 PM
net ba net ba is offline
 
Join Date: Jan 2002
Location: San Francisco, CA USA
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm
Reply With Quote
  #84  
Old 01-12-2002, 11:40 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Master Ares, for you forum setup you need to use the version in the read me and upon visiting your site it was obvious to me that your forumhome_level2_post template had not been altered to include... id="f$forum[parentid]z$z" $fhomeexpandstyle (hint <tr align="center"> where to put those bits is discribed in the readme. Additionally you need make that modification to the forumhome_level2_nopost template because you have level2 forums that don't contain posts.
Reply With Quote
  #85  
Old 01-12-2002, 11:45 PM
Master Ares's Avatar
Master Ares Master Ares is offline
 
Join Date: Jan 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hah I knew I missed something:-) Thanks muchly

Works perfectly now:-) Thanks again. I put the changes in the forumbit not forumhome section:-P
Reply With Quote
  #86  
Old 01-12-2002, 11:52 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Master Ares, easy enough mistake to make.
Reply With Quote
  #87  
Old 01-13-2002, 01:09 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool hack! Works like a charm! Easy to make mistakes with this one - follow the instructions CAREFULLY!
Reply With Quote
  #88  
Old 01-13-2002, 01:23 PM
incursio incursio is offline
 
Join Date: Nov 2001
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems to work here, but unless I've botched the install, I may have found a bug.

Lets say I go to the forums home page, and close all the sections but 2 of them. That seems to have worked fine - it remembers it, even when I revisit the site. However, if I open up a new section, then visit one of the forums inside of that section, then reload the forums home page, only my original sections are left open (i..e the 3rd one is still closed). Any ideas?
Reply With Quote
  #89  
Old 01-13-2002, 01:29 PM
incursio incursio is offline
 
Join Date: Nov 2001
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another update. I've closed all the sections, then reloaded, and they are still closed. I open one, reload, they are all still closed.
Reply With Quote
  #90  
Old 01-13-2002, 03:15 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

incursio, does it remeber setting for any section you open after collapsing it?

as a test try http://<yourforums>/updateindex.php?fid=<categoryid>&val=0 where categoryid is a forum you have collapsed. That should expand the the forum.
Reply With Quote
  #91  
Old 01-13-2002, 04:14 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just can say:

Guys... THIS HACK WORKS GREAT!!!

Thank you so much dabean for coding it and for your GREAT support!!

Greetings

StarBuG
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:49 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04717 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete