vBulletin Mods

The Official vBulletin Modifications Site

All Topic / Master Forums - View Threads from Multiple Forums in a Master Forums
by BirdOPrey5
28 Jun 2010 03:08

3 Attachment(s)
This a complete and total upgrade to version 2.0!

This mod is now an importable product, there are no more manual file edits.

In addition this mod will be able to auto edit your templates if you run the standard threadbit template, otherwise there are instructions in the zip file for manual template edits if needed.

What does this mod do? - Basically this is only the most awesomest mod ever for vBulletin. You can now view threads from other forums in "Master Forums" you designate.

For example on my site "Off Topic" is my "Master Forum" and virtually all other forums are assigned to the Master Forum offering user's the ability to browse 1 forum while seeing threads from many others.

New in version 2.0: You can now have multiple master forums.

See the screen shots for an example.

All instructions are included in the zip file.

As pointed out by phpdesk you must have at least 1 thread in your master forum for this to work.

I have tested this on VB 3.8.6 and am sure it will work on all 3.8 versions. I also strongly believe it will work as far back as VB 3.6 but can't test it myself.

This will not work for vBulletin 4.0, do not try to install it. The VB4 Version is here.

If you used the old version revert your forumdisplay.php file back to it's original condition before installing.

Please Mark as Installed if you use this. :)

You can mostly ignore all posts in this thread up to post #28. Old posts are not longer relevant to this new version. (Note: post #7 is still relevant if you have only 1 master forum.)

Upgrade to Version 2.1 (March 3, 2011)
Fixes a bug where the master forum wouldn't display as many pages as there were posts.

F0xy 28 Jun 2010 18:28

any chance of a screenshot or a demo?

BirdOPrey5 28 Jun 2010 21:04

I attached a couple of screen shots... This is up and running on my forum, www.juot.net, but you need to register to see my main off-topic which is my 'master' forum.

BirdOPrey5 29 Jun 2010 05:06

OK I made an optional update to this mod...
This will give users the option of turning this mod off if they would rather not see all the forums you've chosen in a 'master' forum. Install this ONLY if you want to give users a choice.

First in Admin CP go to the menu on the left and choose "Add New User Profile Field" under "User Profile Fields."

Choose "Single Selection Radio Box" from the drop down menu...

On the next screen set the following...

Title: All Topic
Description: Use this setting to enable or disable the 'All Topics' system. [or whatever description you want obviously]

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Field Required: Yes, at registration and...
Private/Field Searchable.../Display on... All "No"
Display Page: Options: Thread Viewing
Leave all other settings to default and hit "Save" to create the profile field.

Inform users the option now exists... The code below is designed so even if a user doesn't make a selection it is enabled by default so they only need to change it to 'opt out.'

Now we'll make the forumdisplay.php edits mentioned in the top post of this thread. Make those same edits except change all the IF statements to the one below:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace the number 1 of course with the forumid of your "master" forum... Replace 'field5' with the profile field name that was auto created when added the profile field above. Go to "User Profile Field Manager" to see the name the field was given.

And that's that, you now have an "All Topics" system that can be turned on or off by each member.

Kolektor 29 Jun 2010 13:01

you know I like this idea :)

Thanks for sharing.

BirdOPrey5 30 Jun 2010 04:26

1 Attachment(s)
Thanks... I've come up with another add-on / option for this mod...

If you want to edit a thread's title to reflect it is a thread outside of your 'master forum' do the following...

Edit the threadbit template.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

After this add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace the two instances of "1" with the forumid of your master forum. Replace 'field5' with the field name of your opt-in field discussed in post #4 in this thread. If you are not using the opt-in system then instead add the following code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You can obviously change "[X]" with any text or code you'd like... in fact I went a step further personally... I have a unique status icon for each of my forums so I used a mini version (18 pixels square) of each icon in place of the [X]. To do this I renamed each icon to be the forumid number of each forum. Then in place of [X] I used:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Of course you'd set the directory path to wherever you uploaded your images. Doing this will produce results like in my screen shot (but with your images of course.) I recommend 18x18 pixel graphics so they are the same size as standard text but any size icons will work.


BirdOPrey5 30 Jun 2010 04:38

1 Attachment(s)
One additional change I made that I find works well with a "Master Forum" is to edit your forumjump template to add a 'quick link' back to your 'master forum.' This is because users may be used to using the forum jump menu to quickly return to the forum they were previously browsing, but if they followed a link from your 'master forum' the forum jump menu will send them back to the listing for the forum the thread is 'really' in.

This link can be used to always return users to the 'master forum' in one click and doesn't take up any room on the page that wouldn't otherwise be wasted.

Edit your forumjump template...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace With:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

As always replace the number "1" with the forumid of your master forum. Edit "Jump to Master Forum" and the file path to suit your needs, I personally used "Jump to Off-Topic"

Screen Shot:

funmasti 30 Jun 2010 08:00

its great, but can u make a XML (product installation) file?

BirdOPrey5 30 Jun 2010 08:05

No, unfortunately I don't know how to put php file edits into an xml file, or if it's even possible due to the edits needed... but I give my permission for someone else to do so if they have the know-how.

ChuteBoxe 01 Jul 2010 03:28

Great mod. Does everything that it says it does, and is rather easy to install.

Only question is, is it possible to break it down to a per thread basis?

Maybe like, posts that are moved from the offtopic forum to the subforum, are the only ones that show in both forums?

BirdOPrey5 01 Jul 2010 13:53

well anything is possible but to do what you ask would mean adding an additional field to the thread table specifying if the thread had ever been moved, then the query to list threads would have to be updated to reflect on threads from the main forum or threads from other forums where "hasbeenmoved" = 1 or such... plus we'd need to edit the move command to set that flag- maybe other changes too- so yes it's possible but I doubt I could program such a mod let alone make it easy to install.

I am looking into making this an installable product, if I figure it out I will update this with an install file option but from what I've read so far performance will be best the way I have it now, as a direct file edit.

James T Brock 01 Jul 2010 21:23

Thanks for releasing this! Awesome job.

vat0r 03 Jul 2010 18:23

I'm trying to get this working with 3.8.5 and all I'm getting is a white screen on forumdisplay. I tried disabling all other mods and switching themes with no luck. I've done the edits several times to make sure I had no typos as well. I used only the required edits in the first post. As far as I can tell the relevant code to be replaced is the same as in your guide. Any ideas?

BirdOPrey5 03 Jul 2010 18:42

I upgraded to 3.8.5 last night and still working great after I redid the edits... sending you a PM that might help with the edits... If that still doesn't work please let me know what mods you are using and will see what I can do...

Also if you have a link to your forum I can see if anything looks like it may interfere.

vat0r 03 Jul 2010 22:37

Thanks to you I got it cleared up. Much appreciated.

All times are GMT. The time now is 04:42.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.