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
Subforums on Forumhome (no extra queries Version) Details »»
Subforums on Forumhome (no extra queries Version)
Version: 1.00, by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-16-2003 Last Update: Never Installs: 53
 
No support by the author.

Well, i think most of you know the hack already but with a great ammount of additional queries.

This hack shows on every forum on forumhome (also on categories if you want it so) all it's Subforums.
It works dynamically so whenever you add a forum, it will be added to the list

One disadvantage on having it queryless is, that if you have private subforums below nonprivate mainforums that these will be seen so (not accesable but seen)

Hope it fits in what some of you need

Show Your Support

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

Comments
  #52  
Old 05-12-2003, 04:57 PM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:51 PM FreDy said this in Post #49
It works fine!! Thanks

This is just I needed.

lifesourcerec: I had the same problem when I installed the hack... try to add the $forum[subforums] code in several forumhome_forumbit_levelx_(no)post

I add the code to
forumhome_forumbit_level1_post
forumhome_forumbit_level2_post
forumhome_forumbit_level2_nopost

And all works correctly. Try it.
Well, I only want it under "forum description".

"<smallfont color="{categoryfontcolor}">$forum[description] <br>$forum[subforums]</smallfont>

Doesn't show anything.
Reply With Quote
  #53  
Old 05-12-2003, 05:56 PM
FreDy FreDy is offline
 
Join Date: Apr 2003
Location: Spain
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...

I added the code to 'forumhome_forumbit_level2_nopost' template only (under forum description) and it doesn't work for me too.
Then I added the same code to several templates (under forum description too) and it works.

I think that 'forumhome_forumbit_level2_nopost' isn't the correct template to show the subforums.

Try adding the code to more forumhome_forumbit_levelx_(no)post templates.

Good luck
Reply With Quote
  #54  
Old 05-12-2003, 06:32 PM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 07:56 PM FreDy said this in Post #52
Hmm...

I added the code to 'forumhome_forumbit_level2_nopost' template only (under forum description) and it doesn't work for me too.
Then I added the same code to several templates (under forum description too) and it works.

I think that 'forumhome_forumbit_level2_nopost' isn't the correct template to show the subforums.

Try adding the code to more forumhome_forumbit_levelx_(no)post templates.

Good luck
Yeah, but where (to get it under the forum description)?
Reply With Quote
  #55  
Old 05-12-2003, 06:39 PM
FreDy FreDy is offline
 
Join Date: Apr 2003
Location: Spain
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find in these templates $forum[description] and add $forum[subforum] under it.
Reply With Quote
  #56  
Old 05-12-2003, 06:45 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as an description for the templatenames:

level1 is over level2 on forumhome
_nopost is for categorie forums
_post ist for normal forums

if you add it to _nopost and your forums on forumhome are no categories, you obviously won't see anything.

standart vb template system, i'd advise you to get familiar with it apart from my hack, because it's usefull to know everywhere
Reply With Quote
  #57  
Old 05-12-2003, 10:47 PM
WEForums WEForums is offline
 
Join Date: Apr 2003
Location: Jacksonville, Florida
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...this may seem simple but how to you get the "Subforums" to appear in bold? I tried changing it in the forum.php file and nothing happened. Then I totally removed the <br>Subforums part and Subforums STILL stayed. What's the part that needs to be changed?

Also note I don't want the subforum links in bold...
Reply With Quote
  #58  
Old 05-12-2003, 11:37 PM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 08:39 PM FreDy said this in Post #54
Find in these templates $forum[description] and add $forum[subforum] under it.

I know that, but I can only find $forum[description] in level2_nopost.
Reply With Quote
  #59  
Old 05-13-2003, 03:04 AM
WEForums WEForums is offline
 
Join Date: Apr 2003
Location: Jacksonville, Florida
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:37 AM lifesourcerec said this in Post #57
I know that, but I can only find $forum[description] in level2_nopost.
You're supposed to add $forum[subforum] to that template.

The way I believe it is:

forumhome_forumbit_level2_post for REGULAR forum

forumdisplay_forumbit_level2_post for SUB-FORUMS

Editing those files should result in what you're looking for.
Reply With Quote
  #60  
Old 05-13-2003, 03:08 AM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it ... now to getting the "subforums:" to be bold...
Reply With Quote
  #61  
Old 05-13-2003, 08:00 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@WE and life:
To get the subforums bold you have to edit the part in forum.php and after that, you have to edit a forum to update the cache like you have to do when you first install the hack.
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 10:05 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.07900 seconds
  • Memory Usage 2,308KB
  • Queries Executed 27 (?)
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_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
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete