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-19-2010 10:00 PM

Add Warning to old Thread
 
1 Attachment(s)
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

mitch84 12-20-2010 11:40 AM

great idea! thank you

Merjawy 12-20-2010 08:52 PM

Right on..

I hate it when ppl reply to a 200 years old thread, sometimes asking stuff :)

Thanks

AURFSCAN 12-21-2010 12:23 AM

1 Attachment(s)
This is great.. thx

With a slight template and phrase change, this is neat.

I use this in conjuction with 'Dont bump old threads' mod. https://vborg.vbsupport.ru/showthrea...hlight=bumping



:)

Supramania 12-21-2010 01:46 AM

I just installed on a 4.1.0 and even with this enabled I'm not seeing any changes in the threads.

The AdminCP stuff is there (and enabled).

Any ideas where to start troubleshooting?

CRDeveloper 12-21-2010 05:10 AM

I just installed on 4.1.0 and everything is working fine!

I think that maybe an option to add this to the very last post will be good too, maybe as an option???

CRDeveloper 12-21-2010 05:13 AM

Also what about this warning only on really inactive threads, for me its ok to bump a 6 year old thread lol but at least they must see the warning.

Asterix_ita 12-21-2010 06:41 AM

Quote:

I hate it when ppl reply to a 200 years old thread, sometimes asking stuff
attention is a simple warning, there are other addons that allow nodump


Quote:

With a slight template and phrase change, this is neat.
I am aware that I used bad English :P


@ Supramania
The addon adds text to the message, do you have selected the forum in the options?


@ CRDeveloper
Quote:

I think that maybe an option to add this to the very last post will be good too, maybe as an option???
is possible, but this is not no bump hack.

The addon has the function to inform users that the content of the post is old and may no longer be true

there is Prevent bumping old Threads for vb4 https://vborg.vbsupport.ru/showpost....5&postcount=82

CRDeveloper 12-21-2010 08:26 AM

Well i was testing another mod and created a new thread, i have set this up to 90 days (actually i didnt even change the default setting) and in the new thread this warning pop up!!!

WTH??

Dr.osamA 12-21-2010 08:34 AM

1 Attachment(s)
Excellent = 5 stars

installed

translated to Arabic , plzz be nice and add the XML file to 1st. orignal post

--------
update XML file after fixing it => it is now for version 4.1.4

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

Dr.osamA 12-21-2010 06:40 PM

Now it is ok

thank you bro

Asterix_ita 12-22-2010 06:21 AM

In version 4.1.2 was reintroduced last modified date checking.

waiting your feedback on the correct control

thanks

BaanFarsang 12-22-2010 01:24 PM

When click on puplished topic at VBCM

Fatal error: Cannot redeclare class vB_Bootstrap_Forum in /home/xxx/domains/xxx.com/public_html/includes/class_bootstrap.php on line 1619

on 4.1.2

Asterix_ita 12-22-2010 04:03 PM

1 Attachment(s)
I did some tests with the vb suite, and I can not reproduce the error.

I created a new article, and I have promoted a post and in both situations everything went through.

I have the test run on vb 4.1.0 suite

Edit

Tell me if you solve the problem with this version

blake247 12-22-2010 05:21 PM

Installed. Thanks!

BaanFarsang 12-22-2010 09:42 PM

Quote:

Originally Posted by Asterix_ita (Post 2137697)
I did some tests with the vb suite, and I can not reproduce the error.

I created a new article, and I have promoted a post and in both situations everything went through.

I have the test run on vb 4.1.0 suite

Edit

Tell me if you solve the problem with this version

Yes, this version (4.1.3) have no errors in 4.10 suite at VBCM, also disappear warning after last edited

AURFSCAN 12-22-2010 11:37 PM

4.1.2 seems to work fine.

edit: bootstrap error cms

Dr.osamA 12-23-2010 01:59 AM

thank you agaen bro

working very good

AURFSCAN 12-23-2010 10:53 PM

Cannot redeclare class vB_Bootstrap_Forum error

410 ok
411 ok
412 error

post24 file ok

Dr.osamA 12-25-2010 10:23 AM

thank you for update

Asterix_ita 12-28-2010 06:20 PM

1 Attachment(s)
4.1.4 add more template

venom2124 12-29-2010 12:16 AM

Will this automatically remove the warning if someone does post in the thread after the warning has been applied?

Asterix_ita 12-29-2010 03:50 AM

As described in the presentation control is performed only on the first post, the subsequent responses are not taken into consideration.

This addon will be testing the goodness of the information of 1 post, which is why it is useful to guide/tutorial thread

Dr.osamA 12-29-2010 08:57 AM

thank you for update bro

nice work

i update translation to ( Arabic XML )

poita 01-09-2011 11:06 AM

1 Attachment(s)
Hi there,

I have everything installed as per instructions, the text works fine.

However the icon does not appear.

Looking at the sites source code the location of the image does not match up with the upload instructions.

Maybe I am doing something wrong, I'm not sure.

Forgive me if it's something simple, I'm only new at this.

Below is the path shown in the pages source

poita 01-09-2011 11:45 AM

after a little trial and error I have it working now :)

Cheers

RedDevil 06-07-2011 10:25 AM

Nice installed, could do with the option to add to last post as well if possible

silverf0x 09-08-2011 04:32 AM

nice mod, had it installed on my forum

but would like to have that option, to show the warning on the last post

BadgerDog 09-08-2011 10:27 AM

Installed with thanks ... :)

Unfortunately, it can be confusing as it seems to key off the original post date and not the most recent post's date?

Even if a thread for information was started years ago, if the most current information posted is just weeks old, shouldn't it being keying of that latter date and not the original post date?

At worst, perhaps an option to check off either of those would be great ...

Regards,
Doug

fritz_0815 11-14-2011 04:56 PM

Find the option for the last thread too
Who can help
Great Mod


All times are GMT. The time now is 05:03 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.02569 seconds
  • Memory Usage 1,826KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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