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)

FalkinPro 01-29-2006 09:07 PM

Thank you, got it up :banana:

Thanks Amy. Looks great!

-FalkinPro

EDIT: Got the numbers setup. And no longer does a 2 appear on the home page. But, but when I go to ..../index.php&page=2 , I get

"The requested URL /index.php&page=2 was not found on this server."

HMmmm.....

amykhar 01-29-2006 09:58 PM

It comes up for me. It's not an & it's a ?

http://forums.falkininvesting.com/index.php?page=2

FalkinPro 01-30-2006 12:11 AM

Figured it was something simple!

Amy, I sincerely thank you so much for you help, support, and most importantly great add ons. You rock :)

Best Regards,

-Falkinpro

djjeffa 02-24-2006 08:21 PM

Quote:

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

gee now you do it after i went nuts figering it out lol
how do i undo the original hack so i could inststall this?
and will this hurt my results on the search engins? In other words will spyders have trouble seeing the new added pages?

amykhar 02-24-2006 09:46 PM

I would 'uninstall' simply by not doing the code changes the next time you upgrade. Import the product and allow overwrite. Set up each forum in the admincp and create your links to your other pages.

As far as SEO goes, you won't lose any on forumhome or the forumdisplay pages for the forums. It may take some time to build up pagerank on the new pages though.

texasasl 03-01-2006 07:54 AM

I will be appreciated if somebody can tell me how I can "install" in 3.5.3 this nice job. Thanks

djjeffa 03-03-2006 10:46 AM

A few questions
1. did anyone do more than 2 pages sucsesfully?
2. could anybody else post a link to there site that has this hack?
3. Is there a way to show all the forums on the main page and then have sepret pages to break them down as well?

amykhar 03-03-2006 11:48 AM

1. yes
2. mine, but I haven't got a link to page 2 on the navbar right this sec cause I'm working on a style. I'm probably going to split into more than 2 pages when I get more time to organize things.
3. Probably, but not the way the hack is now written and I don't have time to investigate that at the moment.

djjeffa 03-03-2006 09:26 PM

Quote:

Originally Posted by amykhar
1. yes
2. mine, but I haven't got a link to page 2 on the navbar right this sec cause I'm working on a style. I'm probably going to split into more than 2 pages when I get more time to organize things.
3. Probably, but not the way the hack is now written and I don't have time to investigate that at the moment.

thanks for the info and keep me posted lol
I did you hack mannaul from the old one you had but lost it when i upgreaded.

Lost_Prophet 03-04-2006 01:32 PM

Fantastic! Wonderful!
This mod is 100% what I wanted for the site I've just started developing!! :)

texasasl 03-14-2006 08:37 PM

ok installed great job amykhar thanks

wiredinoc 03-15-2006 08:07 PM

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.

amykhar 03-15-2006 08:09 PM

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.

wiredinoc 03-15-2006 08:45 PM

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

amykhar 03-16-2006 01:06 AM

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

Talisman 03-16-2006 01:29 AM

I've just found this hack and I'm so happy you created and released this. Thank you so much, Amy!

wiredinoc 03-16-2006 06:42 AM

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.

Lost_Prophet 03-16-2006 07:10 AM

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?

amykhar 03-16-2006 02:04 PM

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.

amykhar 03-16-2006 02:05 PM

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 ;)

Lost_Prophet 03-16-2006 02:19 PM

Quote:

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

Woo! :banana:
That works a treat, thank you :)

Lost_Prophet 03-16-2006 05:16 PM

Ah ... not quite as well as I'd hoped :(
The theme changes for me (as an admin), but then it switches that style permenantly.
And for the other users - who aren't allowed to change styles - it doesn't work at all :(

amykhar 03-16-2006 05:18 PM

Prophet, I did a stupid little mod that set the style on a per user basis. I'll bet you can modify that to set the style on a per page basis. I don't have time to do it for you, but I'm thinking it will work with a bit of tweaking.

Lost_Prophet 03-16-2006 06:18 PM

Found it :)
Thanks, I'll have a go when I've got some time and see if I can make it work

texasasl 03-19-2006 07:08 PM

Dear Amykhar as I posted above I already have isntalled succesfully that nice hack. I created already 18 pages with no problem at all. Everything is going perfect with the hack.
But I was wondering whether or not this could be much more precious.
That means how is possible each page (i.e ...../your site/forum.php?page=12 and ...../your site/forum.php?page=11---10---9, e.t.c) to be different. I mean how is possible each page to have each own background and each own appearance. I will be really appreciated if there is some good idea.

Lost_Prophet 03-19-2006 07:52 PM

texasasl, see Amy's comment above - this is also what I am after.

The modification in question can be found here but I haven't managed to modify it in a way that works - then again I'm not particularly well versed in the way vBulletin works

PJSkiboy 03-20-2006 09:38 AM

I really hate to ask this, but in Amy's main post it simply says to add the page links into your navbar. I understand how to add a link to the navbar and all, but I am confused how you add a link to it to bounce back from page 2 to page 1.

Easy enough to use a page link from forumhome, but then when on page 2, won't it simply be the same page link going to page 2?

I'm just curious if someone could show me the code for a simple 2 page mod of this, if it's not asking too much.

amykhar 03-20-2006 11:46 AM

The links are in the format:

http://www.yoursite.com/forum/index.php?page=1

http://www.yoursite.com/forum/index.php?page=2

http://www.yoursite.com/forum/index.php?page=3

etc. you just put the links wherever you want them.

yinyang 03-26-2006 12:00 AM

amykhar, i know you're busy but i have a small request... but may not be simple, i don't know.

this mod totally works, but is it possible to designate which page the forum goes into on the forum manager page itself? this would be so much easier and faster then going into each forum.

possibly, put it next to the right of the "Display Order" entry area?

in other words, the Forum Manager currently looks like:

https://vborg.vbsupport.ru/external/2006/03/7.gif

is it possible to change it to:

https://vborg.vbsupport.ru/external/2006/03/8.gif

i plan on using this a lot and it would totally help!!

Lost_Prophet 03-26-2006 10:29 AM

^That would be an awesome addition, I have about 160 forums to moderate and that would increase ease of use :)

amykhar 03-27-2006 11:56 AM

I don't know if I will have time to get to that any time soon, but I agree it would be helpful.

unenergizer 03-27-2006 02:00 PM

Quote:

Originally Posted by amykhar
I don't know if I will have time to get to that any time soon, but I agree it would be helpful.

Well, im bored in school and I guess I can do it. Though, dont expect to make it a plugin. But we will see what happens. If I can do that, then I'll send amykhar the syntax, let her take a look at it, then decide what to do with it.

unenergizer

yinyang 03-27-2006 07:50 PM

Quote:

Originally Posted by UNEnergizer
Well, im bored in school and I guess I can do it. Though, dont expect to make it a plugin. But we will see what happens. If I can do that, then I'll send amykhar the syntax, let her take a look at it, then decide what to do with it.

unenergizer

that'd be great!

soulface 04-24-2006 06:38 AM

OK, when ever i enable page for any section am getting this...

Quote:

Page generated in 0.72093 seconds with 45 queries (2 queries for uncached templates) [Server Loads: 0.03 0.07 : 0.07]
Uncached templates: forumhome_forumbit_level1 (1)
Uncached templates: forumhome_forumbit_level2 (4)

amykhar 04-24-2006 11:54 AM

Quote:

Originally Posted by soulface
OK, when ever i enable page for any section am getting this...

Did you read the first post of the thread?

yinyang 04-24-2006 05:14 PM

Quote:

Originally Posted by UNEnergizer
Well, im bored in school and I guess I can do it. Though, dont expect to make it a plugin. But we will see what happens. If I can do that, then I'll send amykhar the syntax, let her take a look at it, then decide what to do with it.

unenergizer

how's this coming along?

mariannet 04-27-2006 07:14 PM

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.

Just downloaded and installed on VB 3.5.4.
Can't get my subs to show, only category on page 2.
Tried this fix, but gives Parse error?

amykhar 04-27-2006 07:35 PM

Quote:

Originally Posted by mariannet
Just downloaded and installed on VB 3.5.4.
Can't get my subs to show, only category on page 2.
Tried this fix, but gives Parse error?

That code was from before when this was a code mod. It's now a product and that doesn't apply.

You have to set EACH forum to the right page. It doesn't inherit from the categories at this time.

mariannet 04-27-2006 07:42 PM

Quote:

Originally Posted by amykhar
That code was from before when this was a code mod. It's now a product and that doesn't apply.

You have to set EACH forum to the right page. It doesn't inherit from the categories at this time.

Thank you very much, it did it ;)

TeaTree 05-19-2006 05:36 PM

Hey,

All installed but I can't find the URL To page 2-

Anyone able to help please ??

Many Thanks :D


All times are GMT. The time now is 11:41 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.01262 seconds
  • Memory Usage 1,836KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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