vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Split ForumHome Page into Multiple Pages (https://vborg.vbsupport.ru/showthread.php?t=92201)

amykhar 07-13-2005 10:00 PM

Split ForumHome Page into Multiple Pages
 
What it does is to allow you to take some forums off your Forum Home page and display them on a second instance of the forumhome page.

This is useful if you have a long list of forums and have some forums like archives that your users don't need to access very often.

This mod differs from Kirby's (Andreas's) in that his allows you to limit the NUMBER of forums shown per page. Mine allows you to select the specific forums to show.

I have not tested it, but I believe this will allow you to use any number of forumhome pages. You could do one per category if you show chose.

This is now a product. No code changes are required on your part. Please note that if you have microstats installed, it will yell about an uncached template. The template is not uncached. It doesn't exist. It is not creating extra queries. I am not sure how to suppress that error at this point.

My thanks to Kirby for pointing the way on how to make the functions_forumlist part of this mod a plugin instead of a code change.

Demo:

Page One
Page Two

Instructions:
1. Install the product.
2. Go to each forum and set which page to display it on. 1,2,3 etc. I have only tested 1 and 2.
3. Create links to the other instances of forumhome. Put these links where you would like them to be - in your navbar, side panel, header, tabs, whereever. Example links are the demo links posted above.
4. Contribute something to this site. Help somebody with a question or release some code of your own. Keep the giving circle going.

Chris M 07-14-2005 09:48 PM

Nice idea amy :)

I might use it in the next forum I create ;)

Satan

yinyang 07-14-2005 10:12 PM

wow, this is hella cool.

Benj 07-25-2005 09:21 AM

amy i love you just what i need

Shack Networks 07-27-2005 06:37 PM

Sub forums no longer show when clicking a category title or in the master forum..

Any work around for this ?

amykhar 07-27-2005 07:05 PM

Yes. In forumdisplay.php find

Code:

($hook = vBulletinHook::fetch_hook('forumdisplay_start')) ? eval($hook) : false;
Add after:
Code:

$page=1;
Yes, I know this part could be a plugin. When I figure out how to make the rest a plugin, it will be.

Shack Networks 07-27-2005 07:52 PM

LOL

I will try it out and see on my test board..

Other than that THIS SHOULD be part of vBull by default tbh

H

Andreas 07-30-2005 11:26 AM

Quote:

Originally Posted by amykhar
Yes. In forumdisplay.php find

Code:

($hook = vBulletinHook::fetch_hook('forumdisplay_start')) ? eval($hook) : false;
Add after:
Code:

$page=1;
Yes, I know this part could be a plugin. When I figure out how to make the rest a plugin, it will be.

I don't know if this is implemented in your Board, but if it is then it doesn't seem to work.
If I click http://www.eaforums.com/forums/forumdisplay.php?f=165 for example, it doesn't show anything.

amykhar 07-30-2005 01:47 PM

I should never post links to my board. I'm always tinkering and nobody ever looks except when I've broken something while tinkering :D

amykhar 07-30-2005 02:16 PM

OK. Finished tinkering. I made a change that reduces the files that have to be changed to 2. Next upgrade round when you install, you will only modify index.php and functions_forumlist.php


All times are GMT. The time now is 10:06 PM.

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.01124 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete