View Full Version : Miscellaneous Hacks - Prevent bumping old Threads
Andreas
09-24-2005, 10:00 PM
<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
I Love it, thanks Kirby :)
Jenta
09-25-2005, 09:26 AM
nice will check it out soon
suggestion: if u use <img src="$stylevar[imgdir_misc]/exclamation.gif" then u need to upload the same image file for all your styles
better to use images/misc imo
Zelda-King
09-25-2005, 10:00 AM
Interesting. So does this check for the actual age of the thread (that's what it sounds like) or the date since the last reply?
The Realist
09-25-2005, 10:34 AM
The install instructions state:
In Template SHOWTHREAD
FIND
--------------------------------------------------------------------------------
$attachmentoption
Cannot find $attachmentoption in the showthread template but it is listed in two other templates: Newreply and Newthread?
So is this a typo or am I missing something?
Laters
Boofo
09-25-2005, 01:59 PM
I would go with Newreply. ;)
nexialys
09-25-2005, 02:31 PM
I would go with Newthread since this is for threads. ;)sometimes Boofoon, you lead...
this hack is for answering old threads, not to make new ones...
lol
Boofo
09-25-2005, 02:44 PM
Duh! I meant Newreply. Is that better now?
The Realist
09-25-2005, 02:45 PM
LOL :) Thanks m8 but the instructions already say to place the code in there, but it also says`to place it in the showthread template.
But there is no $attachmentoption in showthread only in the newreply template.
hydrostatic
09-25-2005, 02:46 PM
EDIT: Damn I'm tired. Sorry for the stupid question.
jribz
09-25-2005, 02:55 PM
Does this work for the Quick Reply too?I haven't installed this just yet, but the image attached is of the quick reply box, so I would assume so.
Logikos
09-25-2005, 04:23 PM
Nice work Kirby! :)
Freezerator
09-25-2005, 07:34 PM
This should be made a standard for vB :) Nice hack!
Andreas
09-25-2005, 08:34 PM
The install instructions state:
In Template SHOWTHREAD
FIND
--------------------------------------------------------------------------------
$attachmentoption
Cannot find $attachmentoption in the showthread template but it is listed in two other templates: Newreply and Newthread?
DOH! I really should write instructions based on MASTER Templates instead of custom Templates ^.^
Instructions fixed.
@Jenta
But using $stylevar gives you the possibility to use different images in each Style, which is necessary as I fear the defauld image won't work well on dark backgrounds.
@Zelda-King
Last Reply.
"Real" Thread Age doesn't make sense as there might be Threads that are running forever (game threads, spamchat threads, etc.)
ImportPassion
09-26-2005, 12:15 PM
i have been wanting something like this, but how hard would it be to change it so that the reply button is disabled instead of that checkbox?
D
Andreas
09-26-2005, 12:24 PM
It wasn't my intention to lock the Thread, I just wanted to make sure ppl know what they are doing.
If you want to stop them from replying, take a look here (https://vborg.vbsupport.ru/showthread.php?t=82827)
The Realist
09-26-2005, 05:02 PM
Thanks M8 \:)
DOH! I really should write instructions based on MASTER Templates instead of custom Templates ^.^
Instructions fixed.
@Jenta
But using $stylevar gives you the possibility to use different images in each Style, which is necessary as I fear the defauld image won't work well on dark backgrounds.
@Zelda-King
Last Reply.
"Real" Thread Age doesn't make sense as there might be Threads that are running forever (game threads, spamchat threads, etc.)
OmaniMan
09-27-2005, 02:33 PM
Great ...
utw-Mephisto
09-27-2005, 05:42 PM
*clicks install now,installs later* - thanks m8
-=Sniper=-
10-24-2005, 04:36 PM
excellent thanks
StarBuG
10-30-2005, 12:20 AM
If quickreply is active you can still reply to very old threads which gets denied if you click on the reply button.
That should be fixed ;)
Dave Rosteck
11-06-2005, 12:25 AM
This hack kicks serious ass. Thanks a lot Kirby! My forum staff and I have been struggling with bumps for years and this is a big sigh of relief.
Andreas
11-06-2005, 12:42 AM
@StarBug
Hmm ... QR should be covered as well.
Are you sure that it does not work for QR?
StarBuG
12-14-2005, 07:53 AM
I don?t know what happened as I posted this but I can?t reproduce this.
Maybe I forgot to check the checkbox and got confused ;)
It is working fine.
Thank you
Exernon
12-14-2005, 01:33 PM
Installed on 3.5.2 but I don't see anything... any clue what could be wrong?
boatdesign
12-16-2005, 10:29 PM
Excellent!!! Thank you very much for providing this mod! Very very nice!
lazyseller
01-10-2006, 05:30 PM
is there anyway to limit this to only certain forums ?
JenniferK
02-19-2006, 05:35 AM
How would I change the phrase from "solves no purpose" to "serves no purpose"?
hiiped
02-19-2006, 06:24 PM
How would I change the phrase from "solves no purpose" to "serves no purpose"?
PHRASE MANAGER >>> search >>>
possibly
Oblivion Knight
02-19-2006, 08:23 PM
I can't believe I missed this one! o_o;
Cheers Andreas! :)
Oblivion Knight
02-21-2006, 06:59 PM
Just to note, I've noticed a small typo with the template edits:
<label for="cb_forepost"><input type="checkbox" name="forcepost" value="1" id="cb_forcepost" />$vbphrase[thread_age_accepted]</label>
Andreas
02-21-2006, 07:03 PM
Seems like there is a c missing ;)
JenniferK
02-27-2006, 01:12 AM
PHRASE MANAGER >>> search >>>
possibly
This worked like a charm, thanks!
Nathan2006
03-20-2006, 09:10 AM
Thank you Andreas great idea :)
Install
OndaReal
03-20-2006, 02:07 PM
nice hack :)
bada_bing
03-20-2006, 02:18 PM
Couple questions.
Will this work on vb 3.5.3?
Can I set this hack for only certain forums? Im interested mostly in my selling/trading forums?
Thanks and nice hack :banana:
dsotmoon
03-21-2006, 07:47 PM
Couple questions.
Will this work on vb 3.5.3?
Can I set this hack for only certain forums? Im interested mostly in my selling/trading forums?
i would like the same thing if possible
Andreas
03-23-2006, 03:46 AM
> Will this work on vb 3.5.3?
Yes.
> Can I set this hack for only certain forums?
No.
Liquid_N2
04-17-2006, 09:26 PM
Hi sorry if this has been answered, but on my forum it says
This Thread is more than 34 days old
This changes depending on how old the thread is apposed to the age limit I have set in the vbpanel.
Is there a way to change it so it always says old then 30 days (my value set)?
Many thanks
Oblivion Knight
04-18-2006, 09:46 AM
Hi sorry if this has been answered, but on my forum it says
This Thread is more than 34 days old
This changes depending on how old the thread is apposed to the age limit I have set in the vbpanel.
Is there a way to change it so it always says old then 30 days (my value set)?
Many thanksOn both of your template edits, replace this:
<phrase 1="$threaddays">With:
<phrase 1="$vboptions[oldthrdthres]">Save them both, and you're done.
Liquid_N2
04-18-2006, 10:58 AM
Thank you very much for the quick reply, I will try that later today.
Thomas P
07-17-2006, 05:52 PM
Very useful hack.
Especially for bigger boards, when members are annoyed that user bump rather old threads.
5 Star rating from me, very well done, Andreas :)
I||usi0nz
07-31-2006, 04:21 PM
cool thing, thanks kirby :)
Zelos
08-02-2006, 04:28 AM
Will this work in 3.6?
Also, how would I alter the message?
Zelos
09-03-2006, 04:34 AM
Does this work with 3.6?
EDIT: nvm, it does.
Red Spider
12-29-2006, 09:49 AM
Excellent! Works a treat on vB 3.6.4
Just a quick question, Is there a way to make this only appear in certian forums? Like i want it to appear in my "Introductions" forum, But not my "Media" forum :D
Spun2U
12-31-2006, 06:37 PM
Thanks for this!! Very useful!:cool:
Caiman
01-17-2007, 05:07 PM
This is perfect. thanks very much.
arlarson
10-09-2007, 08:50 PM
Yes, it will.
YdieresiS
01-16-2008, 09:11 PM
You said that the option to disable the hack in certain forums is not available now. Can we suspect this in the future? I really would like this feature to be added to this hack.
Excuse me if my english is not so very well, i am from Holland and didn't use English a whole time
Bubble #5
02-15-2008, 05:49 PM
Has anyone tested this on 3.7 yet? :confused:
Boofo
02-15-2008, 08:06 PM
Has anyone tested this on 3.7 yet? :confused:
The easiest way to find out is grab it and try it.
And it works magically in 3.7.0 beta 5. ;)
Bubble #5
02-15-2008, 10:02 PM
Ohh.... beta 5 is out? :eek: That makes my day :D
Boofo
02-15-2008, 11:54 PM
You got to check the com more often. ;)
Bubble #5
02-16-2008, 12:38 AM
Yeah, women tell me that all the time :eek: :D
Freezerator
02-25-2008, 12:49 PM
Does this work on thread last post date, or the thread start date?
Boofo
02-25-2008, 12:58 PM
Last post date
bada_bing
02-28-2008, 02:41 AM
Can you set the time from that the users will see this message, example the screen shot show 15 days can you set it for less or more time like 30 days?
Boofo
02-28-2008, 03:08 AM
Yoi can set it for however many days you want.
bada_bing
02-28-2008, 06:43 PM
Can you also set which forums this works on? For example I dont want to to take effect in my admin forums but all other forums?
Boofo
02-28-2008, 07:29 PM
Nope, you can only set the time limit.
Dannyloski
04-15-2008, 11:10 PM
Installed, working perfectly on vB 3.6.9 ... Great addon ...
FlyBoy73
04-26-2008, 06:20 PM
Any plans to update this to work with 3.7x?
Has anyone tried running it on 3.7?
Thanks!
Boofo
04-26-2008, 06:33 PM
Any plans to update this to work with 3.7x?
Has anyone tried running it on 3.7?
Thanks!
No need to and yes. ;)
FlyBoy73
04-26-2008, 09:10 PM
Thanks for the info, Boofo!
Dannyloski
04-27-2008, 12:42 AM
Works on 3.6.10 as well, just FYI :up:
dtv100
04-28-2008, 02:00 AM
test on 3.6.10 and is working so far .
Boofo
05-02-2008, 01:01 AM
Working on 3.7 Gold like a charm. I made a few changes that I think spruce it up.
guvner
06-10-2008, 03:17 AM
Working on 3.7 Gold like a charm. Confirmed on 3.7.1 - love this hack!
Mike :)
Mecho
06-12-2008, 09:41 AM
is there any option that we can set the forum ID(s) ??
thanks
gabrielt
08-24-2008, 07:46 PM
Works like a charm on vBulletin 3.7.2.
Gabriel.
FlyBoy73
08-26-2008, 04:22 AM
Working on 3.7 Gold like a charm. I made a few changes that I think spruce it up.
Thanks!!
satlazone
02-12-2009, 07:19 AM
Installed ;)
fattony69
02-27-2009, 04:10 AM
This is exactly what I am looking for and works for 3.8.1
vithorius
04-22-2009, 08:55 AM
Wooow...! Lovely Mod!
I have two questions:
a) Is it possible to enable this hack on some given forums of my board (and not all forums)? (possibly using the "Manage Forums" on AdminCP)?
b) How do you set up the time limit?
Can you also set which forums this works on? For example I dont want to to take effect in my admin forums but all other forums?
YESS! That is just what I would like to have too!!!
Nope, you can only set the time limit.
Doh...!!! Ok, I would like to ask the developer if you could make it possible, please...?
is there any option that we can set the forum ID(s) ??
Ok, so I'm not the only one...! :p
PLEASE...?
Hi Andreas,
came a TMS Version of this Hack Out :)
Andreas
05-02-2009, 12:01 PM
Feel free to post your TMS XML and i'll re-attach it to the first post :)
alishahbazi
05-31-2009, 04:46 AM
thank u ...
alishahbazi
06-06-2009, 05:03 PM
hi , thank u for this mods.
please guide me for change date , default date is 506 and must change this date.
Black Tiger
09-15-2009, 09:30 PM
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*
I got this working for vB4 - if Andreas doesn't mind me posting...
In Template SHOWTHREAD
FIND
<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
{vb:raw posticons}
BELOW both locations ADD
<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:
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
if (($threaddays = ceil((TIMENOW-$threadinfo['lastpost'])/86400)) > $vbulletin->options['oldthrdthres'])
{
$show['oldthreadwarning'] = true;
vB_Template::preRegister('SHOWTHREAD', array('threaddays' => $threaddays));
}
Extra PC
01-31-2010, 01:30 PM
I got this working for vB4 - if Andreas doesn't mind me posting...
In Template SHOWTHREAD
FIND
<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
{vb:raw posticons}
BELOW both locations ADD
<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:
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
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:
Alecsmith
02-03-2010, 07:38 AM
great just installed :)
CPB123
02-17-2010, 10:19 AM
Installed, loving it so far.. howevr, as mentioned by others, would be great to limit this to just certain forums.
Fantastic, installed. Thanks!
vithorius
02-17-2010, 02:17 PM
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... :p
Would that be difficult to do? :confused:
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
satlazone
03-20-2010, 06:43 PM
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.
Thanks satlazone, I clearly didn't RTFM :) My bad.
Cheers!
SorentoUltimate
03-20-2010, 08:19 PM
Work Perfect in 3.8.4
ZomgStuff
03-31-2010, 03:21 PM
Thank you so much! This is perfect!
Goomzee
05-11-2010, 05:32 AM
I done but it's not working see here (http://www.mknexusonline.com/forums/showthread.php?t=83)
marshal_ramdev
05-15-2010, 06:44 PM
thanks ..
BirdOPrey5
08-17-2010, 12:03 PM
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:
<!-- 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:
<!-- / 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."
MarceloS
04-29-2011, 11:58 AM
Does it work on vb4?
BirdOPrey5
04-29-2011, 11:40 PM
Does it work on vb4?
See post #82 in this thread for VB4 instructions.
I got this working for vB4 - if Andreas doesn't mind me posting...
In Template SHOWTHREAD
FIND
<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
{vb:raw posticons}
BELOW both locations ADD
<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:
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
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 ... :mad:
vBNinja
03-01-2012, 04:16 AM
Can anyone getthis to work with vb 4.1.10?
Abdullah SZ
04-08-2012, 01:08 PM
Perfect with V 3.8.7 :up:
I have combined the mod with "BirdOPrey5" mod. (https://vborg.vbsupport.ru/showpost.php?p=2085221&postcount=95)
This is what I got :D
satlazone
04-14-2012, 10:39 AM
I need it for vb4.1.12
and not working with new editor
can anyone fix it?
www.nofal
09-10-2012, 11:43 PM
Good Work
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.