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)

m3rl1n 12-20-2012 04:38 PM

Joe how can i get sub forum category icons displaying on the master forum? Tried everything.

BirdOPrey5 12-20-2012 04:56 PM

Quote:

Originally Posted by Harpo (Post 2380656)
Hi again, Just installed it and followed the instructions. I made my master forum and set it up in my ACP. now when I try to enter the master forum I get the following Database error.

Database error in vBulletin 4.2.0:



My masterforum ID is 35. Any idea what went wrong?


Not sure if you're still having the issue but if so what version of VB are you using? You probably do NOT need to make the file edit. Restore the original forumdisplay.php file.

Quote:

Originally Posted by m3rl1n (Post 2391879)
Joe how can i get sub forum category icons displaying on the master forum? Tried everything.

I don't understand the question... What are category icons? Screenshot?

m3rl1n 12-20-2012 05:14 PM

1 Attachment(s)
Joe all i get is the default status icon see attached image even though in forum display on forums it shows my custom icons for each sub forum but in the master forum created doesn't appear to inherit these icons from forum display along with thread titles etc.

Great product but why goto all the work of creating forum and sub forum icons if master forum display won't show them :-( Great for it to show the sub forum or forum icon instead of thread status icon. Or even the option to choose to use thread status icons or use forum icons.

BirdOPrey5 12-20-2012 05:37 PM

1 Attachment(s)
Are those these icons? (on forumdisplay.php?)

If so how are you setting custom ones per forum?

In forum manager the only option I see for custom icons is for custom status icons.

m3rl1n 12-20-2012 05:40 PM

setting the icon under Style Options

Prefix for Forum Status Images (This prefix will be used on status image filenames for a forum, it can only contain A-Z, 0-9, -, _, . and /)

Just add the location of the icon on a forum by forum basis. They show on for display but master forums doesn't show them.

BirdOPrey5 12-20-2012 05:42 PM

Right but in that case it's the same icon used everywhere on the site, right? Unless you have a specific style set for each forum?

m3rl1n 12-20-2012 06:40 PM

yes, its same icon used for everything within that forum subforum

BirdOPrey5 12-20-2012 07:08 PM

But is it a style being used for that forum/sub-forum or some other way you set it unique by forum? This mod isn't going to look at custom styles to pull the icons from that style if that is what you are asking- sorry- that was never something it was intended to do.

m3rl1n 12-20-2012 07:19 PM

Same using default style, i have set icons in default and in a custom style and master forums doesn't pull from either or any just shows default thread status icon.

As suggested above if at all possible maybe an option in master forums to tell it too use forum or sub forum icons.

Maybe its just not possible but had to ask.

BirdOPrey5 12-20-2012 10:46 PM

On vBulletin.com you posted this:

Quote:

Sorry joe you did but he was vague. Once master forums is set up and you have all your threads listing under your delegated master form ID ( working and is great) it only displays the default VB status icon, at a loss to get it too display the custom icon i have set for each forum under forum manager that is set for each forum/category. Possible to have the ability for it to display forum/category icons rather than default status icon. Product addon or even code work around.
Emphasis mine because this is what I am confused about. Maybe I am missing something or maybe the icons I posted earlier were NOT what you are talking about. In Forum Manager the only option I see is for STATUS ICON PREFIX. A Status Icon is the image next to the forum on forum.php. That is different then the icons I circled in the image above which are the icons displayed next to each thread on forumdisplay.php.

What is confusing me is it looks like you are asking for custom images next to each thread when there is no native VB setting I know of for custom thread icons (per forum), only forum icons.

If you wanted the custom forum status icon I understand that being unique but no where in vBulletin does that icon ever show up next to a thread.

m3rl1n 12-21-2012 10:44 AM

Joe think little confusion on both parts maybe mainly caused by me, I know vb has never displayed the icons try keep it simple as confusion maybe as before my fault. Think basically i was asking "if" it was possible for the threads showing on master forum to show the forum icons from the forum the threads originate from?

Once again sorry for the confusion.

Eagle Eyes 02-21-2013 09:24 AM

How do i make the forum name clickable to that forum below the thread name in forumdisplay?

BirdOPrey5 03-03-2013 12:02 PM

Quote:

Originally Posted by m3rl1n (Post 2392038)
Joe think little confusion on both parts maybe mainly caused by me, I know vb has never displayed the icons try keep it simple as confusion maybe as before my fault. Think basically i was asking "if" it was possible for the threads showing on master forum to show the forum icons from the forum the threads originate from?

Once again sorry for the confusion.

If it is, I am not sure how. I don't think it would be easy.

Quote:

Originally Posted by Eagle Eyes (Post 2405550)
How do i make the forum name clickable to that forum below the thread name in forumdisplay?

Edit the All Topic In Threadbit Plugin.

Find the 2 instances of: {vb:raw thread.forumtitle}

Change them BOTH to:

Code:

<a href=\'forumdisplay.php?{vb:raw session.sessionurl}f={vb:raw thread.forumid}\'>{vb:raw thread.forumtitle}</a>
That should do it.

Baghira 03-03-2013 06:10 PM

Some problems here... After activating the mod (i did the template modification as instructed) I get an Error when visiting the masterforum

PHP Code:

Datenbankfehler in vBulletin 4.2.0:

Invalid SQL:

    
SELECT COUNT(*) AS threads
    
    FROM thread 
AS thread
    
    
/*
    WHERE thread.forumid = 17
        AND sticky = 0
        
         AND visible IN (0,1,2);

MySQL-Fehler  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/*
    WHERE thread.forumid = 17
        AND sticky = 0
        
         AND visible IN (0,1,2)' at line 9
Fehler-Nr.    : 1064
Fehler-Zeit   : Sunday, 03.03.2013 @ 20:08:17
Datum         : Sunday, 03.03.2013 @ 20:08:17
Skript        : [I]URL of the Masterforum[/I]
Referrer      : [I]Forum URL[/I]
IP-Adresse    :[I] My IP[/I]
Benutzername  : [I]MyName[/I]
Klassenname   : vB_Database
MySQL-Version : 5.1.63-0+squeeze1 


BirdOPrey5 03-03-2013 07:36 PM

In 4.2.0 you do not do the file edit. Restore forumdisplay.php back to the original.

Baghira 03-03-2013 08:03 PM

I did it.

The MySQL Error is not shown any more. Will test tomorrow, if items are collected by master

Thanks ;)

UPDATE

WORKS on 4.2 PL3! Great Mod! Love it. Thank you very much!

planetMitch 03-14-2013 02:28 AM

I just wanted to pop in and give a big shoutout to BirdOfPrey5!

Good golly man this is perfect for my needs!

THANK YOU!

mikesafl 05-02-2013 03:10 PM

Thank you so much for this I love this mod. This goes perfect with the type of forum im running. I only have one question because i didnt see it in the settings, how do i turn off where replies show on the masterforum. All i would like is the threads to show up not when someone replies to the thread

BirdOPrey5 05-03-2013 10:38 AM

I don't understand how you mean to turn off replies? As a thread it gets bumped to the top when there is a new reply, that can't be changed. But viewing the actual replies takes place in the thread itself.

Burnt 05-05-2013 05:13 PM

I'm running 4.2.0 PL3 and when I installed this and setup one main forum to catch 3 other forums.. If I post anything in that master forum those posts don't show up only the ones that are grabbed.. I didn't edit anything other than tell what was the master and the other forums. I turned off all other plugins to see if it was having problems with anything else but even with all turned off nothing shows up. Any suggestions?

EDIT

I'm guessing I have to turn on that forum as well to show its posts in the master forum as that does work... Question I have is there any way to separate that? I'd like to have the grabbed posts all on top then have it split and start with all the posts from that master forum separated

BirdOPrey5 05-06-2013 12:16 AM

There is no way to separate the posts, sorry- they come in like they were all in the same forum.

Naijasite 06-01-2013 09:44 AM

won't it look like duplicate thread since the thread has already been posted in another category ?
Does it has any benefit or effect on SEO?

BirdOPrey5 06-01-2013 10:11 AM

If only 1 thread exists, only 1 thread gets listed on any page.

I can't imagine it hurting SEO because the thread maintains its original URL no matter what forum it is listed in, so no duplicate content issues- just multiple links to the same page from different pages.

Morrus 06-06-2013 10:13 AM

The direction to 4.2.0 users in the OP - does that also apply to 4.2.1 users?

BirdOPrey5 06-06-2013 06:40 PM

Yes, 4.2.1 is pretty similar to 4.2.0.

b65ran 06-06-2013 10:40 PM

do we have a 4.x.x version for this one ?

BirdOPrey5 06-07-2013 12:11 AM

This is the 4.x.x version.

Morrus 06-07-2013 12:12 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2426219)
Yes, 4.2.1 is pretty similar to 4.2.0.

Excellent!

JMEWLS` 07-11-2013 12:49 AM

Is it possible to show the last post of the threads in the forumhome?

BirdOPrey5 07-11-2013 12:59 AM

Not a feature of this mod, not sure how you would do it.

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 05:48 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.01445 seconds
  • Memory Usage 1,840KB
  • 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
  • (1)bbcode_php_printable
  • (10)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