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

Reply
 
Thread Tools
Insert Thread Date into threadbit - for knowing when thread was originally posted Details »»
Insert Thread Date into threadbit - for knowing when thread was originally posted
Version: 1.00, by SiMateoAko SiMateoAko is offline
Developer Last Online: Nov 2007 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.4 Rating:
Released: 01-14-2007 Last Update: 01-14-2007 Installs: 157
Uses Plugins
 
No support by the author.

We've all experienced it... that user who finds threads 3 years old and resurrects them by posting a bizarre reply.

Other users usually fall for it too, and suddenly this three year old discussion is back from the dead, causing all sorts of confusion.

This product will insert the date of the original thread date in the threadbit plugin. This means that it will show up during searches and while viewing all threads in a forum.

In theory this will remove some of the confusion.

Included:

1 product - 2 plugins

Import the product and you should be ready to roll.

This product is not supported, and will only be updated if a confirmed bug is reported. Tested on 3.6.4 using the default threadbit template.

Brought to you courtesy of the folks at www.igusto.net

Changes:
1-15-2007
  • Removed redundant plugin
  • used native vbulletin date formating instead of php date formatting.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 04-03-2007, 11:03 PM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Display how many days old the thread is:

Edit the "fix thread dates" plugin in "threadbit_process", replace everything with:

PHP Code:
$startparts explode('/'vbdate('m/d/Y'$thread['dateline'], true));
$endparts   explode('/'vbdate('m/d/Y'TIMENOWtrue));
$startdate  gregoriantojd($startparts[0], $startparts[1], $startparts[2]);
$enddate    gregoriantojd($endparts[0], $endparts[1], $endparts[2]);
$days       = ($enddate $startdate == 0) ? '< 1' $enddate $startdate;

if (
$thread['dateline'])
{
    
$thread['threaddate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
    
$thread['threaddate'] = $thread['threaddate'] . $days day(s) old";

Reply With Quote
  #33  
Old 08-03-2007, 03:13 AM
NFLfbJunkie NFLfbJunkie is offline
 
Join Date: Sep 2006
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to make the date a tad bit smaller font?
Reply With Quote
  #34  
Old 08-03-2007, 03:19 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed. Good work
Reply With Quote
  #35  
Old 08-15-2007, 10:03 AM
hugh_ hugh_ is offline
 
Join Date: Mar 2005
Location: Netherlands
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is possible to do any of the following with this hack?

1. Show the thread age next to the thread title not the name of the person who started it.
2. Remove the brackets
3. Add it to the output of forumdisplay as well as the result of a search

Thanks...
Reply With Quote
  #36  
Old 10-24-2007, 09:06 PM
Dave Hybrid's Avatar
Dave Hybrid Dave Hybrid is offline
 
Join Date: Mar 2007
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SecondV View Post
Display how many days old the thread is:

Edit the "fix thread dates" plugin in "threadbit_process", replace everything with:

PHP Code:
$startparts explode('/'vbdate('m/d/Y'$thread['dateline'], true));
$endparts   explode('/'vbdate('m/d/Y'TIMENOWtrue));
$startdate  gregoriantojd($startparts[0], $startparts[1], $startparts[2]);
$enddate    gregoriantojd($endparts[0], $endparts[1], $endparts[2]);
$days       = ($enddate $startdate == 0) ? '< 1' $enddate $startdate;

if (
$thread['dateline'])
{
    
$thread['threaddate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
    
$thread['threaddate'] = $thread['threaddate'] . $days day(s) old";

Could you explain how to do this better please.

I cannot find anywhere to edit this code, thread_bit process doesn't exist.

Thank you.
Reply With Quote
  #37  
Old 10-31-2007, 12:04 PM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, this is very useful thanks...
Reply With Quote
  #38  
Old 12-25-2007, 07:55 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

runs on 3.7.0B3
Reply With Quote
  #39  
Old 01-07-2008, 07:32 AM
realsumon realsumon is offline
 
Join Date: Feb 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible like this

Code:
http://forums.digitalpoint.com/forumdisplay.php?f=5
Only Shows Thread age. Looks Nice. also it's shows after Thread. not after user name.
Reply With Quote
  #40  
Old 01-07-2008, 05:47 PM
senaia senaia is offline
 
Join Date: Oct 2005
Location: Dubai
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SecondV View Post
Display how many days old the thread is:

Edit the "fix thread dates" plugin in "threadbit_process", replace everything with:

PHP Code:
$startparts explode('/'vbdate('m/d/Y'$thread['dateline'], true));
$endparts   explode('/'vbdate('m/d/Y'TIMENOWtrue));
$startdate  gregoriantojd($startparts[0], $startparts[1], $startparts[2]);
$enddate    gregoriantojd($endparts[0], $endparts[1], $endparts[2]);
$days       = ($enddate $startdate == 0) ? '< 1' $enddate $startdate;

if (
$thread['dateline'])
{
    
$thread['threaddate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
    
$thread['threaddate'] = $thread['threaddate'] . $days day(s) old";

Working perfect but how to make it show "Today" instead of "< 1 days old" ?
Also "Yesterday" instead of "2 days old".

OR

Not to show anything if the thread was created today or yesterday.
Reply With Quote
  #41  
Old 01-08-2008, 05:14 AM
realsumon realsumon is offline
 
Join Date: Feb 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi I'm afraid that's not a function. This would require custom code. For help with that, please search or ask on www.vbulletin.org. Best Regards, vBulletin Support Team

now who will help. i came vb.org..here nobody reply.. please refer me another website.


anybody here wanna help me i will pay.

i need same

Code:
http://forums.digitalpoint.com/forumdisplay.php?f=5
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:07 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.04661 seconds
  • Memory Usage 2,337KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete