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
  #52  
Old 02-12-2011, 03:41 AM
gsmph's Avatar
gsmph gsmph is offline
 
Join Date: Feb 2009
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

first of all this really a nice hack and i already implemented it as soon as i see it..

but problem pops up after installing the hack please see my screenshot all the cirlced spacing was suddenly appear but the other global threads below its all ok except the first on above..
please see my attachment

vb4.0.0 pl1

sorry for my bad english

br
gsmph
Attached Images
File Type: jpg 5.jpg (58.7 KB, 0 views)
Reply With Quote
  #53  
Old 02-12-2011, 04:02 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That looks like a bug being you are running version 4.0.0 of vBulletin, I really can't imagine anyone can run that version on a live site.

It looks like it's because the thread contains the attachment icon it inherits a margin (margin: 20px 30px from .attachments {} in the CSS.

I don't know how you would fix it, removing the margin will likely mess something else up.

That's my best guess, if you can't upgrade past 4.0.0 I would suggest not using my (or any) mods.
Reply With Quote
  #54  
Old 02-13-2011, 07:48 AM
BlueCheri's Avatar
BlueCheri BlueCheri is offline
 
Join Date: Jul 2009
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice and useful mod.

Thanx
Reply With Quote
  #55  
Old 02-13-2011, 09:05 AM
shuangddr shuangddr is offline
 
Join Date: May 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good mod
Reply With Quote
  #56  
Old 02-15-2011, 11:57 PM
tekmiester tekmiester is offline
 
Join Date: Mar 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is quite nice
Reply With Quote
  #57  
Old 04-12-2011, 07:14 AM
shri shri is offline
 
Join Date: Nov 2001
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, but cannot get the "Go to first new post" icon link to work; it just displays the thread and goes to post #1.

PHP Code:
<a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" 
id="thread_gotonew_{vb:raw globalthread.realthreadid}">
<
img class="gotonewpost" 
src="{vb:stylevar imgdir_button}/firstnew.png" 
alt="{vb:rawphrase go_to_first_new_post}" />
</
a
Does anybody have this working?
Reply With Quote
  #58  
Old 04-12-2011, 05:26 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry shri, looks like I left out "&amp;goto=newpost" in the URL code.

For anyone having this issue replace your entire threabit_global template with the following updated code:

Code:
<li class="threadbit {vb:raw globalthread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$globalthread['postuserid'] AND !$globalthread['del_userid']"> guest</vb:if><vb:if condition="$globalthread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw globalthread.realthreadid}">
	<div class="rating{vb:raw globalthread.rating}<vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
		<div class="threadinfo" title="{vb:raw globalthread.preview}">
			<!--  status icon block -->
			<a class="threadstatus" rel="vB::AJAX" <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}"</vb:if>></a>
		
			<!-- title / author block -->
			<div class="inner">
				<h3 class="threadtitle">
                                       <vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}&amp;goto=newpost" id="thread_gotonew_{vb:raw globalthread.realthreadid}"><img class="gotonewpost" src="{vb:stylevar imgdir_button}/firstnew.png" alt="{vb:rawphrase go_to_first_new_post}" /></a>
					</vb:if>			
                                        <vb:if condition="$show['threadicon']">
                                                <img src="{vb:raw globalthread.threadiconpath}" alt="{vb:raw globalthread.threadicontitle}" border="0" />
                                        </vb:if>
<vb:if condition="$gtuseicon">
<img src="{vb:stylevar imgdir_misc}/global.png" alt="{vb:rawphrase global_thread}" />
</vb:if>					
				 	{vb:rawphrase gt_global}					
                                        
 					<vb:if condition="$globalthread['movedprefix'] OR $globalthread['typeprefix'] OR $globalthread['moderatedprefix'] OR $globalthread['prefix_rich']">
						<span class="prefix understate">
							{vb:raw globalthread.movedprefix}
							{vb:raw globalthread.typeprefix}
							{vb:raw globalthread.moderatedprefix}
							{vb:raw globalthread.prefix_rich}
						</span>
					</vb:if>
                                        <a 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>
				</h3>
						

				<div class="threadmeta">				
					<p class="threaddesc">{vb:raw globalthread.preview}</p>
					<div class="author">
						<vb:if condition="$show['rmanage']">
							<span class="rmanage"><a href="postings.php?{vb:raw session.sessionurl}do=editthread&amp;t={vb:raw globalthread.redirectthreadid}">{vb:rawphrase manage}</a></span>
						</vb:if>						
						{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw globalthread}, null, 'postuserid', 'postusername'}, {vb:raw globalthread.postusername}, {vb:raw globalthread.startdate}, {vb:raw globalthread.starttime}, {vb:stylevar dirmark}}
						<vb:if condition="$show['unsubscribe']">
							 &nbsp; <a href="newreply.php?{vb:raw session.sessionurl}do=newreply&amp;t={vb:raw globalthread.threadid}" rel="nofollow">{vb:rawphrase reply}</a>
							 | <a href="subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;return=ucp&amp;t={vb:raw globalthread.threadid}" rel="nofollow">{vb:rawphrase unsubscribe}</a>
						</vb:if>
						<vb:if condition="$globalthread['pagenav']">
							<dl class="pagination" id="pagination_threadbit_{vb:raw globalthread.realthreadid}">
								<dt class="label">{vb:raw globalthread.totalpages} {vb:rawphrase pages} <span class="separator">&bull;</span></dt>
								<dd>
									{vb:raw globalthread.pagenav}
									<vb:if condition="$show['pagenavmore']"> <span class="separator">...</span> <span><a href="{vb:raw globalthread.lastpagelink}">{vb:raw globalthread.totalpages}</a></span></vb:if>
								</dd>
							</dl>
						</vb:if>
					</div>
					
				</div>

			</div>				
			<!-- iconinfo -->
			<div class="threaddetails td">
				<div class="threaddetailicons">
					<vb:if condition="$show['taglist']">
						<img src="{vb:stylevar imgdir_misc}/tag.png" alt="{vb:raw globalthread.taglist}" />
					</vb:if>
					<vb:if condition="$show['rexpires']">
						<img src="{vb:stylevar imgdir_misc}/expires.gif" alt="{vb:rawphrase expires_on_x_y, {vb:raw globalthread.expiredate}, {vb:raw globalthread.expiretime}}" />
					</vb:if>
					<vb:if condition="$show['moderated']">
						<img src="{vb:stylevar imgdir_misc}/moderated_small.gif" alt="{vb:rawphrase x_moderated_posts, {vb:raw globalthread.hiddencount}}" />
					</vb:if>
					<vb:if condition="$show['deletedthread']">
						<img src="{vb:stylevar imgdir_misc}/trashcan_small.gif" alt="{vb:rawphrase x_deleted_posts, {vb:raw globalthread.deletedcount}}" />
					</vb:if>
					<vb:if condition="$show['paperclip']">
						<a href="javascript://" onclick="attachments({vb:raw globalthread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw globalthread.attach}}" /></a>
					</vb:if>
					<vb:if condition="$show['subscribed']">
						<img src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" />
					</vb:if>
				</div>
			</div>
		</div>
		
		<!-- threadstats -->
		<vb:if condition="!$show['notificationtype']">
		<ul class="threadstats td alt" title="<vb:if condition="$globalthread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw globalthread.dot_count}, {vb:raw globalthread.dot_lastpost}}</vb:if>">
			<li>{vb:rawphrase replies}: <a href="misc.php?do=whoposted&amp;t={vb:raw globalthread.threadid}" onclick="who({vb:raw globalthread.threadid}); return false;" class="understate">{vb:raw globalthread.replycount}</a></li>
			<li>{vb:rawphrase views}: {vb:raw globalthread.views}</li>
			<li class="hidden">{vb:rawphrase rating}{vb:raw globalthread.rating} / 5</li>
		</ul>
		</vb:if>					
		<!-- lastpost -->
		<dl class="threadlastpost td<vb:if condition="$show['notificationtype']"> alt</vb:if>">
			<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
			<dd>{vb:raw memberaction_dropdown}</dd>
			<dd>{vb:raw globalthread.lastpostdate} <em class="time">{vb:raw globalthread.lastposttime}</em> 
			<a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}" class="lastpostdate understate" title="{vb:rawphrase go_to_last_post}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
			</dd>
		</dl>

		<vb:if condition="$show['notificationtype']">
		<!--  notification -->
		<div class="threadnotification td" >
			<label for="thread_imod_checkbox_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.notification}</label>
		</div>
		<label class="threadimod td">
			<input type="checkbox" name="deletebox[{vb:raw subscribethread.$globalthreadid}]" id="thread_imod_checkbox_{vb:raw globalthread.realthreadid}" value="yes" tabindex="1" />
		</label>
		</vb:if>
		
		<vb:if condition="$show['inlinemod']">
		<!-- fourth block -->
		<label class="threadimod td alt">
			<input type="checkbox" id="thread_imod_checkbox_{vb:raw globalthread.realthreadid}" name="imodcheck[{vb:raw globalthread.realthreadid}]" tabindex="1" />
		</label>
		</vb:if>
		
	</div>
</li>
All I did was replace:
Code:
<a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" 
id="thread_gotonew_{vb:raw globalthread.realthreadid}">
with this:
Code:
<a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" 
id="thread_gotonew_{vb:raw globalthread.realthreadid}&amp;goto=newpost">


-- edited per boofo's suggestion --
Reply With Quote
  #59  
Old 04-12-2011, 05:33 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

&goto=newpost should be &amp;goto=newpost
Reply With Quote
  #60  
Old 04-12-2011, 05:41 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 Boofo View Post
&goto=newpost should be &amp;goto=newpost
Is there a reason? It works fine for me with just &... ?

edited my instructions anyway... just curious as to the why.

Thanks.
Reply With Quote
  #61  
Old 04-12-2011, 05:52 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Because the proper W3C validation is with the &amp;.
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 10:14 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.12901 seconds
  • Memory Usage 2,369KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_php
  • (1)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
  • (4)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