Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread Age Insert for vB 4 Details »»
Thread Age Insert for vB 4
Version: 1.0.2, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.x.x Rating:
Released: 02-22-2011 Last Update: 03-07-2011 Installs: 86
Uses Plugins Auto-Templates
 
No support by the author.

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 Now

File Type: zip Thread_Age_Insert_vb4.zip (3.1 KB, 323 views)

Screenshots

File Type: png thread_age_after_title.png (28.9 KB, 0 views)
File Type: png thead_age_after_startdate.png (29.0 KB, 0 views)
File Type: png showthread_thread_title.png (19.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
elsa23, RichieBoy67

Comments
  #52  
Old 05-16-2011, 01:52 AM
Mikevet1984's Avatar
Mikevet1984 Mikevet1984 is offline
 
Join Date: Nov 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Boofo does this mod work ok with version 4.1.3?
Reply With Quote
  #53  
Old 05-16-2011, 01:56 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried it?
Reply With Quote
  #54  
Old 05-16-2011, 02:27 AM
Mikevet1984's Avatar
Mikevet1984 Mikevet1984 is offline
 
Join Date: Nov 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #55  
Old 05-16-2011, 02:40 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is working fine for me on 4.1.3. I am using the default style. Is yours a custom style?
Reply With Quote
  #56  
Old 05-16-2011, 03:01 AM
Mikevet1984's Avatar
Mikevet1984 Mikevet1984 is offline
 
Join Date: Nov 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, it is a style from completevb.com
Reply With Quote
  #57  
Old 05-16-2011, 03:22 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #58  
Old 06-06-2011, 08:15 AM
adiabatic adiabatic is offline
 
Join Date: Nov 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #59  
Old 06-06-2011, 12:35 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by adiabatic View Post
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.
Reply With Quote
  #60  
Old 06-06-2011, 01:18 PM
adiabatic adiabatic is offline
 
Join Date: Nov 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #61  
Old 11-03-2012, 02:46 AM
osix osix is offline
 
Join Date: Feb 2009
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it working on 4.2 ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06814 seconds
  • Memory Usage 2,339KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete