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)

JMEWLS` 07-11-2013 01:08 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2433122)
Not a feature of this mod, not sure how you would do it.

No worries, still a fantastic mod none the less buddy.

NukedLT 03-16-2014 01:32 PM

Would it be at all possible to show stickied subforum threads as normal threads in the master when stickies are disabled in the mod?

BirdOPrey5 03-16-2014 04:16 PM

Quote:

Originally Posted by NukedLT (Post 2487647)
Would it be at all possible to show stickied subforum threads as normal threads in the master when stickies are disabled in the mod?

Almost everything is possible, but even after a fresh look at the code it just isn't going to happen with this mod as it is written. The query that would need to be editing to alter that isn't one this mod even touches right now and I'm not 100% it could be done without manual file editing.

Jennifer2010 04-08-2014 09:40 PM

I've been using this for a long time with great success and appreciate it a lot - THANK YOU!

I have one problem, though. I edited our threadbit template to customize the meta display and when I do so, it removes the "Native forum" display which displays the forum the thread was posted in, in the thread meta under the title.

Is there a way I can manually insert the code into my threadbit to fix this?

Thank you!

UPDATE: I spoke too soon. Just read the instructions file which it includes. Thanks so much! You're the best!

microscopes 07-26-2014 11:28 PM

Has anyone figured out the database error?

With and without the forumdisplay.php edit I get the error.

My forumdisplay.php

Code:

        ($hook = vBulletinHook::fetch_hook('forumdisplay_query_threadscount')) ? eval($hook) : false;

        # Include visible IN (0,1,2) in order to hit upon the 4 column index
        $threadscount = $db->query_first_slave("
        SELECT COUNT(*) AS threads
        $hook_query_fields
        FROM " . TABLE_PREFIX . "thread AS thread
        $tachyjoin
        $hook_query_joins
        WHERE thread.forumid = $foruminfo[forumid]
                AND sticky = 0
                $prefix_filter
                $visiblethreads
                $globalignore
                $limitothers
                $datecut
                $hook_query_where
        ");
        $totalthreads = $threadscount['threads'];

        $threadscount = $db->query_first_slave("
        SELECT COUNT(*) AS newthread
        FROM " . TABLE_PREFIX . "thread AS thread
        $tachyjoin
        $hook_query_joins
        WHERE thread.forumid = $foruminfo[forumid]
                AND thread.lastpost > $lastread
                AND open <> 10
                AND sticky = 0
                $prefix_filter
                $visiblethreads
                $globalignore
                $limitothers
                $datecut
                $hook_query_where
        ");
        $newthreads = $threadscount['newthread'];

        // set defaults
        sanitize_pageresults($totalthreads, $pagenumber, $perpage, 200, $vbulletin->options['maxthreads']);

        // get number of sticky threads for the first page
        // on the first page there will be the sticky threads PLUS the $perpage other normal threads
        // not quite a bug, but a deliberate feature!
        if ($pagenumber == 1 OR $vbulletin->options['showstickies'])
        {
                $stickies = $db->query_read_slave("
                        SELECT thread.threadid, lastpost, open
                        FROM " . TABLE_PREFIX . "thread AS thread
                        WHERE forumid = $foruminfo[forumid]
                                AND sticky = 1
                                $prefix_filter
                                $visiblethreads
                                $limitothers
                                $globalignore
                ");
                while ($thissticky = $db->fetch_array($stickies))
                {
                        $stickycount++;
                        if ($thissticky['lastpost'] >= $lastread AND $thissticky['open'] <> 10)
                        {
                                $newthreads++;
                        }
                        $stickyids .= ",$thissticky[threadid]";
                }
                $db->free_result($stickies);
                unset($thissticky, $stickies);


BirdOPrey5 07-27-2014 10:58 AM

What version of vBulletin?

microscopes 07-27-2014 02:04 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2508490)
What version of vBulletin?

4.2.2

I sent you a PM with more info including a snippet of my forumdisplay.php -- maybe you can see the issue?

Code:

BuffaloRange.com is my forum

microscopes 07-28-2014 12:56 AM

It's not any of the mods either I don't think

alfieb 07-29-2014 09:44 AM

Love the concept, but it didn't work for me.

It would pull the threads from the slave forum to the master forum, and they could be seen on both, but it wouldn't show any native threads from the master forum. Hopefully there's a solution, but in the meantime I have to disable the mod.

ForceHSS 07-29-2014 05:08 PM

Quote:

Originally Posted by microscopes (Post 2508527)
4.2.2

I sent you a PM with more info, including a snippet of my forumdisplay.php -- maybe you can see the issue?

Code:

BuffaloRange.com is my forum

On line 790 of forumdisplay.php delete line $hook_query_where
is this what you did?


All times are GMT. The time now is 06:42 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.01498 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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