vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Last Reply Alert: Add last reply alert under new reply button (https://vborg.vbsupport.ru/showthread.php?t=131350)

Ryan McBain 11-12-2006 10:30 PM

Quote:

Originally Posted by calorie (Post 1115738)
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.

Well if you ever get around to it, that would be great. Thanks again for the mod.

tanyeri24 11-12-2006 10:44 PM

great calorie i love you :)

calorie 11-13-2006 01:00 AM

This has now been 'pluginized' so just check the README for upgrade instructions.

Ryan McBain 11-13-2006 03:53 AM

Quote:

Originally Posted by calorie (Post 1115898)
This has now been 'pluginized' so just check the README for upgrade instructions.

Once again thanks. What would have to be done to have the time of the plast reply to be more current? And to include years?

calorie 11-13-2006 03:58 AM

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.

Ryan McBain 11-13-2006 04:17 AM

Quote:

Originally Posted by calorie (Post 1116026)
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.

Awesome. Thank you very much. This should stop people from replying to old threads.

Zia 11-13-2006 06:22 AM

How many query will be added ?

Ryan McBain 11-13-2006 06:23 AM

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

Milez 11-13-2006 08:20 AM

I don't think there will be any queries added with this hack...Calorie?

calorie 11-13-2006 08:22 AM

@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.


All times are GMT. The time now is 11:19 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.01151 seconds
  • Memory Usage 1,729KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete