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> 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.
|