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)

calorie 11-11-2006 10:00 PM

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!


hotwheels 11-12-2006 04:11 PM

great idea........

Ryan McBain 11-12-2006 05:09 PM

love it.....thanks ;)

Ryan McBain 11-12-2006 05:27 PM

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

Milez 11-12-2006 05:34 PM

Nice hack but I agree with the post above. Installed.

Guest210212002 11-12-2006 09:27 PM

Probably a silly question, but what's the default age of the last reply required to show the phrase?

calorie 11-12-2006 09:37 PM

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.

Guest210212002 11-12-2006 09:39 PM

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)

calorie 11-12-2006 09:43 PM

If you only want two months, use this in the template:
Code:

                <if condition="$show[closethread] AND (TIMENOW - $thread[lastpost] > 60 * 86400)">
                        <span class="highlight"><br /><phrase 1="2" 2="$vbphrase[months]">$vbphrase[attention_last_reply_in_this_thread_was_more_than_x_y_ago]</phrase></span>
                </if>


Guest210212002 11-12-2006 09:44 PM

Thanks much. :D


All times are GMT. The time now is 09:41 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.00974 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_code_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