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
  #82  
Old 09-15-2009, 09:30 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OMG, a mod already 3 years old and still working? This is great, I really need this. Why did I not see this before?
You're the man Andreas. TMS was also such very needed hack which should also be standard build in.

Thank you!
*Marked installed*
Reply With Quote
  #83  
Old 01-31-2010, 05:15 AM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Reply With Quote
  #84  
Old 01-31-2010, 01:30 PM
Extra PC Extra PC is offline
 
Join Date: Dec 2009
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SecondV 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));


nice but we need this in xml to easy import

please Mr. Andreas we need your mod on vb 4:up:
Reply With Quote
  #85  
Old 02-03-2010, 07:38 AM
Alecsmith Alecsmith is offline
 
Join Date: Sep 2009
Location: Still On Earth
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great just installed
Reply With Quote
  #86  
Old 02-17-2010, 10:19 AM
CPB123 CPB123 is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, loving it so far.. howevr, as mentioned by others, would be great to limit this to just certain forums.
Reply With Quote
  #87  
Old 02-17-2010, 02:17 PM
jrap jrap is offline
 
Join Date: Jan 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fantastic, installed. Thanks!
Reply With Quote
  #88  
Old 02-17-2010, 02:17 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CPB123 View Post
Installed, loving it so far.. howevr, as mentioned by others, would be great to limit this to just certain forums.
Yeah! :up: :up: I feel just the same! GREAT HACK, but...

On some forums, we should have the possibility to disable this hack...

Would that be difficult to do?
Reply With Quote
  #89  
Old 03-20-2010, 06:35 PM
jrap jrap is offline
 
Join Date: Jan 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any idea why instead of prompting the user to tick the checkbox, my users just see the error message "This Thread is more than XX days old, you can't reply to it." ?

Thanks
Reply With Quote
  #90  
Old 03-20-2010, 06:43 PM
satlazone satlazone is offline
 
Join Date: Mar 2008
Location: Israel
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jrap View Post
Any idea why instead of prompting the user to tick the checkbox, my users just see the error message "This Thread is more than XX days old, you can't reply to it." ?

Thanks
did you modify the templates? this modfication doesn't call a template and you have to insert the code yourself.
Reply With Quote
  #91  
Old 03-20-2010, 06:58 PM
jrap jrap is offline
 
Join Date: Jan 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks satlazone, I clearly didn't RTFM My bad.

Cheers!
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 03:52 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.05100 seconds
  • Memory Usage 2,391KB
  • Queries Executed 28 (?)
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
  • (10)bbcode_php
  • (3)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
  • (4)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
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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