vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Inactive thread warning (https://vborg.vbsupport.ru/showthread.php?t=170784)

waza 02-16-2008 10:00 PM

Inactive thread warning
 
Hey,

This is a very little but quite useful mod.

Everybody has already experienced that some thread that has been inactive for months is brought back to the foreground by somebody who has found the thread accidentally (by google or something).

Well, with this mod I try to stop that by giving a warning when a thread has been inactive for x days (configurable).

Don't forget to click install.

This mod should work on every vb from 3.5 and up.

Forum Lover 02-18-2008 05:17 AM

Did anybody try this at 3.7 beta 5 ?

waza 02-18-2008 06:15 AM

@forum lover: jup, it works on vb 3.5.x, 3.6.x and 3.7.x .

thincom2000 02-18-2008 09:11 PM

Yeah, I actually just discussed the issue of old threads with one of our other admins this weekend. We agreed that we liked this about vBulletin than other forum solutions, that there is no discrimination of old threads. We like to keep old threads alive on our site, and on our old software it became annoying to keep reminding our members to check boxes to show posts that were more than 30 days old. That and vbPlaza were the main reasons were switched to vBulletin. Unfortunately vbPlaza is currently unusable...

That said, it's still nice to see a feature our admins haven't come in contact with since our switch to vBulletin two years ago. Good work!

Nathan2006 03-03-2008 06:48 AM

Thnk you waza

Install :)

Konstantinos 03-08-2008 09:52 PM

this is cool but it whould be cool if the warning is not displayed on sticky and closed threads. any idea how ?

Konstantinos 03-09-2008 03:50 PM

Quote:

Originally Posted by Konstantinos (Post 1460302)
this is cool but it whould be cool if the warning is not displayed on sticky and closed threads. any idea how ?

guess this worked

Code:

<!-- Inactive thread warning start -->
<if condition="$show['oldthread']">
<if condition="$thread['sticky'] != 1">
<if condition="$show['closethread']">
        <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
        <tr>
                <td align="center" style="background-color:#DEF3BD;color:black" width="100%"><span class="smallfont"><strong>$vbphrase[oldthread_warning]:</strong>&nbsp; <phrase 1="$vboptions[oldthread_days]">$vbphrase[oldthread_warning_message]</phrase></span></td>

        </tr>
        </table>
</if>
</if>
</if>
<!-- Inactive thread warning stop -->


Mr saleki 03-31-2008 10:02 PM

good job ... tanx


All times are GMT. The time now is 12:56 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.01083 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete