Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #42  
Old 02-02-2011, 12:15 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems to be working nicely ...

There is another incompability for those here who may be using Dartho Lightweight Style for mobile devices, which we do. By the way, it's excellent for cell phones, iPhones/iPads and slow dial up user connections.

Anyway, for whatever reason, the Global Threads mod shows the entire thread in the forumdisplay on that style, instead of just the title. (see pic)

There is a workaround to by-pass Global Threads that we've used in other cases.

In the Global Phrases plug-in titled Merge Global Threadbits with Threadbits bracket it with the following:

Quote:
Code:
if (STYLEID!=15){

Merge Global Threadbits with Threadbits code goes in here

}
Note: 15 is style number for my site's Dartho Lightweight Style, so yours may be different. Whatever it is, plus your style number in-place of my number 15 for your own site.
Now the Global Phrases mod won't display and mess up Dartho's Lightweight Style.

Global Phrases works very well with ALL our other styles, so I'm not sure why there's an issue with the Ligtweight Style only.

Hope this helps someone else in this thread.

Thanks to BirdOPrey5 for helping us fix the other conflict he mentioned above. :up:

Regards,
Doug
Attached Images
File Type: jpg Screen shot 2011-02-02 at 8.57.38 AM.jpg (75.7 KB, 0 views)
Reply With Quote
  #43  
Old 02-02-2011, 12:18 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The issue is because the template being used in the lightweight style is mine and had not been edited down the the lightweight style's template.

I'll find the style and make and edit the template and post it here.
Reply With Quote
  #44  
Old 02-02-2011, 12:22 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
The issue is because the template being used in the lightweight style is mine and had not been edited down the the lightweight style's template.

I'll find the style and make and edit the template and post it here.
Ahhh ... now I understand ... :up:

Thanks ...

Regards,
Doug
Reply With Quote
  #45  
Old 02-02-2011, 12: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

OK, in the LightWeight Style edit the threadbit_global template...

Erase it all and replace with:
Code:
<vb:if condition="$show['sticky']">
<div class="sticky_{vb:raw globalthread.statusstring}">

<vb:else />

<div class="thread_{vb:raw globalthread.statusstring}">

</vb:if>
            {vb:raw globalthread.movedprefix}
            {vb:raw globalthread.typeprefix}
            {vb:raw globalthread.moderatedprefix}
            {vb:raw globalthread.prefix_rich}

<a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.threadtitle}</a> ({vb:raw globalthread.replycount}) 
<vb:if condition="$thread['pagenav']">{vb:raw stylevar.dirmark}<span class="smallfont" style="white-space:nowrap">({vb:raw globalthread.pagenav}<vb:if condition="$show[pagenavmore]"> ... <a href="showglobalthread.php?{vb:raw session.sessionurl}t={vb:raw globalthread.threadid}&amp;page={vb:raw globalthread.totalpages}{vb:raw globalthread.highlight}">{vb:rawphrase last_page}</a></vb:if>)</span></vb:if>
<vb:if condition="$show['managethread']"></vb:if>
<vb:if condition="$show['deletethread']">
<span><a id="btn" href="postings.php?{vb:raw session.sessionurl}do=editthread&amp;t={vb:raw globalthread.threadid}">{vb:rawphrase edit}</a>&nbsp;<a id="btn" href="postings.php?{vb:raw session.sessionurl}do=deletethread&t={vb:raw globalthread.threadid}">{vb:rawphrase delete}</a></span>
</vb:if>
</div>
<div class="windowbg">
{vb:rawphrase last} {vb:rawphrase post}: {vb:raw globalthread.lastposter}, {vb:raw globalthread.lastpostdate}
<vb:if condition="!$show['detailedtime']">{vb:raw globalthread.lastposttime}</vb:if>
</div>
That will make Global Threads look like regular threads. If you want Global Threads to look like Sticky threads then change the very first line to:
Code:
<vb:if condition="1">
Reply With Quote
  #46  
Old 02-02-2011, 01:15 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
OK, in the LightWeight Style edit the threadbit_global template...
Done ... looks good (see pic) ... :up:

Global Thread was set as a sticky using your suggestion:

Change the very first line to <vb:if condition="1">

It's the thread under the ones marked "sticky", but not actually marked as a sticky and located above the normal threads.

Thanks ..

Regards,
Doug
Attached Images
File Type: jpg Screen shot 2011-02-02 at 10.12.11 AM.jpg (80.1 KB, 0 views)
Reply With Quote
  #47  
Old 02-02-2011, 01:34 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know how to prevent threads that are generated in the hidden "Global Messages" forum we use, from appearing in the "New Threads" search when people click on that?

I notice that when it executes that function, it says:

Quote:
* Home * Search * New Posts

Search:
Type: Posts; Excluded Forums: Knowledge Library Comments; New Posts
I assume that somewhere our forum "Knowledge Library Comments" has been excluded from the search, but I can't find where so I can add our hidden "Global Messages Forum" ...

Thanks for any guidance ...

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

I've seen some mods to do this but this is how I do it:
http://www.vbulletin.com/forum/showt...orums%20search
Reply With Quote
  #49  
Old 02-02-2011, 02:24 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
OK, simple fix... edit the threadbit_global template and change the code I quoted above to:

Code:
<a style="color:green;" class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.threadtitle}</a>
I set it to "green" you can use any color you want or hex color code.
Thanks! That did it! :up:
Reply With Quote
  #50  
Old 02-02-2011, 04:02 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
I've seen some mods to do this but this is how I do it:
http://www.vbulletin.com/forum/showt...orums%20search
Thanks .. I found that a little over my skill level ...

I did find this, which I thought might be easier, but I don't understand emough about variables to know how to implement it.

Quote:
Originally Posted by xug View Post
This can be do so much easier

Enter a new replacement variable in your Styles and Template menu

Search for Text: do=getnew&

Replace with: do=getnew&exclude=xx,xx,xx

Where xx is the forum you want to exclude
I think this capability begs for a nice clean simple (importable) mod to be written by someone ...

Regards,
Doug

Edit: figured it out ... wasn't actually that difficult ... pretty soon I'll be a programmer .. ..

It says now:

Type: Posts; Excluded Forums: Knowledge Library Comments, Global Messages Forum; New Posts
Reply With Quote
  #51  
Old 02-05-2011, 04:43 AM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed & Working

4.1.1

It would be nice if this had the option for its own divider.
Reply With Quote
Reply

Thread Tools

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 11:15 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.05587 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
  • (4)bbcode_code
  • (7)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
  • (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