![]() |
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. |
Nice idea amy :)
I might use it in the next forum I create ;) Satan |
wow, this is hella cool.
|
amy i love you just what i need
|
Sub forums no longer show when clicking a category title or in the master forum..
Any work around for this ? |
Yes. In forumdisplay.php find
Code:
($hook = vBulletinHook::fetch_hook('forumdisplay_start')) ? eval($hook) : false; Code:
$page=1; |
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 |
Quote:
If I click http://www.eaforums.com/forums/forumdisplay.php?f=165 for example, it doesn't show anything. |
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
|
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
|
I played around a bit with this idea as I really like it, and I think I found a more versatile solution:
I added a new setting "Max Forums per Page" in Forums Home Page Options. If there are more Forums, it will break up into several Pages (as many as needed). However, if a Top-Level Forum has more Subforums that need to be displayed then the defined Limit, it will still be displayed on one Page, as I think it would be confusing (and complicated) to show this on several Pages. Works without File edits, but does not display navigation Links yet. |
That's a bit different than what I need. I needed to move specific, lower used forums to the back burner.
Now that file edits are no longer necessary to add settings to forums, I may make this something you can set on a per forum basis. Of course, I still need to find a way to hook into the forumlist routine to make it skip the appropriate forums. Amy |
Okay this is something I can use since my forum index is pretty big because I have classifieds set up with forums so I am going to see about making a 2nd page just for classifieds.
First I do want to ask and make sure that this is good with Gold before I start poking around, if I jam myself up I am screwed. |
Hey Amykhar,
Any way of updating this to 3.5.0 as a plugin manager??? |
OK, I caught up with Amy to confirm this was good with 3.5 Gold (it is) and got it to work just like I wanted to :D
I have all my classifieds on their own page, only change I made was the link. Instead of doing the page 1 and Page 2 bit I simply added the page 2 URL in my navbar titled 'FREE Classifieds'. Now some changes I could go for if anyone could help me. 1. Change the title of page 2 - Right now it still reads Forums, obviously I would rather it say Classifieds Page (or something to that effect). 2. A selected image or banner below the navbar and above the forums. Think this could give the new page a more define look, guess that sounds right. Those would be nice but this is still great! Thank you much Amy! |
Just wanted to say a big thanks for this one, i'd been pondering for quite a while how I was gonna achieve a spilt forum as I have well over 400 categories to my forum and it's been confusing a lot of my users recently.
Now thanks to the help of this hack, i've done it and got it split into 6 different pages. :) So thanks a lot. :) |
any update on this as a plugin?
|
Quote:
|
He released his own mod, but it's different. Mine lets you specify which forums you want on which page. His allows you to specify how many forums per page, but not which ones.
|
I plan on using this as I have several hundred subforums and it is nearly 1mb per page load. I do have one question amy:
Quote:
|
Can we choose a different skin for the 2nd page?
|
Strike my previous question, however, how do I edit the syntax to have more then 2 pages? I tried to throw an elseif in there but I'm not very php literate yet.
|
Quote:
|
Strike that... I also tinkered until I figured it out. All is spiffy now
|
Quote:
I was away for 5 days otherwise I would of been able to help you out. |
I hate to be a pain but can I get a lil better instructions? i tried and it dont seem to be working for me.
|
bump?
|
ok I got it to work but I have 3 problems/Questions
1. will this make it harded for spiders to navagate 2. can I add a third page? ifso how whats the codes. 3 when im on page 2 it still shows a link for page 2 instead of changing to page 1 any help would be apreciated |
I have made significant changes to this gang. It is now a product. You can set which page to put a forum on in the admincp in the forum settings section. Forums default to page 1.
I believe, but have not tested, that this works for multiple pages - not just 2. No tinkering required. Amy |
Thanks a lot amykhar! :D
|
I have a slight problem;
I can't seem to edit the settings of any forums anymore. Here is the error message I get: Code:
Fatal error: Field page is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485 Using the product, not the old hack. |
/me notes the update as a reminder to self, but doesn't install just yet as the previous version is working just dandy at the moment and the hassle needed to swap it over doesn't warrent the change until the next vBulletin update.
Thanks Amy, it seems that I use every hack you ever make. The only one that I haven't got from you that I really want, is the smiley categories hack, but i'll get round to signing up for your site to get hold of that one day. |
I am no longer distributing that hack to the general public. I maintain the code there only for those who already registered. Sorry.
Southpaw, thanks for testing the product. I forgot to add one of the existing plugins in. I'll fix it and reupload asap. My site is down right this second though. |
Quote:
|
I have to :( Our server is under a DOS attack and it seems to be taking the host a while to get back up. (Not my site - just the server it's on)
|
ok. I updated the product again to include the missing plugin. I had never intended to re-release this and had put the code for one plugin in with another plugin. So, it got left out of the release.
Sorry for the inconvenience. |
Tested and working on 3.5.3 :)
Thanks again Amy! |
My pleasure.
|
Quick Pro Quo
I uploaded the file onto my server, but no options are appearing under Forum Manager in MyAdmin.php. Can you load up a screenshot of what the option looks like under ur admin? Thanks, |
It's just a forum setting. Here is a screenshot from mine, but I have other mods installed too.
|
All times are GMT. The time now is 06:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|