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
  #162  
Old 04-29-2002, 04:45 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by GamerForums
Now I am confused. I didn't do any of the admin/index.php file changes, but the hack works fine? Check www.gamerforums.com/board for an example. If the admin files aren't required what do they do? Thanks in advance.
This hack doesn't require any changes to be made to admin/index.php and never has. The only admincp file that this hack requires changes to is admin/forum.php.
Reply With Quote
  #163  
Old 04-29-2002, 05:26 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NOW I FEEL STUPID!!!

...I really should learn to read. Thanks mate.
Installed sucessfully on 2.2.5.
Reply With Quote
  #164  
Old 05-11-2002, 06:31 PM
Khepri Khepri is offline
 
Join Date: May 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I LOVE this mod!!!

I have multiple levels on my forums and have modified my templates quite a bit so they will display like I want them to. The site is http://www.aephirsden.com/forum and when you see it you will see what happens... On my levels where there are the third level I show if you close the first level above it then it only closes what would have been forums under it, so when I have all the first level categories closed, the second level categories still show. I want to close everything under each first level...

I'm gonna be playing with my code to try to fix it but I don't know exactly how you have it working yet

On a final note, I use Linux 2.2.19 and KDE 2.1.2 and my Konquerer will view the page, and when you close a section it covers the sub parts up with what appears to be the background color, but doesn't move them up. Also, if I collapse 2+ of them, then try to uncollapse any of them then it crashes the browser... Kind of a pain during the setup... But it's in now The attached image is the screenshot of my forum currently when viewed under Konquerer.

Khepri
Reply With Quote
  #165  
Old 05-11-2002, 10:14 PM
Webmasta XT's Avatar
Webmasta XT Webmasta XT is offline
 
Join Date: Mar 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack, works great!!
Reply With Quote
  #166  
Old 05-12-2002, 03:23 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Khepri
I LOVE this mod!!!

I have multiple levels on my forums and have modified my templates quite a bit so they will display like I want them to. The site is http://www.aephirsden.com/forum and when you see it you will see what happens... On my levels where there are the third level I show if you close the first level above it then it only closes what would have been forums under it, so when I have all the first level categories closed, the second level categories still show. I want to close everything under each first level...

I'm gonna be playing with my code to try to fix it but I don't know exactly how you have it working yet

On a final note, I use Linux 2.2.19 and KDE 2.1.2 and my Konquerer will view the page, and when you close a section it covers the sub parts up with what appears to be the background color, but doesn't move them up. Also, if I collapse 2+ of them, then try to uncollapse any of them then it crashes the browser... Kind of a pain during the setup... But it's in now The attached image is the screenshot of my forum currently when viewed under Konquerer.

Khepri
The collapse problem is due to the html your templates.

Some of the problems you mention are directly related to kde 2.1.x, whilst others are a result of your html.

Finnally there is a problem (not exhibited on your site) with konq its self and the w3c defined function "hasfeature", which isn't fully supported by konq and pretty well unwork aroundable whilst most konquerer users spoof other browsers in the user agent string.
Reply With Quote
  #167  
Old 05-12-2002, 03:45 AM
Khepri Khepri is offline
 
Join Date: May 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by dabean


The collapse problem is due to the html your templates.

Any suggestions on how to modify either the templates or other code to make it collapse second and third levels when I perform the action from the first level.

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

Quote:
Originally posted by Khepri


Any suggestions on how to modify either the templates or other code to make it collapse second and third levels when I perform the action from the first level.

Khepri
Firstly, the *no_post templates should be near uniform. That is "forumhome_forumbit_level2_nopost" should contain.
PHP Code:
<tr id="f$forum[parentid]z$z$fhomeexpandstyle class="cat">
<
td colspan="6">
$expandcontract
<a href="forumdisplay.php?s=$session[s 
inplace of
PHP Code:
<tr id="cat">
<
td colspan="6">
<
a href="forumdisplay.php?s=$session[s 
That "forumhome_forumbit_level3_post" contains.
PHP Code:
<tr id="f$forum[parentid]z$z$fhomeexpandstyle align="center"
in place of
PHP Code:
<tr align="center"
Reply With Quote
  #169  
Old 05-12-2002, 11:36 PM
Khepri Khepri is offline
 
Join Date: May 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, did that... same results as what I had before. I'll leave the mod on that portion for now too. Check it out now at http://www.aephirsden.com/forum and go down to the main category of professions, you'll see sub cats, and forums only under the sub cats. If you collapse the main category professions, it hides the bars with the sub cats but leaves all the forums under the sub cats so you really can't tell which sub cat each of the forums is supposed to be under.

I had done this before which is what prompted me to look into this deeper initially.

Khepri
Reply With Quote
  #170  
Old 05-13-2002, 12:16 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Khepri
Ok, did that... same results as what I had before.
The first thing that hit me, is your still using the older javascript.
Reply With Quote
  #171  
Old 05-13-2002, 04:15 AM
Khepri Khepri is offline
 
Join Date: May 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, got the new jscript info in there. But it still does the same thing. Sorry about earlier, I thought I had the new script in there but when I took out the old it copied it, then pasted it in again. ::mumbles::

Khepri
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:57 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.04880 seconds
  • Memory Usage 2,330KB
  • 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
  • (4)bbcode_php
  • (5)bbcode_quote
  • (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
  • (2)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