PDA

View Full Version : Forum Display Enhancements - Thread Age Insert for vB 4


Boofo
02-22-2011, 10:00 PM
Thread Age Insert for vB 4
Version 1.0.2
(By Boofo)

What does this product do?
This product will calculate the age of a thread, in days, and insert it after the thread title or start date in the listing.

Examples:
---------------------------
In forumdisplay:
Testing days old after thread title ? Today <=This will display in bold text
Testing bbcode ? 1 day old
Testing something... ? 16 days old

In showthread:
Thread: Testing days old after thread title ? 12 days old

Credits:
Thanks goes out to Adrian for showing me a new way to do template edits and style variables in products.

Version Information:
Version 1.0.0 --Initial release for vB 4
Version 1.0.1 --Code optimized and days calculation rewritten to avoid any future gregoriantojd errors with certain installations. Added location setting where the thread age can be added either after the thread title or after the start date line. Added a font color setting and removed the span class highlight code.
Version 1.0.2 --Removed font color setting and added Style Variable setting for the Thread Age Insert Font Color, so it can be set for each style separately. Added the Thread Age in the showthread at the top after the thread title, if you are using the "After thread title" option.

Installation Overview:
---------------------------
1 Product XML (3 Plugins, 10 Phrases, 1 Setting, 1 Style Variable)

Installation Instructions:
---------------------------
1. Go to your Admin CP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-boofo_threaddays.xml file on your computer

2. Go to your Admin CP -> vBulletin Options -> 'Thread Age Insert' and set the following options:
Thread Age Insert Location: Choose which location you want the thread age to display. (Default is off, Do not show thread age.)

3. Go to your Admin CP -> Styles & Templates -> Style Manager -> StyleVars (In the All Style Options drop-down) -> Threadbit -> boofo_threaddays_color
Enter the color code of the font color that you want the Thread Age to show up in.

NOTE: You will need to do this for all styles.
------------------------------------------------------

Done!
Enjoy!


if ($mark_as_installed != 'clicked')
{
$you_get = 'squat';
}
else
{
$you_get = 'support';
}

Swordman844555
02-23-2011, 09:45 AM
Thx great!

Alecsmith
02-23-2011, 11:44 AM
Tagged for now :D

Juggernaut
02-23-2011, 11:48 AM
Does this use phrases for translations or would I need to edit the templates or xml file?

Boofo
02-23-2011, 12:12 PM
From the first post: 1 Product XML (2 Plugins, 3 Phrases)

Gemma
02-23-2011, 12:43 PM
Thank you :)

COL NIL SATIS
02-23-2011, 01:10 PM
Boofo will this work on 4.0.6??

Boofo
02-23-2011, 01:15 PM
It should, yes.

COL NIL SATIS
02-23-2011, 01:38 PM
It should, yes. This was one of my old 3.5 mods I accidentally found last night and decided to convert. ;)


Great stuff,will try it now and let you know,cheers Boofo mate:)

COL NIL SATIS
02-23-2011, 01:46 PM
confirm it works flawlessly on 4.0.6...great work Boofo thanks

ellinofatsa
02-23-2011, 02:22 PM
hi i have vb 4,1,2 and i have instal this hack and i see this mesage after,,,

Warning: gregoriantojd() expects parameter 1 to be long, string given in [path]\includes\functions_forumdisplay.php(498) : eval()'d code on line 40

Boofo
02-23-2011, 03:31 PM
hi i have vb 4,1,2 and i have instal this hack and i see this mesage after,,,


Warning: gregoriantojd() expects parameter 1 to be long, string given in [path]\includes\functions_forumdisplay.php(498) : eval()'d code on line 40

What version of PHP are you using?

ellinofatsa
02-23-2011, 05:17 PM
What version of PHP are you using?
PHP 5.2.11

Boofo
02-23-2011, 05:22 PM
Thanks. I will see what I can figure out for you as I have not run into this before. Hang tight. ;)

ALBCODERS
02-23-2011, 05:29 PM
installed works well on vb 4.0.3 but this mod shows only days.would be nice to show months and years.

Boofo
02-23-2011, 05:37 PM
That would take a lot more calculations as you would have to allow for leap years, etc. I think it would be more hassle than it is worth for a free mod.

spillage
02-23-2011, 11:32 PM
Maybe have an age cut off setting... anything older than the cut off just shows "older than XX days".

TheLastSuperman
02-23-2011, 11:43 PM
Mikey likey :D.

TBforums
02-24-2011, 04:24 AM
This looks nice but I decided not to install this because it may discourage users not to view certain threads because of its age.

Randomm
02-25-2011, 06:25 AM
Can somebody help me with this? is this a simple importing of the xml file? what does (2 Plugins, 3 Phrases) mean?
This is a great mod btw

Boofo
02-25-2011, 06:48 AM
Just follow the Installation Instructions in the first post and you will be fine. The 2 Plugins, 3 Phrases is for information purposes only. Also, you might want to click the install button so you can be notified of any updates to this mod.

cravendale
02-25-2011, 10:11 PM
Hi,

Confused...
Started by xxxx, 1 Week Ago 06:49 AM
but the script shows - 10 days old ???

cravendale
02-25-2011, 10:12 PM
Also how can I change the colour of hte highlighted text ?

thanks

Boofo
02-25-2011, 11:08 PM
Hi,

Confused...
Started by xxxx, 1 Week Ago 06:49 AM
but the script shows - 10 days old ???

The days are correct. Try setting Datestamp Display Option to Yesterday / Today instead of Detailed.
Also how can I change the colour of hte highlighted text ?

thanks

You'd have to change that in the xml file. It goes off of whatever you have set for highlight on your site.

bulldog51981
02-26-2011, 01:16 AM
Installed and worked on default skin but not my custom skins. When I disable then re-enable, it shows the going through and altering the custom skins but there no change. Any idea why?

Boofo
02-26-2011, 01:44 AM
Apparently the line is looks for to add the Thread Age to is different in the custom skins. It was designed on the default skin.

bulldog51981
02-26-2011, 05:51 PM
What is the line that it adds in the default skins? If I knew what to search for I could add it into the correct place in modified ones to have it displayed.

mgurain
03-02-2011, 06:28 AM
I suggest to put a small icon that indicate an old thread (old thread is controlled by setting) ?

bulldog51981
03-02-2011, 04:12 PM
Just happened to find this today by accindent...I did a search by keyword and on the results page....there was the thread age right next to the title. So what do I need to add to the showthread template to get this result there as well. If it works on the results template, it should work on the others with no problem.

elwachiman
03-02-2011, 06:23 PM
Excelent Good Mod..

Boofo
03-02-2011, 07:40 PM
Just happened to find this today by accindent...I did a search by keyword and on the results page....there was the thread age right next to the title. So what do I need to add to the showthread template to get this result there as well. If it works on the results template, it should work on the others with no problem.

What do you mean it "should work on the others"? It works exactly as designed.

bulldog51981
03-03-2011, 02:11 PM
I just mean that if it works on the search results page then I should be able to get it to work on the "SHOWTHREAD" page. Just need to know what line it adds and/or where.

**Edit - Using the:

Admincp->Options->Thread Age Insert

I was able to get it to show after the thread start date, just not the title. This is what I was looking for anyway, so it works perfectly for me.

Thanks BooFo! You're mods are always GREAT! Keep up the good work, we all appreciate it!

Boofo
03-03-2011, 02:37 PM
You are using a custom skin, aren't you?

It shouldn't be showing on the showthread, anyway, as that is where the posts show. It is set to the templates that the thread titles show up in.

p@ndu
03-03-2011, 05:24 PM
is it not possible to show after the username as i have removed the thread start date

Boofo
03-03-2011, 05:29 PM
is it not possible to show after the username as i have removed the thread start date

I don't understand what you mean by you "removed the thread start date".

p@ndu
03-03-2011, 05:43 PM
in below picture i wanted it their is it possible

only username will be displayed i want after tht

Boofo
03-03-2011, 08:03 PM
Not possible since you removed the start date as that is what it looks for on that line.

Randomm
03-06-2011, 03:56 PM
Great mod
Installed, rated and nominated.
Are you going to release an update that will change it from showing in days to (days, weeks, months, years)?

Boofo
03-06-2011, 09:42 PM
Are you going to release an update that will change it from showing in days to (days, weeks, months, years)?

Not planning to at this point.

Krusty1231
03-06-2011, 09:47 PM
This only calculates the age of the first post in a thread right?

Just making sure I am doing it right.

BlackThorn
03-06-2011, 09:50 PM
Thanks Boofo, I really loved that hack.

Boofo
03-06-2011, 10:00 PM
This only calculates the age of the first post in a thread right?

Just making sure I am doing it right.

Yes, when the thread was started.
Thanks Boofo, I really loved that hack.

What hack?

f4vn
03-21-2011, 05:05 AM
@Boofo I just want to show thread age with members. Can you tel me how to do ?
Thank you !

Special Pages
03-27-2011, 01:14 AM
Very good product as I am using it on my forum. :D

Boofo
03-27-2011, 03:46 AM
Very good product as I am using it on my forum. :D

You might want to click install to be notified of any updates.

Special Pages
03-27-2011, 03:50 AM
You might want to click install to be notified of any updates.

Thanks for reminding me. Going to click right now. :D

tele955848
03-27-2011, 01:44 PM
Schade
aber wenn ich es einbaue sehen die User nicht mehr die Neuen Beitr?ge!?
Dies werden nicht mehr Angezeigt.
Nur in der Sidbar sind die dann noch zu sehen :(

vB 4.06

Boofo
03-27-2011, 04:22 PM
In English, please?

Special Pages
03-28-2011, 05:37 PM
In English, please?
I just used Google Translator to help you...

Schade
but when I install it will see the user no longer the new posts?
This will not be shown.
Are only in the Sidbar see then

vB 4.06

Boofo
03-28-2011, 05:47 PM
Still has me confused as to what he is asking.

Mikevet1984
05-16-2011, 01:52 AM
Boofo does this mod work ok with version 4.1.3?

Boofo
05-16-2011, 01:56 AM
Have you tried it?

Mikevet1984
05-16-2011, 02:27 AM
Yes and only the first option is working....

If I change it for the date to be shown after <Started by ....> the mod is not working.

Boofo
05-16-2011, 02:40 AM
It is working fine for me on 4.1.3. I am using the default style. Is yours a custom style?

Mikevet1984
05-16-2011, 03:01 AM
Yes, it is a style from completevb.com

Boofo
05-16-2011, 03:22 AM
Well, there you go. Apparently, the replacement code has been changed in that style. If it worked before, then it should work now. I would get a hold of the style maker and have them fix it.

adiabatic
06-06-2011, 08:15 AM
Great mod.

It seems that the thread age is wrongly calculated on vB4.1.3.

It seems it is one day ahead.

Yesterdays post shows as today etc...

Any idea?

I use custom theme if that matters.

Boofo
06-06-2011, 12:35 PM
Great mod.

It seems that the thread age is wrongly calculated on vB4.1.3.

It seems it is one day ahead.

Yesterdays post shows as today etc...

Any idea?

I use custom theme if that matters.

It's based on a rolling 24 hours. Just change the phrase "Today" to "New" and that will fix your problem.

adiabatic
06-06-2011, 01:18 PM
Thanks;)

osix
11-03-2012, 02:46 AM
is it working on 4.2 ?

AusPhotography
11-04-2012, 06:33 AM
Yes, but sadly the author passed away earlier this year.

tanzeelniazi
11-06-2012, 07:57 PM
Working Perfect in VB 4.2.0 :)
thanks

JesWhite
02-03-2016, 11:41 AM
Perfect addon...
i want to use this addon's last modified versiyon...
i want to show last edited date and time of first post...not thread open time...
how can i show this option?thanks for your supports..