Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add Warning to old Thread Details »»
Add Warning to old Thread
Version: 4.1.4, by Asterix_ita Asterix_ita is offline
Developer Last Online: Jul 2019 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 12-19-2010 Last Update: 12-27-2010 Installs: 73
Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

Description:

Addon allows to identify the thread older than X days. The check is executed only and exclusively on the first post inserted. The hack studied in this way is useful on technical board and for thread referred to guides and tutorial.
For identifying the age, the insertion and last modify dates are checked


Installation:

1. Upload "warning.png" to the "/images/misc" folder on your template.
2. Import product_Warning_old_Thread.xml
3. Configure the hack in vBulletin Options -> CT Warning Old Thread

Template: 2
Phrase: 14
Plugin: 2


Changelog:

4.1.0 started version
4.1.1 removed control over edit post date
4.1.2 add control last modify dates
4.1.3 fix bug class vB_Bootstrap_Forum error
4.1.4 add more template warning (template TW7S by TheWindows7Site) images


Credits Template Code:
I thank TheWindows7Site the creator of the template code (TW7S - [ Information - Tip - Note - Warning ] BBCode)

Future Options:

[S]control last modify dates[/S]

Translations:

Italian language: Collectiontricks
Arabic language - Dr.osamA

Support:
Low priority will be given to posters who do not have this marked as installed

Download Now

File Type: zip product_warning_old_thread_4.1.3.zip (7.2 KB, 78 views)
File Type: zip product_Warning_old_Thread 4_1_4.zip (19.3 KB, 312 views)

Screenshots

File Type: jpg warning 01.jpg (69.0 KB, 0 views)
File Type: jpg warning 02.jpg (74.0 KB, 0 views)
File Type: jpg warning 03.jpg (27.8 KB, 0 views)
File Type: jpg warning 04.jpg (29.7 KB, 0 views)
File Type: png warning 05.png (16.6 KB, 0 views)
File Type: png warning 06.png (14.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-21-2010, 08:55 AM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

CRDeveloper, I'm sorry but this bug had never found in the test, this is very strange because I check on the date of entry post, you may bring a stamp

Thanks

@ Dr.osamA

thanks, updated first post
Reply With Quote
  #13  
Old 12-21-2010, 09:05 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you sir

i think i have same problem as CRDeveloper i havein all threads Warning too even new thread

for test you can look here

alra7ba

user: vBulletin
pass : 123456
Reply With Quote
  #14  
Old 12-21-2010, 09:35 AM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Confirmed bug... shows on all threads, even newly created.

Plugin - Old thread, is this correct code?

PHP Code:
if (($post['dateline'] < (TIMENOW - ($ctwot['oldday'] * 86400)))||($post['edit_date'] < (TIMENOW - ($ctwot['oldday'] * 86400)))) 
Attached Images
File Type: jpg warn.jpg (116.0 KB, 0 views)
Reply With Quote
  #15  
Old 12-21-2010, 11:08 AM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I temporarily removed the verification of the date of edit post

as soon as I fix the bug

thanks
Reply With Quote
  #16  
Old 12-21-2010, 11:16 AM
BaanFarsang's Avatar
BaanFarsang BaanFarsang is offline
 
Join Date: Jan 2010
Location: Thailand
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

4.1.1 worked, Thanks for fixed
Reply With Quote
  #17  
Old 12-21-2010, 11:32 AM
Leica.Robbiani Leica.Robbiani is offline
 
Join Date: Sep 2007
Location: South Germany
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

Quote:
1. Upload "warning.png" to the "/images/misc" folder on your template.
???????????

Where do you have this "warning.png"? I couldn't find any ...

Anyway, great idea, I'll give it a try.

Best regards

L.R.
Reply With Quote
  #18  
Old 12-21-2010, 11:33 AM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Funny, I just found and fixed myself but good job Asterix_ita


PHP Code:
if (($post['dateline'] < (TIMENOW - ($ctwot['oldday'] * 86400)))) 

:up:
Reply With Quote
  #19  
Old 12-21-2010, 11:41 AM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Asterix_ita, change || to &&


PHP Code:
if (($post['dateline'] < (TIMENOW - ($ctwot['oldday'] * 86400))) && ($post['edit_date'] < (TIMENOW - ($ctwot['oldday'] * 86400)))) 
Reply With Quote
  #20  
Old 12-21-2010, 12:00 PM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here
Reply With Quote
  #21  
Old 12-21-2010, 12:10 PM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AURFSCAN View Post
Asterix_ita, change || to &&


PHP Code:
if (($post['dateline'] < (TIMENOW - ($ctwot['oldday'] * 86400))) && ($post['edit_date'] < (TIMENOW - ($ctwot['oldday'] * 86400)))) 
There should be enough, as only now known that the variable $post['edit_date'] is not unix format

I run other tests in order to make it stable
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 07:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05976 seconds
  • Memory Usage 2,357KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_php
  • (2)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
  • (3)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
  • (9)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_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