News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Topic Start Date on Message Index

Started by GL700Wing, September 19, 2023, 03:26:09 PM

Previous topic - Next topic

Steve

@GL700Wing should be able to edit your post after she's downloaded the attachment and remove it. Any staff member can do it.
DO NOT pm me for support!

Steve

Hey @GL700Wing - would it be relatively easy to not have the date/time show unless the topics are sorted by date?

Just curious.
DO NOT pm me for support!

GL700Wing

Quote from: Steve on November 10, 2023, 06:53:54 PMHey @GL700Wing - would it be relatively easy to not have the date/time show unless the topics are sorted by date?

Just curious.
Hey @Steve - Yep!  New version on the way with option to hide start date/time unless sorting topics by start date ...
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Steve

DO NOT pm me for support!

GL700Wing

Version 1.2 - 14-Nov-23
o Added option to hide the time when the 'Shorthand Date Display' option is enabled (ie, when 'Today' and/or 'Yesterday' are shown).
o As per Steve's request added option to hide start date/time unless sorting topics by date/time.
o Added support for an alternate text string to use instead of $txt['date']
   (Note: Alternate text string name is $txt['tsdomi_date'] and it's in the Modifications language file).
o SMF 2.0: Fixed bug reported by FragaCampos that occurred when sorting by date and changing pages in boards with multiple topic pages.


You cannot view this attachment.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Steve

DO NOT pm me for support!

Steve

@GL700Wing - I spoke too soon. Each time I access a board and each time I sort by date I get errors:

Type of error
Undefined_vars
Error message
2: Undefined array key "sort"
File
/home/steve/public_html/forums/Themes/GreyedOut/MessageIndex.template.php
Line
245

Backtrace:

#0: smf_error_handler()
Called from /home/steve/public_html/forums/Themes/GreyedOut/MessageIndex.template.php on line 245
#1: template_main()
Called from /home/steve/public_html/forums/Sources/Load.php on line 2783
#2: loadSubTemplate()
Called from /home/steve/public_html/forums/Sources/Subs.php on line 4186
#3: obExit()
Called from /home/steve/public_html/forums/index.php on line 187

Same errors if I'm on Curve 2.

The error does not occur if I uncheck the 'Hide start date/time unless sorting topics by date/time.' box.
DO NOT pm me for support!

GL700Wing

Version 1.3 - 15-Nov-23
o Fixed bug reported by Steve that occurred when the 'Hide start date/time unless sorting topics by date/time.'  option is enabled, a board was viewed for the first time and the first sort done was by topic start date.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Steve

Thanks GL. Works a treat now.
DO NOT pm me for support!

FragaCampos

Thanks a million, GL700Wing!
With these bug fixes, it's working flawlessly.  8)

Steve

Just curious @GL700Wing, why only the message index?

Can't it be the sort order for all pages in the index so that I don't have to resort each time I go to a topic and/or change pages in that topic when I'm reading it?

This is more of a wish on my wish list than a request. So, don't go trying to redo the mod.  :)
DO NOT pm me for support!

GL700Wing

#31
Quote from: Steve on May 06, 2024, 12:18:25 PMJust curious @GL700Wing, why only the message index?

Can't it be the sort order for all pages in the index so that I don't have to resort each time I go to a topic and/or change pages in that topic when I'm reading it?

This is more of a wish on my wish list than a request. So, don't go trying to redo the mod.  :)
Sorry but I don't understand your question - if you want to always display the most recent messages at the top when a topic is displayed you can enable the Show most recent posts at the top. via the Look and Layout menu in your profile.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Arantor

I think what he's getting at is that the sort is done - but when he goes into a topic and back to the message index, it's no longer sorted that way?

(To be fair, none of the sorting options persist in this way. Start date isn't unique in that respect.)

Advertisement: