vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Display Enhancements - Adds Thread Date/Time Started to lists of Threads (https://vborg.vbsupport.ru/showthread.php?t=182263)

RogerPf 06-11-2008 10:00 PM

Adds Thread Date/Time Started to lists of Threads
 
There is a site www.WetCanvas.com that shows in its thread lists when a thread was started -

https://vborg.vbsupport.ru/external/2008/06/43.jpg

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

Boofo 06-12-2008 07:54 AM

You can do this as a product with no file edits.

GaiLoan 06-12-2008 08:02 AM

this was nice, thanks

verino 06-12-2008 08:03 AM

Quote:

Originally Posted by Boofo (Post 1547435)
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 :confused:

Boofo maybe ? :D

Boofo 06-12-2008 08:13 AM

It's already been down as a product for 3.6 and works on 3.7.

Super Jinni 06-12-2008 09:00 AM

a link for that product will be great Boofo

KURTZ 06-12-2008 09:13 AM

another one?

Jinni THIS is the best, imho :)

Boofo 06-12-2008 09:23 AM

The best one is the one I did for my site, but that one will work, too.

Jazzinto 06-12-2008 09:33 AM

Thanks, installed and it work for me.

KURTZ 06-12-2008 09:37 AM

Quote:

Originally Posted by Boofo (Post 1547481)
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 ... :D


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01316 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete