![]() |
Last Reply Alert: Add last reply alert under new reply button
Last Reply Alert: Add last reply alert under new reply button
The alert warns members that the thread is days, weeks, months, or years old. You can set when the alert first starts to show. See screenshots. Import one product. Edit one template. That's it. Enjoy! |
great idea........
|
love it.....thanks ;)
|
BTW what would I have to do so its in more detail? As of right now, the oldest post makes the hack say more than 2 months. What would I have to do to make it say for example more than 3 months, 4 months, 5 months ect. Also can it also include years? I have people on my board that sometimes reply to really old threads
|
Nice hack but I agree with the post above. Installed.
|
Probably a silly question, but what's the default age of the last reply required to show the phrase?
|
At one week it starts to show. It has one week, two weeks, one month, and two months. More can be added, but at that point it should probably be a plugin, so to avoid the big if-else bit in a template. Maybe I'll do it later.
|
So if I only wanted the two month notification, the only conditional in there would be just '60 * 86400', correct? (Or am I horrible at math? :D)
|
If you only want two months, use this in the template:
Code:
<if condition="$show[closethread] AND (TIMENOW - $thread[lastpost] > 60 * 86400)"> |
Thanks much. :D
|
Quote:
|
great calorie i love you :)
|
This has now been 'pluginized' so just check the README for upgrade instructions.
|
Quote:
|
Go to 'Last Reply Alert' in vB Options to make the alert appear ealier. Days, weeks, months, and years are automatically done for you in the product.
|
Quote:
|
How many query will be added ?
|
If you choose to update this I have an idea.
When the last reply comes out at a week, month or a year exactly, it always shows more than a week month year ect. My idea would be to show that it has been a week, month or year since the last reply rather than more when its the exact time. Just a thought. Once again thanks |
I don't think there will be any queries added with this hack...Calorie?
|
@Zia: None.
@Ryan McBain: Thanks, 'more than' seemed to fit, as exact is only exact for the second, unless of course you're looking at days on the whole. Also, there's going to be a bit of rounding here and there, as it uses 86400 seconds for day, 7 days for week, 30 days for month, 365 days for year, obviously not accounting for leap seconds, months with 28 or 31 days, leap years, etcetera. To be more precise, it'd probably be better then to report the actual date and time of the last post rather than output an 'X whatever ago' message. If you want to have the date and time, just reimport the product and set the 'Text Format' setting to no. @Milez: Correct. |
Great idea! Thanks. ;)
|
Thanks Calorie! Very creative idea. I love it, thanks! :up:
|
Sounds nice, is it phrased?
works perfect, thanks :) |
thanks man I like it
( Installed ) |
If you want to add this to the bottom reply button too, find in SHOWTHREAD
<a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a> and before add <if condition="$show[closethread] AND $last_reply_alert_phrase"><span class="highlight">$last_reply_alert_phrase</span></if> |
there are 2 make sure u use the first one.... if u use the second, than it will show as below the post...
|
Just to say again, this is a great mod.
People replying to old posts dropped dramatically in my forums. vb should be a similar default feature. |
Old topic, I know... but it's what I was looking for. :) I added it along with the modification to show with the bottom Add Reply button, but the phrase "Attention: Last reply in this thread was more than 11 Months ago" pushes the add reply button to the right instead of showing above (or below) it... I don't know any code to resolve this... I'm adding a bit of the code before and after... Thanks to anyone with suggestions :)
Andrew Code:
<!-- start content table --> |
Anyone know if this still works on 3.8 RC1?
|
3.8?
|
All times are GMT. The time now is 06:34 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|