Back to vBulletin 4.x Add-ons

Thread Age Insert for vB 4
Mod Version: 1.0.2, by Boofo

vB Version: 4.x.x Rating: (14 votes - 4.64 average) Installs: 86
Released: 23 Feb 2011 Last Update: 08 Mar 2011 Downloads: 346
Not Supported Uses Plugins Auto-Template  

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!

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

Download

File Type: %1$s Thread_Age_Insert_vb4.zip (3.1 KB, 326 downloads)

Screenshots

Click image for larger version
Name:	thread_age_after_title.png
Views:	744
Size:	28.9 KB
ID:	127087   Click image for larger version
Name:	thead_age_after_startdate.png
Views:	534
Size:	29.0 KB
ID:	127088   Click image for larger version
Name:	showthread_thread_title.png
Views:	523
Size:	19.5 KB
ID:	127243  

Similar Mods

Forum Display Enhancements Insert Thread Date into threadbit - for knowing when thread was originally posted vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024