Development log
変更ログ

Development 7/2

Videos

Videos can now be added to artist pages. It's at a draft stage, so please let me know if you have issues or suggestions. Main points:

  • This is only for videos from the bands' official channels.

There's a 'report' feature that anyone can use; once reported, a video must be approved or deleted by an admin. Further protections against abuse (in either direction) will come in the future.

  • If the band's YouTube channel is linked in the artist's 'official links' section, any videos from that channel will be automatically approved.

Videos from an unrecognized channel will await approval from an admin before being added. (Note: need to add a way to quickly see all unapproved videos at once.)

Once a video from a certain channel is approved once, that channel will be added to the band's official links, and all future videos from that channel will be automatically approved.

  • To add, report, approve, or deny videos, just go to the artist's video page. (Note: UI needs to be improved here.)

Also, videos in news posts will be automatically added to the artist that is first mentioned in the post. (So in a post where NICOLAS is mentioned in the first paragraph, all videos in that post will be attributed to NICOLAS.) You can delete incorrect videos on the artist's video page.

  • To do:

  • Remove or move the 'more videos' button that currently covers some of the YT player's buttons on artist profiles.

  • Add a way to choose a 'default' video to show on an artist's page?

  • Add a way to see all videos awaiting approval.

  • Add controls for banning a user from adding videos, and a way to permanently ignore false reports.

  • Some sort of recent videos feature on main page. Maybe video popularity? Auto-tweeting of recent popular videos?


Artist pages

I redid some of the code on artist profiles; you shouldn't see any real changes, but I might have introduced bugs into sorting of history entries, etc. If you see anything weird, please let me know!


All updates

  1. Updated lang() with frequently used option sets.
  2. Updated comment script to show ‘nickname/sign in’ options when non-user replies.
  3. Updated commentate template to use lang() and changed some text.
  4. Duplicated back/forward navigation at bottom of page.
  5. Temporarily(?) commented out quote transformation in sanitize() function, since it was ruining any HTML sent through. Might be able to turn it back on for non-html-allowed strings, or just move it to release sanitization.
  6. Updated lang() with frequently used option sets.
  7. Updated comment script to show 'nickname/sign in' options when non-user replies.
  8. Updated commentate template to use lang() and changed some text.
  9. Duplicated back/forward navigation at bottom of page.
  10. Temporarily(?) commented out quote transformation in sanitize() function, since it was ruining any HTML sent through. Might be able to turn it back on for non-html-allowed strings, or just move it to release sanitization.
  11. Updated get=>list on access_release to return press and type names.
  12. Updated access_artist to return press & type names when getting releases.
  13. Separated artist history sorting/formatting into separate function and rewrote some functions to be more clear.
  14. Separated some logic from artist page template and put it into index/format function. Began initial work on videos section.
  15. Created access_video function.
  16. Added common settings to lang().
  17. Added artists/videos url to .htaccess.
  18. Made first draft of update_video to allow reporting/approval/deletion of videos.
  19. Added videos link to artists navigation.
  20. Updated artist index to grab video or videos where appropriate.
  21. Updated artist profile to show videos or profile.
  22. Finished first draft of videos view on artist pages (need to refine, separate styles and script, probably separate into page instead of section).
  23. Updated artists JS to handle video add/approve/deny/report functions. Probably need to separate in future.
  24. Created access_video to handle video queries. Moved YT API call into class, and optimized by combining calls.
  25. Temporarily removed quote transformation from sanitize function since it was ruining HTML. Duh. Need to look into if it will be alright to turn on for non-html-allowed sanitization.
  26. Removed double line breaks from initDelete.
  27. Finished first draft of video adding function.
  28. Made YouTube lazy load script. Later, need to pull YT CSS into shared stylesheet, probably update modules to use CSS + script.
  29. Added videos SQL to database creation function.
  30. Removed YT key from Git and added to ignore. Generated new API key.
  31. Added YT key to gitignore.
  32. Updated add_video function to add date_occurred (from YT data).
  33. Moved video above images on artist profile. Updated YT thumbnail to be https.
  34. Changed 'awaiting approval' message to hide secondary language (was showing both beside each other).
  35. Upated access_video() to return YT data as multi-dimensional array no matter what.
  36. Added index/auto increment for videos in database creation.
  37. Rewrote release sorting code on artist pages to pull releases for each day, then sort by name, then combine per base name. Also added function to wrap (?) in lineups, so they can be styled.
  38. Updated artist index script to run release sorting on day chunks of history.
  39. Corrected font style on lineup boxes. Slight changed code to also apply any--weaken to setlists and notes.
  40. Added caption to setlists. Changed setlists and notes to follow lineup styling.
  41. Added -note type to artist bios.
  42. Separated sidebar from artist profile into partial.
  43. Separated bottom from artist profile into partial.
  44. Changed artist videos partial into page template.
  45. Moved artist videos JS/CSS into separate files.
  46. Removed videos/sidebar/bottom from artist profile, and cleaned up remains.
  47. Further separated logic in artists index.
  48. Updated artist's add_video function to use access_video class.
  49. Removed YT lazy load script from artist page.
  50. Added stylesheet to artist videos page.
  51. Removed console log from videos script.
  52. Moved YT thumbnail CSS from artists sidebar to shared stylesheet.
  53. Added ability to automatically add YT videos mentioned in blog posts, associated with first artist mentioned.
  54. Added YT lazy load to default list of scripts.
  55. Moved 'add video' code to access_video class. Also added check for duplicate videos.
  56. Updated parse_markdown to collect YT links as references.
  57. Moved YT thumbnail code to shared stylesheet. Updated colors to match official YT colors, and added cursor on hover.
  58. Updated get=>list on access_release to return press and type names.
  59. Updated access_artist to return press & type names when getting releases.
  60. Separated artist history sorting/formatting into separate function and rewrote some functions to be more clear.
  61. Separated some logic from artist page template and put it into index/format function. Began initial work on videos section.
  62. Created access_video function.
  63. Continued work on videos feature.
  64. Added common settings to lang().
  65. Added artists/videos url to .htaccess.
  66. Made first draft of update_video to allow reporting/approval/deletion of videos.
  67. Added videos link to artists navigation.
  68. Updated artist index to grab video or videos where appropriate.
  69. Updated artist profile to show videos or profile.
  70. Finished first draft of videos view on artist pages (need to refine, separate styles and script, probably separate into page instead of section).
  71. Updated artists JS to handle video add/approve/deny/report functions. Probably need to separate in future.
  72. Created access_video to handle video queries. Moved YT API call into class, and optimized by combining calls.
  73. Temporarily removed quote transformation from sanitize function since it was ruining HTML. Duh. Need to look into if it will be alright to turn on for non-html-allowed sanitization.
  74. Removed double line breaks from initDelete.
  75. Finished first draft of video adding function.
  76. Made YouTube lazy load script. Later, need to pull YT CSS into shared stylesheet, probably update modules to use CSS + script.
  77. Added videos SQL to database creation function.
  78. Removed YT key from Git and added to ignore. Generated new API key.
  79. Added YT key to gitignore.
  80. Updated add_video function to add date_occurred (from YT data).
  81. Moved video above images on artist profile. Updated YT thumbnail to be https.
  82. Changed 'awaiting approval' message to hide secondary language (was showing both beside each other).
  83. Upated access_video() to return YT data as multi-dimensional array no matter what.
  84. Added index/auto increment for videos in database creation.
  85. Rewrote release sorting code on artist pages to pull releases for each day, then sort by name, then combine per base name. Also added function to wrap (?) in lineups, so they can be styled.
  86. Updated artist index script to run release sorting on day chunks of history.
  87. Corrected font style on lineup boxes. Slight changed code to also apply any--weaken to setlists and notes.
  88. Added caption to setlists. Changed setlists and notes to follow lineup styling.
  89. Added -note type to artist bios.
  90. Separated sidebar from artist profile into partial.
  91. Separated bottom from artist profile into partial.
  92. Changed artist videos partial into page template.
  93. Moved artist videos JS/CSS into separate files.
  94. Removed videos/sidebar/bottom from artist profile, and cleaned up remains.
  95. Further separated logic in artists index.
  96. Updated artist's add_video function to use access_video class.
  97. Removed YT lazy load script from artist page.
  98. Added stylesheet to artist videos page.
  99. Removed console log from videos script.
  100. Moved YT thumbnail CSS from artists sidebar to shared stylesheet.
  101. Added ability to automatically add YT videos mentioned in blog posts, associated with first artist mentioned.
  102. Added YT lazy load to default list of scripts.
  103. Moved 'add video' code to access_video class. Also added check for duplicate videos.
  104. Updated parse_markdown to collect YT links as references.
  105. Moved YT thumbnail code to shared stylesheet. Updated colors to match official YT colors, and added cursor on hover.

Want to support future updates?

vkgy runs on a custom platform developed by a very small team. If you appreciate what we do and want to help us grow, please consider becoming a VIP member!

Support vkgy
top