vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Old Thread Notices by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=257629)

Fastbird 01-23-2011 12:53 AM

Awesome, this is a great mod!

BirdOPrey5 01-23-2011 03:09 AM

Quote:

Originally Posted by redtailboas (Post 2153169)
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 (Post 2153170)
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 (Post 2153176)
Awesome, this is a great mod!

Thanks. :)

Taurus1 01-23-2011 04:36 AM

Great stuff!! Waiting for 1.2

Thanks.

Theo-zzzz 01-23-2011 12:50 PM

Thanks, I really like the warning notice on top of these old threads.

Dr.osamA 01-24-2011 09:17 AM

1 Attachment(s)
Quote:

Originally Posted by BirdOPrey5 (Post 2153200)
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

BirdOPrey5 01-24-2011 12:47 PM

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.)

Dr.osamA 01-25-2011 12:08 PM

Now it is good

thank you sir

Pvtiste 01-28-2011 10:53 PM

Excellent work man! Thanks for sharing ;)

Trangalleiro 07-10-2011 08:46 PM

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.

BirdOPrey5 07-10-2011 11:24 PM

Quote:

Originally Posted by Trangalleiro (Post 2219076)
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.


All times are GMT. The time now is 05:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01190 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete