Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: Small QoL request: Show maximum allowed characters for artist comments  (Read 9686 times)

0 Members and 1 Guest are viewing this topic.

Arcturus

  • New User
  • Offline Offline
  • Posts: 11
  • I used to be cool
    • View Profile

I'm in the process of adding artist comments to my songs, but occasionally my comments are too long. When this happens, the error page just gives me the error that my comment was too long, but doesn't tell me what the maximum allowed characters are.

Can I request that the maximum characters allowed be displayed both in the texbox in artist.php?request=view_module&query={id} and in the error page? This way I won't have to guess at how many characters I have to remove for it to be allowed.

I'm assuming there are similar character limits for profiles, comments and reviews, so it probably wouldn't hurt if those are also displayed.
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!

I'll look into this.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Arcturus

  • New User
  • Offline Offline
  • Posts: 11
  • I used to be cool
    • View Profile

You could also simply add a max character limit on the input form element.
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!

That would be the first thing to do, yeah. :) I probably won't have time for this before the weekend, though.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!

Maximum lengths are now enforced on edit fields and there's a note on the artist page how long the comments should be (it's just an approximation because the limit imposed by the browser might not be exactly the same as what the server checks against after converting the comment to internal storage, but it should be good enough).
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Arcturus

  • New User
  • Offline Offline
  • Posts: 11
  • I used to be cool
    • View Profile

Thank you!
Logged
Pages: [1]   Go Up