vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - All Topic - Master Forums - Shows threads from multiple forums in one forum (https://vborg.vbsupport.ru/showthread.php?t=245839)

BirdOPrey5 09-13-2011 11:04 AM

Quote:

Originally Posted by shuangddr (Post 2245086)
my god.
thank you,i am looking for this

Thanks. Please "Mark as Installed" if you are using this.

Quote:

Originally Posted by Sarab (Post 2245230)
I thought so but can't find where I went wrong =\

But somehow I tried today and it worked XD

Thank you for this great mod I wanted it for years now, really thank you =)

Great to hear. Please "Mark as Installed" in the top post. :up:

8thos 10-10-2011 06:18 PM

This is the most important modification on my site. I always make sure this mod is working first after upgrades.

vbresults 10-18-2011 11:40 AM

Hey BOP,

I was looking for a way to do this for my product site and found your mod. I was sort of confused by the code so I ended up writing my own plugins, but seeing as this mod came from 3.x, the code might just be a little out of date. Anyway, below is how I did it. It requires three plugins and does not need a post in the master forum; it also displays the post counts correctly etc.

hook: forumdisplay_start
PHP Code:

if (in_array($foruminfo['forumid'], $masterForums)) {
    
// *Tell* the forum it will contain threads! >=)
    
$foruminfo['cancontainthreads'] = true;


hook: forumdisplay_query_threadscount
PHP Code:


if (in_array($foruminfo['forumid'], $masterForums)) {
    
$childForums implode(', '$foruminfo['childlist']);

    
// Add an OR IN(children) condition and the default thread count query ones.
    
$hook_query_where .= "OR forumid IN($childForums)
        AND sticky = 0
        
$prefix_filter
        
$visiblethreads
        
$globalignore
        
$limitothers
        
$datecut";


hook: forumdisplay_query_threadid
PHP Code:

if (in_array($foruminfo['forumid'], $masterForums)) {
    
$childForums implode(', '$foruminfo['childlist']);

    
// Same deal for the thread id query.
    
$hook_query_where .= "OR forumid IN($childForums)
        AND sticky = 0
        
$prefix_filter
        
$visiblethreads
        
$globalignore
        
$limitothers
        
$datecut";


Here it is in action. Hope you found this useful!

BirdOPrey5 10-18-2011 03:08 PM

Very cool way of doing thins, Lancer. :up:

8thos 10-18-2011 04:07 PM

I'll pay for this on xenforo.

8thos 10-18-2011 04:09 PM

I don't see the all topics mod in that link @ Lancer.

vbresults 10-18-2011 05:32 PM

Quote:

Originally Posted by Octavius. (Post 2258637)
I'll pay for this on xenforo.

I've added it to my list. Whatever happened to getting that live topic mod? :p

Quote:

Originally Posted by Octavius. (Post 2258639)
I don't see the all topics mod in that link @ Lancer.

All topics mod?

BirdOPrey5 10-18-2011 05:46 PM

I apreciate Lancer's code and I understand your desire for an All Topic mod for XenForo Octavius, but please keep discussion of XenForo mods on XenForo's or Lancer's own forum thanks.

This thread is for discussion of this vBulletin modification.

shuangddr 11-05-2011 03:16 PM

I want to show threads also from user's subscribed forums,can you add this features?

BirdOPrey5 11-06-2011 10:04 AM

I would have to look into it- it would be a pretty significant change.


All times are GMT. The time now is 12:52 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.01656 seconds
  • Memory Usage 1,753KB
  • 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
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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