Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Prevent bumping old Threads Details »»
Prevent bumping old Threads
Version: 1.0.0, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.5.4 Rating:
Released: 09-24-2005 Last Update: 02-20-2006 Installs: 238
Uses Plugins Template Edits
Additional Files  
No support by the author.

<font size="3">Prevent bumping old Threads</font>

Description
This Hack helps to prevent Users from (accidently) bumping old Threads by forcing them to tick a checkbox
when replying to a Thread older than x days.

Details
1 Product XML (3 Plugins, 6 Phrases, 1 Setting)
1 Image
2 Template Edits

History
1.0.0
Initial Version

1.0.1
Fixed a bad phrase (solves -> serves, which it should have always been)
Fixed a typo in the instructions

vBulletin Campatibility Note
This Modification is compatible with vBulletin 3.5, 3.6, 3.7 and 3.8

Download Now

File Type: zip antioldthrd.zip (3.4 KB, 1228 views)

Screenshots

File Type: png oldthrdwarn.png (41.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 03-20-2010, 08:19 PM
SorentoUltimate's Avatar
SorentoUltimate SorentoUltimate is offline
 
Join Date: Jul 2009
Location: Moschato, Athens, Greece
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work Perfect in 3.8.4
Reply With Quote
  #93  
Old 03-31-2010, 03:21 PM
ZomgStuff ZomgStuff is offline
 
Join Date: Feb 2007
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much! This is perfect!
Reply With Quote
  #94  
Old 05-11-2010, 05:32 AM
Goomzee Goomzee is offline
 
Join Date: Apr 2008
Location: Philippines
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I done but it's not working see here
Reply With Quote
  #95  
Old 05-15-2010, 06:44 PM
marshal_ramdev marshal_ramdev is offline
 
Join Date: Mar 2009
Location: Ludhiana
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks ..
Reply With Quote
  #96  
Old 08-17-2010, 12:03 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool mod. :up:

I've got it working on 3.8.6 without issue... I changed it a bit to only show a message at the top of the thread instead of requiring a box to be clicked before replying- I feel the warning on top is more important.

Follow the install instructions but the only template edit to make is in showthread.

Add:
Code:
<!-- Old Thread Warning -->
<if condition="$show['oldthreadwarning']">
<table bgcolor="#FFC0C0" border="1" width="100%" cellpadding="3"><tr><td>
<div align="center">
<img src="/forums/images/buttons/report.gif" align="top" alt="Exclamation" /><phrase 1="$threaddays">$vbphrase[thread_x_days_old]</phrase>
</div>
</td></tr></table>
</if>
<!-- End Old Thread Warning -->
Above:
Code:
<!-- / controls above postbits -->
Edit the Phrase and Image to your needs.

Also disable all plugins related to this mod except "Prevent old Thread bumping: Warning Display on Quickreply."
Attached Images
File Type: jpg ss_oldthreadwarning.jpg (174.2 KB, 0 views)
Reply With Quote
  #97  
Old 04-29-2011, 11:58 AM
MarceloS MarceloS is offline
 
Join Date: Aug 2008
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it work on vb4?
Reply With Quote
  #98  
Old 04-29-2011, 11:40 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 MarceloS View Post
Does it work on vb4?
See post #82 in this thread for VB4 instructions.
Reply With Quote
  #99  
Old 08-08-2011, 10:34 AM
orok orok is offline
 
Join Date: Jun 2005
Location: Gaza
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eric View Post
I got this working for vB4 - if Andreas doesn't mind me posting...

In Template SHOWTHREAD

FIND
PHP Code:
        <vb:if condition="$bbuserinfo['signature']">
        <
div class="blockrow">
            <
ul class="checkradio group">
                <
li><label for="cb_signature">
                    <
input type="checkbox" name="signature" id="cb_signature" value="1" checked="checked" tabindex="1" />
                    {
vb:rawphrase show_your_signature}
                </
label></li>
            </
ul>
        </
div>
        </
vb:if> 
In Template newreply

FIND
PHP Code:
        {vb:raw posticons
BELOW both locations ADD
PHP Code:
    <vb:if condition="$show['oldthreadwarning']">
    <
h3 class="blocksubhead">{vb:rawphrase old_thread_warning}</h3>
    <
div class="blockrow">
        <
img src="{vb:stylevar imgdir_misc}/exclamation.gif" align="left" width="40" height="42" alt="" />{vb:rawphrase thread_x_days_old, {vb:raw threaddays}}
    </
div>

    <
div class="blockrow">
        <
ul class="checkradio group">
            <
li><label for="cb_forcepost">
                <
input type="checkbox" name="forcepost" id="cb_forcepost" value="1" checked="checked" tabindex="1" />
                {
vb:rawphrase thread_age_accepted}
            </
label></li>
        </
ul>
    </
div>
   </
vb:if> 
Edit two plugins for this product.

1.) "Prevent old Thread bumping: Warning Display on Quickreply" - for hook showthread_start

Change it to:
PHP Code:
if (($threaddays ceil((TIMENOW-$threadinfo['lastpost'])/86400)) > $vbulletin->options['oldthrdthres'])
{
    
$show['oldthreadwarning'] = true;
    
vB_Template::preRegister('SHOWTHREAD', array('threaddays' => $threaddays));

2.) "Prevent old Thread bumping: Warning Display on Newreply" - for hook newreply_form_start
PHP Code:
if (($threaddays ceil((TIMENOW-$threadinfo['lastpost'])/86400)) > $vbulletin->options['oldthrdthres'])
{
    
$show['oldthreadwarning'] = true;
    
vB_Template::preRegister('SHOWTHREAD', array('threaddays' => $threaddays));

not working with the new editor ...
Reply With Quote
  #100  
Old 03-01-2012, 04:16 AM
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
Location: USA
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone getthis to work with vb 4.1.10?
Reply With Quote
  #101  
Old 04-08-2012, 01:08 PM
Abdullah SZ Abdullah SZ is offline
 
Join Date: Mar 2008
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect with V 3.8.7 :up:

I have combined the mod with "BirdOPrey5" mod.

This is what I got
Attached Images
File Type: jpg e1.jpg (26.2 KB, 0 views)
File Type: jpg e2.jpg (56.4 KB, 0 views)
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:30 AM.


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.07316 seconds
  • Memory Usage 2,368KB
  • 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
  • (2)bbcode_code
  • (5)bbcode_php
  • (2)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
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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