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

Andreas 07-30-2005 02:36 PM

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.

amykhar 07-30-2005 02:39 PM

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

:Judge: 10-08-2005 09:19 PM

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.

Itworx4me 10-09-2005 02:13 AM

Hey Amykhar,

Any way of updating this to 3.5.0 as a plugin manager???

:Judge: 10-12-2005 02:48 PM

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!

Detomah 11-01-2005 05:41 PM

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. :)

yinyang 11-01-2005 06:03 PM

any update on this as a plugin?

yinyang 11-01-2005 06:03 PM

Quote:

Originally Posted by Andreas
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.

any update?

amykhar 11-01-2005 06:44 PM

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.

RetroDreams 11-19-2005 07:35 PM

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:

array(165,62,171,168,167,166,173,172,169,170,63,83 ,85,109,106,89);
if(in_array($forum['forumid'],$pagetwoforums)
Is there any rhyme or reason to how you add the forums in the array here? Should you simply do root, then subs, then next root and so on?

dan35 11-19-2005 08:49 PM

Can we choose a different skin for the 2nd page?

RetroDreams 11-19-2005 09:47 PM

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.

RetroDreams 11-20-2005 01:37 AM

Quote:

Originally Posted by Detomah
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. :)

Would you mind sharing this? This is exactly what I'm looking for.

RetroDreams 11-20-2005 04:55 AM

Strike that... I also tinkered until I figured it out. All is spiffy now

Detomah 11-20-2005 12:38 PM

Quote:

Originally Posted by RetroDreams
Strike that... I also tinkered until I figured it out. All is spiffy now

Yeah I was going to reply to you, but saw this first.

I was away for 5 days otherwise I would of been able to help you out.

djjeffa 11-20-2005 08:48 PM

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.

djjeffa 12-17-2005 12:28 AM

bump?

djjeffa 01-15-2006 09:35 PM

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

amykhar 01-26-2006 01:33 PM

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

Southpaw 01-26-2006 04:19 PM

Thanks a lot amykhar! :D

Southpaw 01-27-2006 04:44 AM

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
Does anybody else seem to have this problem?


Using the product, not the old hack.

Detomah 01-27-2006 05:40 AM

/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.

amykhar 01-27-2006 11:26 AM

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.

Southpaw 01-27-2006 04:29 PM

Quote:

Originally Posted by amykhar
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.

Thanks Amy! Take your time! :)

amykhar 01-27-2006 05:11 PM

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)

amykhar 01-27-2006 05:38 PM

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.

Southpaw 01-27-2006 05:42 PM

Tested and working on 3.5.3 :)

Thanks again Amy!

amykhar 01-27-2006 05:58 PM

My pleasure.

FalkinPro 01-29-2006 07:07 PM

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,

amykhar 01-29-2006 08:47 PM

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
  • Page Generation 0.01475 seconds
  • Memory Usage 1,820KB
  • 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
  • (5)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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