vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - All Topic / Master Forums - View Threads from Multiple Forums in a Master Forums (https://vborg.vbsupport.ru/showthread.php?t=245414)

BirdOPrey5 08-15-2011 07:42 PM

The new thread appears in the master forum.

Undertaker #59 08-15-2011 07:57 PM

I'll have to test it out, but I am wondering if I can not allow new threads in this forum, but still allow replies. Basically I want to use this mod as a way to view and reply to threads from multiple forums, but I want new threads to be placed in the proper forum for those who choose not to use the master forum view and view the forums singly.

BirdOPrey5 08-15-2011 08:06 PM

Each thread remains in its own forum... When someone is viewing the master forum the "New Thread" button will put a thread in the Master Forum as if ti was any other forum.

If someone clicks on a thread that is shown in the Master Forum but is from another forum, say Forum 2, then once the user clicks on it they will be in Forum 2. If they use the Forum Jump menu for example they will be taken "back" to Forum 2. That's why on my forum I edited the Jump Menu to include a link back to my master forum at all times.

Best way to understand is just to try it.

punchbowl 08-20-2011 08:04 AM

Brilliant mod. Just testing it on 3.8 but hopefully it'll bring order to chaos when we upgrade to vb4 too.

Anyone tested this on the vb mobile apps/tapatalk? (I saw something about it not being compatible with tapatalk in this thread or the vb4 one)

If I wanted to force users to select a forum when they hit post new thread when in the master forum I'd have to edit the newthread.php as well as the template wouldn't I? (thinking aloud - I could do it with a plugin)

Cheers!

BirdOPrey5 08-20-2011 11:15 AM

I know it doesn't work with Tapatalk, not sure about vbulletin mobile app. For Tapatalk I find a lot of people use the "New Posts" feature anyway.

Yes you can edit new thread to ask where to post, but I haven't done it.

Undertaker #59 08-20-2011 02:27 PM

I would love that feature (having it prompt for forum on new thread).

Anyway, downloading and installing now.

hpidriver 09-01-2011 03:23 AM

Marked as installed! great mod, extremely useful thank you.

I have a question - I have a forum that is being used a master forum. Where would I edit to have the sub-forums be displayed above the threads (so the opposite as in your first example screenshot)
tia

BirdOPrey5 09-01-2011 11:22 AM

Quote:

Originally Posted by hpidriver (Post 2240695)
Marked as installed! great mod, extremely useful thank you.

I have a question - I have a forum that is being used a master forum. Where would I edit to have the sub-forums be displayed above the threads (so the opposite as in your first example screenshot)
tia

To do that best way would be to not use the auto template edit on the threadbit and do the manual edit instead- per the instructions:

Code:

Manual Template Edit for vBulletin 3.x series:

In your Admin CP -> Styles & Templates -> Style Manager
Choose your style(s) and go to Edit Templates
Scroll down to Threadbit Templates -> threadbit

In the threadbit template find the code:

<if condition="$show['guestuser']">
                                $thread[postusername]
                               
                               
And directly after it add the following code:
For your request instead put this code directly BEFORE the above:

<if condition="$thread[forumid] != $foruminfo[forumid]">&nbsp;-&nbsp;$thread[forumtitle]</if>

Also find the code:

<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>

And REPLACE it with:

<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]<if condition="$thread[forumid] != $foruminfo[forumid]">&nbsp;-&nbsp;$thread[forumtitle]</if></span>

changes in red.

James T Brock 10-24-2011 08:44 PM

I am getting the below error. Any ideas on how to fix this?

Code:

Database error in vBulletin 3.8.5:

Invalid SQL:

        SELECT COUNT(*) AS threads,
        (
                SELECT COUNT(*) AS newthread
                FROM thread AS thread
                WHERE forumid = 22
                AND lastpost > 1319489077
                AND open <> 10
                AND sticky = 0
               
                AND visible IN (0,1,2)
               
               
               
                */ WHERE forumid IN (22) AND sticky = 0  AND visible IN (0,1,2) 
        ) AS newthread
       
        FROM thread AS thread
       
        /*
        WHERE forumid = 22
        AND sticky = 0
       
        AND visible IN (0,1,2)
       
       
       
        */ WHERE forumid IN (22) AND sticky = 0  AND visible IN (0,1,2);

MySQL Error  : 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 forumid IN (22) AND sticky = 0  AND visible IN (0,1,2) 
        ) AS newth' at line 14
Error Number  : 1064
Request Date  : Monday, October 24th 2011 @ 01:44:44 PM
Error Date    : Monday, October 24th 2011 @ 01:44:44 PM
Script        : http://website.com/forumdisplay.php?f=22
Referrer      : http://website.com/forumdisplay.php?f=11
IP Address    : xx.xx.xx.xx
Username      : admin
Classname    : vB_Database
MySQL Version : 5.1.52-log


BirdOPrey5 10-25-2011 12:07 AM

Quote:

Originally Posted by James T Brock (Post 2261171)
I am getting the below error. Any ideas on how to fix this?

Code:

Database error in vBulletin 3.8.5:

Invalid SQL:

        SELECT COUNT(*) AS threads,
        (
                SELECT COUNT(*) AS newthread
                FROM thread AS thread
                WHERE forumid = 22
                AND lastpost > 1319489077
                AND open <> 10
                AND sticky = 0
               
                AND visible IN (0,1,2)
               
               
               
                */ WHERE forumid IN (22) AND sticky = 0  AND visible IN (0,1,2) 
        ) AS newthread
       
        FROM thread AS thread
       
        /*
        WHERE forumid = 22
        AND sticky = 0
       
        AND visible IN (0,1,2)
       
       
       
        */ WHERE forumid IN (22) AND sticky = 0  AND visible IN (0,1,2);

MySQL Error  : 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 forumid IN (22) AND sticky = 0  AND visible IN (0,1,2) 
        ) AS newth' at line 14
Error Number  : 1064
Request Date  : Monday, October 24th 2011 @ 01:44:44 PM
Error Date    : Monday, October 24th 2011 @ 01:44:44 PM
Script        : http://website.com/forumdisplay.php?f=22
Referrer      : http://website.com/forumdisplay.php?f=11
IP Address    : xx.xx.xx.xx
Username      : admin
Classname    : vB_Database
MySQL Version : 5.1.52-log


One of two things is the problem...

1) You have another mod using the hook forumdisplay_query_threadscount. In plugin manager see if any other plugin is using that hook and if so let me know which mod and I'll take a look.

Or

2) Are you using a modified or different forumdisplay.php file then came with your version. Please replace your forumdisplay.php with a copy from the original 3.8.5 install. (Keep a backup in case of anything.)


All times are GMT. The time now is 05:24 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.01292 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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