Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Global Threads for VB4 Details »»
Global Threads for VB4
Version: 2.02, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.x.x Rating:
Released: 01-30-2011 Last Update: 02-01-2011 Installs: 113
Auto-Templates
Is in Beta Stage  
No support by the author.

This mod is based off a VB 3.6 mod by randominity here:
https://vborg.vbsupport.ru/showthread.php?t=129626
He gave me permission to further develop this mod.

This mod allows you to display "global threads" in your forums. Global Threads are threads that show up in every forum (or forums you specify) as opposed to just a single forum.

This is perfect for important site news, forum wide polls, and anything worthwhile to be displayed forum wide.

New Version: 2.02 - Fixed a conflict with the "Thread Links" mod.
New Version: 2.01 - 1 Bug Fix, +1 Extra Option (Choose to display above or below sticky divider if you have one.)

I know you could make an announcement but people ignore announcements, and you can't reply to them like threads. These are real threads and if you don't take away permission people can reply to it like any other thread. Replies in any forum show up in all forums.

Same thread in multiple forums: (VB3 Version)
http://www.juot.net/forums/forumdisplay.php?f=48
http://www.juot.net/forums/forumdisplay.php?f=43
http://www.juot.net/forums/forumdisplay.php?f=20
(It's under the sticky threads.)

This mod requires a little work on your side- you must first create a "global forum." I suggest calling it "Global Forum" and in the forum manager when creating it, choose to "Set Active" set to "No" so it won't show up in your forum lists but will be accessible directly by you to post new threads in.

I have greatly increased the number of options over the original mod and believe I have implemented all the good suggestions ever made for the original mod.

This version won't work on any vBulletin version less than 4.0.0.

I have marked this as BETA as there is 1 unresolved minor bug- it has been a bug since this mod came out but no one seems to have noticed or cared. When showing global threads the small arrow indicating if you had posts in the global thread won't snow.

See screenshots for a Global Thread example. The Global Thread globe icon is optional.

Full instructions in zip file.

Please Mark as Installed if you use this.

Note: See post #95 for info on how to fix this mod for VB 4.1.7.

See post #126 for an updated threadbit_global template for VB Versions 4.1.10 and above.

Note- I have released a new and better global thread mod and will no longer be supporting this version.

New Mod Link: https://vborg.vbsupport.ru/showthread.php?t=279156

Download Now

File Type: zip Global Threads VB4 - BOP5-v202.zip (240.4 KB, 599 views)

Screenshots

File Type: jpg gtsettings.jpg (329.7 KB, 0 views)
File Type: jpg gtvb41.jpg (189.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
MatthewA, mitch84, Trangalleiro

Comments
  #22  
Old 02-01-2011, 09:41 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting the following database error with this enabled:

Database error in vBulletin 4.1.1:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,post.thankscache,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
thread.prefixid, thread.taglist, hiddencount, deletedcount,
user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
, threadread.readtime AS threadread
, threadredirect.expires
, firstpostid,modification.mod_installcount,usermod. mod_tagged,usermod.mod_installed,usermod.mod_downl oaded,modification.last_update
FROM vbthread AS thread
LEFT JOIN vbuser AS user ON (user.userid = thread.lastposterid)
LEFT JOIN vbuserlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 3)
LEFT JOIN vbdeletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN vbsubscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 3 AND canview = 1)
LEFT JOIN vbthreadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 3)
LEFT JOIN vbpost AS post ON(post.postid = thread.firstpostid)

LEFT JOIN vbthreadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
WHERE thread.forumid = 223
ORDER BY lastpost DESC
LIMIT 5;

MySQL Error : Unknown column 'modification.mod_installcount' in 'field list'
Error Number : 1054
Request Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Error Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Script : http://creativx.net/forums/forumdisplay.php?f=25
Referrer : http://creativx.net/forums/
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.1.54

Please help.
Reply With Quote
  #23  
Old 02-01-2011, 10:55 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 4.04pl1 for testing with thanks ... :up:

Regards,
Doug

Edit: Set-up as per instructions (see attached pic), added "Global Messages Forum" and ENABLED mod.

Created a post in the new "Global Messages Forum" and hit submit ....

Nothing appears in any of the forums specified, however post appears in "Global Messages Forum".
Attached Images
File Type: jpg Screen shot 2011-02-01 at 8.15.14 AM.jpg (117.7 KB, 0 views)
Reply With Quote
  #24  
Old 02-01-2011, 02:32 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taurus1 View Post
I am getting the following database error with this enabled:

Database error in vBulletin 4.1.1:

Invalid SQL:

SELECT
...

MySQL Error : Unknown column 'modification.mod_installcount' in 'field list'
Error Number : 1054
Request Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Error Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Script : http://creativx.net/forums/forumdisplay.php?f=25
Referrer : http://creativx.net/forums/
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.1.54

Please help.
Hi, I see the problem... I forgot to remove 1 hook from the code and another modification you have is interfering with the query.

I will release an update to fix this bug shortly. In the mean time if you want to fix it you can go to Plugin Manager -> Edit the plugin titled: Query Global Threads
Find this line:
Code:
$hook_query_fields
And simply erase it, hit save, and it should work.

Or wait for my next update later today.

Quote:
Originally Posted by BadgerDog View Post
Installed on 4.04pl1 for testing with thanks ... :up:

Regards,
Doug

Edit: Set-up as per instructions (see attached pic), added "Global Messages Forum" and ENABLED mod.

Created a post in the new "Global Messages Forum" and hit submit ....

Nothing appears in any of the forums specified, however post appears in "Global Messages Forum".
Is the mod still enabled? If so please give me the forumid of your global forum. I will take a look.

My guess off hand is you have the permissions set wrong- users need to be able to view the forum and threads... here is a screenshot of proper forum permissions:
Attached Images
File Type: jpg permissions_ss.jpg (111.5 KB, 0 views)
Reply With Quote
  #25  
Old 02-01-2011, 03:21 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very very much!! Works perfectly now!!! You ROCK big time mate!!
Reply With Quote
  #26  
Old 02-01-2011, 03:48 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post

Is the mod still enabled? If so please give me the forumid of your global forum. I will take a look.

My guess off hand is you have the permissions set wrong- users need to be able to view the forum and threads... here is a screenshot of proper forum permissions:
Thanks for the quick response ... :up:

Yes, enabled and I checked forum permissions and they are fine...

In fact, I'm an Admin who created the seed post and all permissions for the forum are on, yet I can't see any of the posts.

Can I send you AdminCP access privately to have a look?

Regards,
Doug
Reply With Quote
  #27  
Old 02-01-2011, 04:13 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can PM me access info but please first try this new version, 2.01 I just released just in case your problem is related to the bug fix. :up:

The new version also ads an option where you can display global threads above or below a sticky divider if you have one.
Reply With Quote
  #28  
Old 02-01-2011, 05:27 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
You can PM me access info but please first try this new version, 2.01 I just released just in case your problem is related to the bug fix. :up:

The new version also ads an option where you can display global threads above or below a sticky divider if you have one.
Downloaded and installed v2.01 on our v4.04pl1.

Re-checked all settings ....

Deleted old test post from "Global Messages Forum" and created a new one... submitted it ...

It doesn't show up in any of the forums listed in the "included" listing.

Should there be spaces in list? ie: 1, 2, 3 versus 1,2,3 the way I have it?

I'll get you the login information. Sure like to get this working as it could add a lot of value to the nature of how we operate our forums.

Thanks for your help ... :up:

Regards,
Doug
Reply With Quote
  #29  
Old 02-01-2011, 05:36 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1,2,3 or 1, 2, 3 both work, I tested it both ways... will take a look when you PM me info.
Reply With Quote
  #30  
Old 02-01-2011, 06:01 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
1,2,3 or 1, 2, 3 both work, I tested it both ways... will take a look when you PM me info.
Thanks ...

Sent you a PM ....

Also, sent you a PayPal donation for this, as well as other mods and work you've done that we've started using. Been meaning to do that for a while now ...

Regards,
Doug
Reply With Quote
  #31  
Old 02-01-2011, 06:59 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome Joe, I like how you updated this quite handy imo!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05931 seconds
  • Memory Usage 2,366KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete