Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Adds Thread Date/Time Started to lists of Threads Details »
Adds Thread Date/Time Started to lists of Threads
Mod Version: 1.00, by RogerPf (Member) RogerPf is offline
Developer Last Online: Jan 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.1 Rating: (1 vote - 5.00 average) Installs: 18
Released: 12 Jun 2008 Last Update: Never Downloads: 4
Not Supported Template Edits Code Changes Re-usable Code Translations  

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 -
http://www.vbulletin.org/forum/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 - http://www.vbulletin.org/forum/showthread.php?t=182117

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Thread Started By Date & Username JJR512 vBulletin 3.5 Add-ons 17 03 Dec 2006 18:28

  #16  
Old 03 Jul 2008, 16:29
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Ya I did one back in 05.13.07
__________________
http://www.szone.us |

Facebook | My:Hacks @ vBulletin.org
Reply With Quote
  #17  
Old 13 Jul 2008, 00:54
JamesC70 JamesC70 is offline
 
Join Date: Jun 2007
I like this mod, as it shows what time of day polls were started..... really handy if you're looking at thread listings just a couple of minutes before polls end.

The users, however, seem to either love it or hate it, so I ended up making it optional.

==== How to make this optional ====

1. Install the product as instructed.
2. In AdminCP, go to User Profile Fields -> Add New User Profile Field.
3. Select "Single-Selection Menu" from the dropdown, and click Continue.
4. Populate the fields on the following screen as follows:

Title: Display Start Dates on Forum Listings
Description: This setting controls whether the starting date of a thread is displayed after the user who started the thread, in forum listings and on Today's Posts.
Options: Yes (on the first line), No (on the second line)
Set Default: Yes, but no first blank option
Display Order: Whatever you like, this just affects where this option is in relation to other options on the users' Edit Options screen. I set this as 10 initially, then adjust later on the "User Profile Field Manager" screen.
Field Required: Yes, Always
Field Editable by Users: Yes
Set the last 3 options to no, and set Optional Input's radio button to no.
Display Page: This affects which grouping our on/off setting appears in on the Edit Options screen. I put this in Login/Privacy since that's at the top of the screen when the users go there, but it could also logically go under Date/Time.

5. Click Save. On the next screen, note the field number assigned to your new field. For my forum, it's field 11, but could be different for yours.
6. Go to Styles and Templates -> Search in Templates, and locate the Threadbit that you edited when you installed the product.
7. Add these two conditionals just before the code you added during installation:
<if condition="$show['member']">
<if condition="$bbuserinfo['field11'] == 'Yes'">
Where ['field11'] appears, substitute the field number from step 5 above.
8. After the code you added during installation, add two more closing "if" statements. Now your installed code should look like this (including the code we just added in steps 6 and 7):

_self')">$thread[postusername]</if></span>
<if condition="$show['member']">
<if condition="$bbuserinfo['field11'] == 'Yes'">
<span class="time"><i>&nbsp;on $thread[firstpostdate]<if condition="!$show['detailedtime']"> at $thread[firstposttime]</if></i></span></if></if>

9. Save your changes.

Note that the feature is off by default, and the users will have to turn it on if they want it. I've made a screenshot and posted it with instructions for the user, showing them how to turn it on and what they're actually doing. The screenshot is attached here so that you can see what your users would see if you make these changes.
Attached Images
File Type: jpg start-dates-on-forum-listings.jpg (45.4 KB, 23 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 03:55.

Layout Options | Width: Wide Color: