The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Global Threads for VB4 Details »» | |||||||||||||||||||||||||||||||
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
Screenshots
Show Your Support
|
3 благодарности(ей) от: | ||
MatthewA, mitch84, Trangalleiro |
Comments |
#72
|
|||
|
|||
where and in what file is the " threadbit template" code your looking for ?
|
#73
|
||||
|
||||
Quote:
You'll get a list of templates, double-click on the group Threadbit Templates It will expand, then double click on the template threadbit. It will open, copy and paste the code here. Put it inside [code] and [/code] tags here, you can make them by pressing the # button on the editor when making a new post. |
#74
|
|||
|
|||
Hi Joe, tagged for a future install.
I can add that in a widget? thx |
#75
|
||||
|
||||
I'm not familiar with widgets, I don't have the VB4 suite, just the forums-only and it doesn't have widgets.
|
#76
|
|||
|
|||
Hey again, here is the threadbit code
Code:
<tr class="vbs_forumrow threadbit {vb:raw thread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$thread['postuserid'] AND !$thread['del_userid']"> guest</vb:if><vb:if condition="$thread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw thread.realthreadid}"> <td class="big_icons <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <!-- 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> </td> <td class="small_icons 1 <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <vb:if condition="$show['threadicon']"> <img src="{vb:raw thread.threadiconpath}" alt="{vb:raw thread.threadicontitle}" border="0" /> <vb:else /> <img src="{vb:stylevar imgdir_icons}/icon1.png" alt="{vb:raw thread.threadicontitle}" border="0" /> </vb:if> </td> <td class="vbs_forumdata <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <div class="rating{vb:raw thread.rating}<vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <div class="threadinfo" title="{vb:raw thread.preview}"> <!-- title / author block --> <div class="inner"> <h3 class="threadtitle"> <vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw thread.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="$thread['sticky']"> <img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" /> </vb:if> <vb:if condition="$thread['movedprefix'] OR $thread['typeprefix'] OR $thread['moderatedprefix'] OR $thread['prefix_rich']"> <span class="prefix understate"> {vb:raw thread.movedprefix} {vb:raw thread.typeprefix} {vb:raw thread.moderatedprefix} {vb:raw thread.prefix_rich} </span> </vb:if> <a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}">{vb:raw thread.threadtitle}</a> </h3> <div class="threadmeta"> <p class="threaddesc">{vb:raw thread.preview}</p> <div class="author"> <vb:if condition="$show['rmanage']"> <span class="rmanage"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=editthread&t={vb:raw thread.redirectthreadid}">{vb:rawphrase manage}</a></span> </vb:if> <vb:if condition="!$show['detailedtime']"> {vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}} <vb:else /> {vb:rawphrase started_by_x_y_z, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:stylevar dirmark}} </vb:if> <vb:if condition="$show['unsubscribe']"> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}do=newreply&t={vb:raw thread.threadid}" rel="nofollow">{vb:rawphrase reply}</a> | <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&return=ucp&t={vb:raw thread.threadid}" rel="nofollow">{vb:rawphrase unsubscribe}</a> </vb:if> <vb:if condition="$thread['pagenav']"> <dl class="pagination" id="pagination_threadbit_{vb:raw thread.realthreadid}"> <dt class="label">{vb:raw thread.totalpages} {vb:rawphrase pages} <span class="separator">•</span></dt> <dd> {vb:raw thread.pagenav} <vb:if condition="$show['pagenavmore']"> <span class="separator">...</span> <span><a href="{vb:raw thread.lastpagelink}">{vb:raw thread.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 thread.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 thread.expiredate}, {vb:raw thread.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 thread.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 thread.deletedcount}}" /> </vb:if> <vb:if condition="$show['paperclip']"> <a href="javascript://" onclick="attachments({vb:raw thread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw thread.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> </div> </td> <vb:if condition="!$show['notificationtype']"> <!-- threadstats --> <td class="stats <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> {vb:rawphrase replies}: <a href="misc.php?do=whoposted&t={vb:raw thread.threadid}" onclick="who({vb:raw thread.threadid}); return false;" class="understate">{vb:raw thread.replycount}</a> <br /> {vb:rawphrase views}: {vb:raw thread.views} </td> </vb:if> <td class="vbs_threadlastpost <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</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 thread.lastpostdate}<vb:if condition="!$show['detailedtime']">, <em class="time">{vb:raw thread.lastposttime}</em></vb:if> <a href="{vb:link thread, {vb:raw thread}, {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> </td> <vb:if condition="$show['inlinemod']"> <td class="small_icons <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <!-- fourth block --> <ul><li class="threadbit"> <div> <label class="threadimod alt"> <input type="checkbox" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" name="imodcheck[{vb:raw thread.realthreadid}]" tabindex="1" /> </label> </div></li></ul> </td> </vb:if> <vb:if condition="$show['notificationtype']"> <!-- notification --> <td class="stats <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <label for="thread_imod_checkbox_{vb:raw thread.realthreadid}">{vb:raw thread.notification}</label> </td> <td class="small_icons <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <label class="threadimod"> <input type="checkbox" name="deletebox[{vb:raw subscribethread.$threadid}]" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" value="yes" tabindex="1" /> </label> </td> </vb:if> </tr> |
#77
|
||||
|
||||
Wow... OK That's a very different template... I see they went back to using tables! I'll work on converting this tonight and post a new threadbit_global template tonight.
|
#78
|
||||
|
||||
OK... first understand that there is probably close to zero chance this will work perfectly... and honestly I'm only 50/50 on if this might work at all since I didn't have a 4.1.4 version to test it on.
But you can go to your Admin CP -> Style Manager -> Choose your style -> Edit Templates. Open the template threadbit_global. Delete everything inside it and replace it all with this: Code:
<tr class="vbs_forumrow threadbit {vb:raw thread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$globalthread['postuserid'] AND !$globalthread['del_userid']"> guest</vb:if><vb:if condition="$gloablthread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw thread.realthreadid}"> <td class="big_icons <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <!-- 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 globalthread.dot_count}, {vb:raw globalthread.dot_lastpost}}"</vb:if>></a> </td> <td class="small_icons 1 <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <vb:if condition="$show['threadicon']"> <img src="{vb:raw globalthread.threadiconpath}" alt="{vb:raw gloablthread.threadicontitle}" border="0" /> <vb:else /> <img src="{vb:stylevar imgdir_icons}/icon1.png" alt="{vb:raw globalthread.threadicontitle}" border="0" /> </vb:if> </td> <td class="vbs_forumdata <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <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}"> <!-- 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'}" 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="$globalthread['sticky']"> <img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" /> </vb:if> <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="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=editthread&t={vb:raw globalthread.redirectthreadid}">{vb:rawphrase manage}</a></span> </vb:if> <vb:if condition="!$show['detailedtime']"> {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:else /> {vb:rawphrase started_by_x_y_z, {vb:link member, {vb:raw globalthread}, null, 'postuserid', 'postusername'}, {vb:raw globalthread.postusername}, {vb:raw globalthread.startdate}, {vb:stylevar dirmark}} </vb:if> <vb:if condition="$show['unsubscribe']"> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}do=newreply&t={vb:raw globalthread.threadid}" rel="nofollow">{vb:rawphrase reply}</a> | <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&return=ucp&t={vb:raw globalthread.threadid}" rel="nofollow">{vb:rawphrase unsubscribe}</a> </vb:if> <vb:if condition="$thread['pagenav']"> <dl class="pagination" id="pagination_threadbit_{vb:raw globalthread.realthreadid}"> <dt class="label">{vb:raw globalthread.totalpages} {vb:rawphrase pages} <span class="separator">•</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> </div> </td> <vb:if condition="!$show['notificationtype']"> <!-- threadstats --> <td class="stats <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> {vb:rawphrase replies}: <a href="misc.php?do=whoposted&t={vb:raw globalthread.threadid}" onclick="who({vb:raw globalthread.threadid}); return false;" class="understate">{vb:raw globalthread.replycount}</a> <br /> {vb:rawphrase views}: {vb:raw globalthread.views} </td> </vb:if> <td class="vbs_threadlastpost <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</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}<vb:if condition="!$show['detailedtime']">, <em class="time">{vb:raw globalthread.lastposttime}</em></vb:if> <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> </td> <vb:if condition="$show['inlinemod']"> <td class="small_icons <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <!-- fourth block --> <ul><li class="threadbit"> <div> <label class="threadimod alt"> <input type="checkbox" id="thread_imod_checkbox_{vb:raw globalthread.realthreadid}" name="imodcheck[{vb:raw globalthread.realthreadid}]" tabindex="1" /> </label> </div></li></ul> </td> </vb:if> <vb:if condition="$show['notificationtype']"> <!-- notification --> <td class="stats <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <label for="thread_imod_checkbox_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.notification}</label> </td> <td class="small_icons <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>"> <label class="threadimod"> <input type="checkbox" name="deletebox[{vb:raw subscribethread.$globalthreadid}]" id="thread_imod_checkbox_{vb:raw globalthread.realthreadid}" value="yes" tabindex="1" /> </label> </td> </vb:if> </tr> |
#79
|
|||
|
|||
^^That really screws it up.
Great idea, can't use it without the go to last post working. |
#80
|
||||
|
||||
I have a 4.1.4 now to test it on, let me see what I can figure out.
|
#81
|
||||
|
||||
Tagged for install later on, looks awesome!
Any known issues in 4.1.4? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|