vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Add Warning to old Thread (https://vborg.vbsupport.ru/showthread.php?t=255581)

Asterix_ita 12-21-2010 08:55 AM

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

Dr.osamA 12-21-2010 09:05 AM

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

AURFSCAN 12-21-2010 09:35 AM

1 Attachment(s)
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)))) 


Asterix_ita 12-21-2010 11:08 AM

I temporarily removed the verification of the date of edit post

as soon as I fix the bug

thanks

BaanFarsang 12-21-2010 11:16 AM

4.1.1 worked, Thanks for fixed

Leica.Robbiani 12-21-2010 11:32 AM

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.

AURFSCAN 12-21-2010 11:33 AM

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


PHP Code:

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


:up:

AURFSCAN 12-21-2010 11:41 AM

Asterix_ita, change || to &&


PHP Code:

if (($post['dateline'] < (TIMENOW - ($ctwot['oldday'] * 86400))) && ($post['edit_date'] < (TIMENOW - ($ctwot['oldday'] * 86400)))) 


AURFSCAN 12-21-2010 12:00 PM

1 Attachment(s)
Here

Asterix_ita 12-21-2010 12:10 PM

Quote:

Originally Posted by AURFSCAN (Post 2137175)
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


All times are GMT. The time now is 09:34 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.01153 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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