PDA

View Full Version : Show Thread Enhancements - Add Warning to old Thread


Asterix_ita
12-19-2010, 10:00 PM
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 (https://vborg.vbsupport.ru/showpost.php?p=2140266&postcount=31)


Credits Template Code:
I thank TheWindows7Site (https://vborg.vbsupport.ru/member.php?u=343597) the creator of the template code (TW7S - [ Information - Tip - Note - Warning ] BBCode)

Future Options:

control last modify dates

Translations:

Italian language: Collectiontricks (http://www.collectiontricks.it/vbulletin-4-traduzione-ct-warning-old-thread-41.html)
Arabic language - Dr.osamA (https://vborg.vbsupport.ru/showpost.php?p=2137134&postcount=10)

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
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/showthread.php?t=240880&highlight=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
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


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
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.php?p=1971015&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
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 (http://www.alra7ba.info/vb/t40029.html)

user: vBulletin
pass : 123456

AURFSCAN
12-21-2010, 09:35 AM
Confirmed bug... shows on all threads, even newly created.

Plugin - Old thread, is this correct 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,

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


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


:up:

AURFSCAN
12-21-2010, 11:41 AM
Asterix_ita, change || to &&


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

AURFSCAN
12-21-2010, 12:00 PM
Here

Asterix_ita
12-21-2010, 12:10 PM
Asterix_ita, change || to &&


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
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
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
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 (https://vborg.vbsupport.ru/showpost.php?p=2137134&postcount=10) )

poita
01-09-2011, 11:06 AM
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

1F42
10-12-2012, 07:20 AM
I searched in 3.8 mods only and this came up, so I guess I have to ask if idt does work with 3.8.7?

Wajdan
10-13-2012, 06:37 PM
Ca someone update this MOD? Please confirm if it works on 4.2 ?

Asterix_ita
10-14-2012, 02:27 PM
Please confirm if it works on 4.2 ?

what problems did you find ?

it works fine for me

does work with 3.8.7

It doesn't work to VB3

Fatal Hazard
12-13-2012, 06:50 PM
Thank you

Fields
07-20-2014, 04:40 PM
Great mod! Installed, rated with 5 stars and MOTM!

I would like to display the warning only for a specific usergroup and if the thread has a specific prefix, what do I need to add to get this working?

Asterix_ita
07-23-2014, 05:36 PM
Unfortunately now I have very little free time for this change

Fields
07-24-2014, 11:18 AM
No problem, until now I got it working to be visible to a specific usergroup :)

ForceHSS
07-24-2014, 11:57 AM
Fixed a few things in the code myself but took two days doing it did not want to over do it

aminp30
07-31-2014, 07:14 AM
Hi dear asterix

thanks for your excellent mod. Installed and 5stars.

does it possible to change days to exact date?

I mean instead of number of days to show warning, use an exact date.

Asterix_ita
07-31-2014, 05:19 PM
what date will you like to show ?

regards

aminp30
08-01-2014, 07:26 AM
what date will you like to show ?

regards

thanks for reply Asterix_ita

for example : 08/01/2013

Black Snow
09-16-2014, 08:17 AM
This doesn't show up on my custom theme by PurevB. It shows up on the default theme. What hook is it using on postbit_legacy? Can I manually add it to my theme/template?

Asterix_ita
09-20-2014, 08:01 AM
Sorry for the delay

I do not use hooks, I add text to the variable $post['message'].

Regards

aminp30
09-21-2014, 07:28 PM
Sorry for the delay

I do not use hooks, I add text to the variable $post['message'].

Regards


do you have any idea for my problem dear Asterix_ita?:confused:

stevieb
10-07-2014, 07:48 PM
Is there any way you can display it under the breadcrumbs at the top (just under the forum drop down links) instead of only in the first post as people don't always read the first post....

Otherwise, it's a great mod :)

thetechgenius
10-10-2014, 05:27 AM
I like this addon, but I would like to move it below the posts in the thread. Is this possible? I have tried using a different hook location, but when I do, it gives me a blank white page when I refresh.

I would like to move the Warning Message from the first post, to below the posts, above the quick reply box and "reply to thread" button.

stevieb
10-19-2014, 08:36 PM
Also I've noticed once the alert appears on a thread, if that thread subsequently gets a reply (thus meaning it's no longer +365 days old) the alerts in post 1 of the thread remains. It shouldn't as the thread is no longer old.

Asterix_ita
10-20-2014, 08:11 AM
Sorry if I have not answered before, but I had some problems.
In the next days I see to analyze requests

Regards

Edit

for stevieb: on first post are writed "The check is executed only and exclusively on the first post inserted"

stevieb
10-20-2014, 02:07 PM
on first post are writed "The check is executed only and exclusively on the first post inserted"So if an old thread gets updated with a new reply the warning stays? In which case what's the point of having it because the thread won't actually be "old" anymore, if it's been updated with a reply...

ForceHSS
10-20-2014, 09:25 PM
So if an old thread gets updated with a new reply the warning stays? In which case what's the point of having it because the thread won't actually be "old" anymore, if it's been updated with a reply...

It goes by the first post date not the last

Stratis
08-20-2015, 06:08 PM
Nice Mod, thank you very much.
I have installed it in vb4.2.0, works fine, but its a problem when visitors can see this information,
actually they can not post, so there is no reason for them to be visible.

is there a way to exclude this usergroup ?
it will be nice I thing if there will be update some time and has option to select which usergroups this to take effect.

Thanks...

EDIT: uninstalled for the above situation.
Thanks any way.