Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Split ForumHome Page into Multiple Pages Details »»
Split ForumHome Page into Multiple Pages
Version: 1.5, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 07-13-2005 Last Update: 01-26-2006 Installs: 115
 
No support by the author.

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.

Show Your Support

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

Comments
  #52  
Old 03-14-2006, 08:37 PM
texasasl's Avatar
texasasl texasasl is offline
 
Join Date: Jul 2005
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok installed great job amykhar thanks
Reply With Quote
  #53  
Old 03-15-2006, 08:07 PM
wiredinoc wiredinoc is offline
 
Join Date: Nov 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Amy! When I saw this hack I was very excited. I have a forum where I want to split out differing subjects into two pages (using the terminology from this hack). I also have general social forums that I would like to appear on both pages.

I installed this, and it GREAT! I quickly noticed however that this might not address my problem. On the forum config screen, I tried to put "1,2" for the page on the particular social forum that I need on both pages, and "1" and "2" respectivly on the seperate discussion categories. No worky, looks like you can only put one page number in there, the instructions above got my hopes up.

I've been searching desperately for a hack/code that can do what I'm looking for. I'm still a newbie to VB, but I was hoping to be able to use forumdisplay.php to do the trick through .../forumdisplay.php?f=1&f=2, etc. Unfortunately it seems like VB dosen't want people doing this. ergo the "multiple forums, one user database" thing.

Any ideas if this hack can be modded to accept multiple pages for forums to appear on? Else, any advice or pointers you can provide would be incredibly helpful.

Thank you soo much for doing this for our community.
Reply With Quote
  #54  
Old 03-15-2006, 08:09 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I never said you could put it on two pages But, if you really want to do it that way, you could change the php to check to see if the page is 9999 and if it is, include it on all pages.
Reply With Quote
  #55  
Old 03-15-2006, 08:45 PM
wiredinoc wiredinoc is offline
 
Join Date: Nov 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HOLY SMOKES! You're fast! THANKS! My apologies also, didn't mean to make it sound like your instructions were wrong, they make perfect sense. I was a little excited and anxious when I found this.

I've been searching for a way to do this for the past 3 months to no avail. Adding the capability to be able to display multiple pages in the ACP for a particular forum would create the first and only fix for this dilema. In my research I have found alot of folks have been trying to find a solution to this.

In the interim, would you be able to provide the php code that would search for "9999" to display on both pages? I'm a bonehead when it comes to this stuff. This would be greatly appreciated - I promise to send you some good juju over the wire

Thanks again!!!

MD
Reply With Quote
  #56  
Old 03-16-2006, 01:06 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the plugin code, try this:

Find:
Code:
if($forum['page'] != $page)
Replace it with:
Code:
if(($forum['page'] != $page) and ($forum['page'] != 9999))
Not promising - haven't tested it. Don't forget to set the forums you want on all pages to 9999
Reply With Quote
  #57  
Old 03-16-2006, 01:29 AM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just found this hack and I'm so happy you created and released this. Thank you so much, Amy!
Reply With Quote
  #58  
Old 03-16-2006, 06:42 AM
wiredinoc wiredinoc is offline
 
Join Date: Nov 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amy, you are absolutely an angel sent from heaven. Your generousity is simply amazing, and I thank you from the bottom of my heart. You can have my first born, or whatever it is that folks say around here

It worked witht the exception of the 9999. When you put that in the forum config, hit save, go back and it turned to 127. No big, just re-worked it to 99 instead.

Hack of the decade in my book. Consider adding the 9999 functionality, or multiple entries per forum to the next update. This will be HUGE! Many lost soles are drifting between .org and .com looking for this.

Thank you ma'am.
Reply With Quote
  #59  
Old 03-16-2006, 07:10 AM
Lost_Prophet Lost_Prophet is offline
 
Join Date: Feb 2006
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've successfully used this for an 11 page forum as you can see here: http://forums.hybrid-gamers.com

However something I've now only just realised doesn't work and I'm hoping that there's a way around it ...

Can you apply a forum theme to a page?
As you can see from the site I have 'game' pages. Each forum (and its associated CMS frontpage) has a customised theme (well, they will do - they're just copies of the original at the moment) but they won't display on the main page that shows the game's forums.

Any ideas?
Reply With Quote
  #60  
Old 03-16-2006, 02:04 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lost_Prophet, that would take some doing because the page you are looking at isn't a forumdisplay page, it's the forumhome page. I think the easiest solution would be to pass the them you want to use in the link to the page.

http://www.hybrid-gamers.com/forums/...e=6&styleid=22 for example.

Don't know if it'll work like you want, but it's worth a shot.
Reply With Quote
  #61  
Old 03-16-2006, 02:05 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wiredinoc
Amy, you are absolutely an angel sent from heaven. Your generousity is simply amazing, and I thank you from the bottom of my heart. You can have my first born, or whatever it is that folks say around here

It worked witht the exception of the 9999. When you put that in the forum config, hit save, go back and it turned to 127. No big, just re-worked it to 99 instead.

Hack of the decade in my book. Consider adding the 9999 functionality, or multiple entries per forum to the next update. This will be HUGE! Many lost soles are drifting between .org and .com looking for this.

Thank you ma'am.
if you know how to use phpmyadmin, change the page field in the forum table to an int 10 instead of a tinyint 4. That should give you room to grow
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:20 PM.


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.05830 seconds
  • Memory Usage 2,313KB
  • 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
  • (2)bbcode_code
  • (1)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
  • (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