Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

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
  #12  
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
  #13  
Old 06-12-2008, 09:50 AM
verino verino is offline
 
Join Date: May 2008
Posts: 156
Благодарил(а): 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.
Quote:
Originally Posted by KURTZ View Post
but you haven't released it here ... ops now i remember and i know why ...
I don't get it

Any link to boofo's mod about this ?
Reply With Quote
  #14  
Old 06-12-2008, 09:55 AM
maxicep maxicep is offline
 
Join Date: Oct 2006
Location: California
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=182117" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=182117</a>

This mod perfect, and working same as your mod which made with file edits.
Reply With Quote
  #15  
Old 06-13-2008, 09:25 AM
RogerPf RogerPf is offline
 
Join Date: Feb 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To those who have installed it. I am glad you got the benefit. Many thanks for reporting back.

To those who moaned and voted 1 star.

Well what can I say. You certainly know how to make someone feel welcome NOT. If you want to get on with people in a collaborative environment, I suggest that a more supportive approach would pay dividends.

BTW there is a security aspect of MODs (to any system) that the user has to do by hand. IMO a small mod of a few lines that an implementer can inspect is much more secure than an "automatic" 100k patch.


Quote:
Originally Posted by Boofo View Post
You can do this as a product with no file edits.
No, honestly you are wrong, Boofo, maybe you could do this as a product with no file edits but I can not. Again, might I suggest that a more supportive tone might have encouraged me to try and find out how, but after your response why should I, or anyone else for that matter, bother.

Have a nice day.
Reply With Quote
  #16  
Old 06-13-2008, 09:48 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That was meant to be informative and nothing else. It was not a slam of any kind. You really need to learn not to take everything said to you as some sort of criticism if you want to get on with people.
Reply With Quote
  #17  
Old 07-03-2008, 03:29 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ya I did one back in 05.13.07
Reply With Quote
  #18  
Old 07-12-2008, 11:54 PM
JamesC70 JamesC70 is offline
 
Join Date: Jun 2007
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

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 11:28 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.07903 seconds
  • Memory Usage 2,280KB
  • Queries Executed 22 (?)
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
  • (4)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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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