Ticket #221 (reopened enhancement)

Opened 3 years ago

Last modified 4 months ago

Adding FormatUser method

Reported by: NilsLindenberg Owned by: unassigned
Priority: low Milestone: 1.3
Component: core Version: 1.1.6.0
Severity: minor Keywords: user formatting
Cc:

Description

This method renders usernames as links only when needed (when the corresponding userpage exists), avoiding the creation of dozens missing page links for users without userpage. It also makes other options configurable like truncating long hostnames or disabling link formatting.

Ref

 http://wikkawiki.org/FormatUserMethod

Change History

Changed 3 years ago by NilsLindenberg

  • milestone changed from 1.1.7 to 1.1.7.1

Changed 2 years ago by BrianKoontz

  • status changed from new to closed
  • resolution set to fixed

Implemented in support of #418 (nested comments).

Changed 2 years ago by DarTar

  • status changed from closed to reopened
  • resolution fixed deleted
  • milestone changed from 1.1.7.1 to 1.1.7

reopening ticket to implement it also in other routines involving users

Changed 2 years ago by DarTar

(In [486]) reverting [482] that inadvertently replaced tabs with spaces (Brian make sure you check your editor settings), refs #418 and #221

Changed 2 years ago by DarTar

(In [487]) Reimplementing FormatUser() as per [482] (see [486]), refs #418 and #221

Changed 2 years ago by DarTar

(In [495]) Adding link tail for Author profiles and starting applying FormatUser() method, refs #221 and #35

Changed 2 years ago by DarTar

(In [496]) Actually formatting the UserName from the UserSettings is a bad idea (the userpage is no more displayed as missing!), reverting part of the previous change, refs #221 and #35

Changed 2 years ago by DarTar

Brian, more precisely, this should be applied in any action/handler in which we make a reference to a user (including RecentChanges, RecentComments, revisions etc.). I'm planning to add another class for anonymous users.

Changed 2 years ago by DarTar

(In [499]) Applying FormatUser() to RecentlyCommented, added phpdoc links, refs #221

Changed 2 years ago by DarTar

(In [500]) Applying FormatUser() to RecentComments, refs #221

Changed 2 years ago by DarTar

(In [503]) Applying FormatUser() to PageIndex, refs #221

Changed 2 years ago by DarTar

(In [504]) Applying FormatUser() to lastedit, refs #221

Changed 2 years ago by DarTar

(In [509]) Applying FormatUser() to revisions handler, refs #221

Changed 2 years ago by DarTar

(In [511]) Applying FormatUser() to history + slightly improved styling for revisions and history, refs #380 and #221

Changed 4 months ago by DarTar

  • milestone changed from 1.2 to 1.3

Retargeting to 1.3. Code for this ticket may have already been committed to trunk, from which 1.3 will be branched. Consider backporting urgent issues to 1.2.X

Note: See TracTickets for help on using tickets.