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

Reply
 
Thread Tools
Adds Thread Date/Time Started to lists of Threads Details »»
Adds Thread Date/Time Started to lists of Threads
Version: 1.00, by RogerPf RogerPf is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.1 Rating:
Released: 06-11-2008 Last Update: Never Installs: 18
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

There is a site www.WetCanvas.com that shows in its thread lists when a thread was started -



See http://www.wetcanvas.com/forums/forumdisplay.php?f=133 for live example

I have no connection with the admins of the above WetCanvas site. The following is not their code it is a mimic of their feature, much requested by users of our board.
To be honest I do not understand why this is not a standard feature. You can even sort the various thread lists by "thread start date" but you can't see the field that has just been sorted on! - OK, I know no product can have everything.
The Mod is in two parts

PHP file part
=========

FTP (download) the file forums/includes/functions_forumdisplay.php

Find the string
// thread last reply date/time
it will be around line 187

Before this line insert the following block
// BEGIN 2008-06-11 vb 3.7.1 MOD - Show Thread Start Date and Time by RogerPf
// thread first reply date/time
$thread['firstpostdate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], true);
$thread['firstposttime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);
// END 2008-06-11 vb 3.7.1 MOD - Show Thread Start Date and Time by RogerPf
Save the file and FTP it back


Template Edit
===========

Edit your - Your Template - Threadbit Templates - threadbit

Do a Find on the string
_self')">$thread[postusername]</span>
Insert following between that string and the </if> that comes next
<span class="time"><i>&nbsp;started: </i>$thread[firstpostdate]<if condition="!$show['detailedtime']"> $thread[firstposttime] </if></span>
Click Save and you are done

Additionally you can also add this line to the threadbit_deleted template to show the same info for deleted threads, but who spends time looking at deleted threads.

The mod is not supported but I would be delighted if it was absorbed into the standard offering or taken up by anyone else and supported.

The mod may to be 100% efficient as it could be but it does follow the current date manipulation approach that I see in 3.7.1.

I have (unlike the WetCanvas version) included the text started: in the .time format span. Yes the date is included in the .time format span believe me this is REALLY the way you want it to look.

Enjoy.


Edit time - I have just seen another mod that does this -
https://vborg.vbsupport.ru/showthread.php?t=111949
I guess I should have looked much harder before I wrote my own.

Anyway I will leave it to others to compare the two and decide between them.

Oh and here is another - https://vborg.vbsupport.ru/showthread.php?t=182117

Show Your Support

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

Comments
  #2  
Old 06-12-2008, 07:54 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can do this as a product with no file edits.
Reply With Quote
  #3  
Old 06-12-2008, 08:02 AM
GaiLoan GaiLoan is offline
 
Join Date: Dec 2007
Location: California,US
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this was nice, thanks
Reply With Quote
  #4  
Old 06-12-2008, 08:03 AM
verino verino is offline
 
Join Date: May 2008
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
You can do this as a product with no file edits.
yeah, I'm no coder so it would be a great help if the developer can make this as a product

Boofo maybe ?
Reply With Quote
  #5  
Old 06-12-2008, 08:13 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's already been down as a product for 3.6 and works on 3.7.
Reply With Quote
  #6  
Old 06-12-2008, 09:00 AM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

a link for that product will be great Boofo
Reply With Quote
  #7  
Old 06-12-2008, 09:13 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

another one?

Jinni THIS is the best, imho
Reply With Quote
  #8  
Old 06-12-2008, 09:23 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The best one is the one I did for my site, but that one will work, too.
Reply With Quote
  #9  
Old 06-12-2008, 09:33 AM
Jazzinto Jazzinto is offline
 
Join Date: Mar 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, installed and it work for me.
Reply With Quote
  #10  
Old 06-12-2008, 09:37 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
The best one is the one I did for my site, but that one will work, too.
but you haven't released it here ... ops now i remember and i know why ...
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 06:18 PM.


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.06560 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
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_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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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