Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-16-2004, 06:09 PM
EricR EricR is offline
 
Join Date: Feb 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Request: Depth "N" display on Forum Home

See this bug tracker link for more info:
http://www.vbulletin.com/forum/bugs....iew&bugid=1157

Since it's listed as a "Won't Fix" bug I'm requesting this as a modification. I'd like to be able to display 3 levels on my Forum Home but am currently limited to 2. My simplest request would be for the third level templates, but a depth "N" mod might prove useful to others.

If the third-level template already exists please point me in the right direction. I did search vb.org but didn't find this.
Reply With Quote
  #2  
Old 02-18-2004, 06:16 PM
EricR EricR is offline
 
Join Date: Feb 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Friendly bump to the top.

Should I be requesting this on VBTemplates instead since it's a template mod? All I'm personally after is the ability to display 3 levels. "N" levels is probably a lot more work so if someone could show me how to display 3 levels I'd really appreciate it. See the bug link above, I know what files to copy and rename/edit but don't know what changes I should make.
Reply With Quote
  #3  
Old 02-18-2004, 07:51 PM
raxafarian raxafarian is offline
 
Join Date: Apr 2003
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EricR
Friendly bump to the top.

Should I be requesting this on VBTemplates instead since it's a template mod? All I'm personally after is the ability to display 3 levels. "N" levels is probably a lot more work so if someone could show me how to display 3 levels I'd really appreciate it. See the bug link above, I know what files to copy and rename/edit but don't know what changes I should make.
just make 2 new templates

forumhome_forumbit_level3_nopost
forumhome_forumbit_level3_post

then copy and paste from the corresponding ....._level2_.. templates
ie. copy what is in forumhome_forumbit_level2_nopost and paste it into forumhome_forumbit_level3_nopost.

Do the same for the forumhome_forumbit_level3_post


you could make a fourth, fifth, etc.
Reply With Quote
  #4  
Old 02-26-2004, 03:18 AM
EricR EricR is offline
 
Join Date: Feb 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I tried that but unfortunately the collapse feature is missing.

Catagory (L1) <-- I can collapse this
- Forum (L2)
- SubCatagory (L2) <-- I can't collapse this
-- Subforum (L3) <-- These show up now thanks to your help

I would like to be able to collapse any catagory, even sub-catagories. I tried copying both level1 and level2 for use as level3 but neither provide the collapse functionality. Is the collapse function provided elsewhere? Is there something else that I need to modify?

Thank you for your help, I'm almost there
Reply With Quote
  #5  
Old 05-18-2004, 07:13 AM
aral aral is offline
 
Join Date: May 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to do the same. Thanks for the tips on creating the new templates but I also need the new forums to be collapsible (this would probably be a common request for 3-level displays due to the clutter.)

I am going to look into the code and see if I can't come up with something. I'll keep you posted.
Reply With Quote
  #6  
Old 05-18-2004, 11:12 AM
aral aral is offline
 
Join Date: May 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I have something that works. A little fiddling revealed that its actually quite simple (The more I see the code for VBulletin, the more I like it!)

In the interests that it will be helpful for someone else (at least as a starting point), I've attached a screenshot explaining the various levels and a zip containing the following templates:

forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
forumhome_forumbit_level2_post
forumhome_forumbit_level3_post

I haven't created a forumhome_forumbit_level3_nopost (a category nested under a category) since I don't see myself using it (it would be too confusing for users.) It should be easy enough to hack together if you need it using the information here.

Please note that I've commented out the Last Post columns in these templates -- please comment them back in if you need them.

A note on collapsing subforums: When I first tried this, collapsing a first-level category did not collapse the posts in its child category (although it did collapse the category row itself.) I hacked the templates to allow this (by replacing tbody with tr at the end of forumhome_forumbit_level2_nopost.) [Update] This doesn't work when there's more than one forum on the third level. I believe what is needed is a code hack to the toggle_collapse() javascript function in vbulletin_global.js (along with the parent/child ids.) I am not attempting this at the moment since I don't know the codebase well enough.

Sorry to release this here but I'm smack in the middle of a project. I'd love to release it as a real hack when I get a little time to read up on how to package and release VBulletin hacks properly.

Enjoy!

Note: For some reason, I don't seem to be able to upload a .gif or .png attachment (the screenshot). I keep getting a "Cannot find server" error. The Zip upload works.

Update the screenshot is available here (levels_explained.png; 21k).
Attached Files
File Type: zip Forumhome_subcategory_hack_v01.zip (3.6 KB, 39 views)
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 05:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03833 seconds
  • Memory Usage 2,232KB
  • Queries Executed 14 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete