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
Old Thread Notices by BOP5 Details »»
Old Thread Notices by BOP5
Version: 1.2, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 01-21-2011 Last Update: 07-10-2011 Installs: 66
Supported Uses Plugins Auto-Templates
Re-useable Code Translations  

Latest Version 1.2.

This mod will display a notice at the top of any thread that is over X number of days old. You can choose whether you want to start counting from the date of the first post or the date of the last post. You can also choose to disable it on sticky threads (good if you use stickies for official forum business), disable it in closed threads, disable it in specific forums, disable it for specific threads, or disable it for guests (New in Version 1.1).

The purpose is obviously to stop bumping of old threads unless the user has a good reason. It's also a good way to notify whoever is reading a thread that it is old so they don't think a bumped thread is recent and reply to it without checking.

There are two phrases and one template to give you total control on how the notice looks and what it says.

Full instructions are included in the .zip file.

This was tested on 4.0.8 and 4.1.4 and should work with all 4.0.x/4.1.x versions. It will NOT work in vB 3.x. There is a separate version for 3.x here.

Live Demo: http://www.juot.net/forums/showthread.php?t=47981 (VB 3.8 version)

Note: The rounded borders shown in the screenshots will not work in Internet Explorer, they will show as normal square borders in IE.

English: Download .zip file
Arabic: Download .xml file (Translated by Dr. osamA :up
Turkish Translation: Post #26 by eTiKeT?


------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated. :up:
Nominate MOTM if you LOVE it!

Download Now

File Type: xml product-oldthreadnoticebop5vb4-Arabic by alra7ba.xml (9.6 KB, 66 views)
File Type: zip Old Thread Notice by BOP5 - VB4v12.zip (4.4 KB, 237 views)

Screenshots

File Type: jpg ss_oldthread_fp-vb4.jpg (166.7 KB, 0 views)
File Type: jpg ss_oldthread_lp-vb4.jpg (168.7 KB, 0 views)
File Type: jpg ss_oldthread_settings-vb4.jpg (244.0 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 01-23-2011, 12:53 AM
Fastbird's Avatar
Fastbird Fastbird is offline
 
Join Date: Aug 2005
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, this is a great mod!
Reply With Quote
  #13  
Old 01-23-2011, 03:09 AM
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 redtailboas View Post
Future mod request. Allow option to "prevent" posting in a thread that meets the criteria. Sort of like a "virtual thread closed" feature.
This mod auto closes old threads and has been reported working on VB 4.0.x.

Quote:
Originally Posted by Dr.osamA View Post
sorry sir i uplod it ferst but you did upgrade to v 1.1

i reuplouded it now

plzz how we can add the massege above qwik reply box ???
I will make an update to version 1.2 but for now you can go to Admin CP -> Plugin Manager and edit the Old Thread Notice Template plugin.

Replace it all with: [edited January 24, 2011 with fixed code]
PHP Code:
if ($vbulletin->options['bop5oldt_en']) 
   { 
      
$templater vB_Template::create('showthread_oldthreadnotice');
      
$templater->register('showoldfp',   $showoldfp); 
      
$templater->register('showoldlp',   $showoldlp); 
      
$templater->register('bop5daysold'$bop5daysold);
      
$template_hook[showthread_above_posts] .= $templater->render();     
      
$templatevalues['showthread_oldthreadnotice'] = $templater->render(); 
vB_Template::preRegister('SHOWTHREAD'$templatevalues);   
   } 
Click SAVE.

Now edit your SHOWTHREAD template... put the following line:
Code:
{vb:raw showthread_oldthreadnotice}
Anywhere you want... For Quick Reply I suggest right above:
HTML Code:
	<div class="wysiwyg_block">
Anywhere you put the code in SHOWTHREAD will show the old thread notice.

If you want to remove the built in notice at the top of the thread, back in the plugin, comment out the applicable line, make it:
PHP Code:
//$template_hook[showthread_above_posts] .= $templater->render(); 
Quote:
Originally Posted by Fastbird View Post
Awesome, this is a great mod!
Thanks.
Reply With Quote
  #14  
Old 01-23-2011, 04:36 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great stuff!! Waiting for 1.2

Thanks.
Reply With Quote
  #15  
Old 01-23-2011, 12:50 PM
Theo-zzzz's Avatar
Theo-zzzz Theo-zzzz is offline
 
Join Date: May 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I really like the warning notice on top of these old threads.
Reply With Quote
  #16  
Old 01-24-2011, 09:17 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
This mod auto closes old threads and has been reported working on VB 4.0.x.



I will make an update to version 1.2 but for now you can go to Admin CP -> Plugin Manager and edit the Old Thread Notice Template plugin.

Replace it all with:
PHP Code:
if ($vbulletin->options['bop5oldt_en'])
   {
      
$templater vB_Template::create('showthread_oldthreadnotice');
      
$templater->register('showoldfp',   $showoldfp);
      
$templater->register('showoldlp',   $showoldlp);
      
$template_hook[showthread_above_posts] .= $templater->render();    
      
$templatevalues['showthread_oldthreadnotice'] = $templater->render();
vB_Template::preRegister('SHOWTHREAD'$templatevalues);  
   } 
Click SAVE.

Now edit your SHOWTHREAD template... put the following line:
Code:
{vb:raw showthread_oldthreadnotice}
Anywhere you want... For Quick Reply I suggest right above:
HTML Code:
	<div class="wysiwyg_block">
Anywhere you put the code in SHOWTHREAD will show the old thread notice.

If you want to remove the built in notice at the top of the thread, back in the plugin, comment out the applicable line, make it:
PHP Code:
//$template_hook[showthread_above_posts] .= $templater->render(); 


Thanks.
thank you bro

but by this way not working i try befor you reply not working
and i do it by this instructoin what you repled here and not working
the count dyes not show wehen i replace plugin

i attached image
Attached Images
File Type: gif qsq.gif (27.2 KB, 0 views)
File Type: gif 0ede.gif (10.5 KB, 0 views)
Reply With Quote
  #17  
Old 01-24-2011, 12:47 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 Dr... I forgot a line in the plugin.

The correct code for the plugin is:

Code:
if ($vbulletin->options['bop5oldt_en']) 
   { 
      $templater = vB_Template::create('showthread_oldthreadnotice');
      $templater->register('showoldfp',   $showoldfp); 
      $templater->register('showoldlp',   $showoldlp); 
      $templater->register('bop5daysold', $bop5daysold);
      $template_hook[showthread_above_posts] .= $templater->render();     
      $templatevalues['showthread_oldthreadnotice'] = $templater->render(); 
vB_Template::preRegister('SHOWTHREAD', $templatevalues);   
   }
(the line I forgot is in red.)
Reply With Quote
  #18  
Old 01-25-2011, 12:08 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now it is good

thank you sir
Reply With Quote
  #19  
Old 01-28-2011, 10:53 PM
Pvtiste Pvtiste is offline
 
Join Date: Nov 2005
Location: Toronto
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent work man! Thanks for sharing
Reply With Quote
  #20  
Old 07-10-2011, 08:46 PM
Trangalleiro's Avatar
Trangalleiro Trangalleiro is offline
 
Join Date: Feb 2011
Location: A Coru?a
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the product. Installed and working in VB404.
How could you not show the notice on topics that are already closed.
Sorry for my English, am Spanish and I am using a translator.
Greetings.
Reply With Quote
  #21  
Old 07-10-2011, 11:24 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 Trangalleiro View Post
Thank you for the product. Installed and working in VB404.
How could you not show the notice on topics that are already closed.
Sorry for my English, am Spanish and I am using a translator.
Greetings.
I have just updated it to version 1.2. It now allows you to disable on closed threads if you choose.
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 11:02 PM.


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.07113 seconds
  • Memory Usage 2,381KB
  • 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
  • (2)bbcode_html
  • (4)bbcode_php
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)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
  • (7)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