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
- minor addition Updated lang() with frequently used option sets.
- improvement Updated comment script to show ‘nickname/sign in’ options when non-user replies.
- improvement Updated commentate template to use lang() and changed some text.
- minor addition Duplicated back/forward navigation at bottom of page.
- bug fix 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.
- minor addition Updated lang() with frequently used option sets.
- improvement Updated comment script to show 'nickname/sign in' options when non-user replies.
- improvement Updated commentate template to use lang() and changed some text.
- minor addition Duplicated back/forward navigation at bottom of page.
- bug fix 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.
- improvement Updated get=>list on access_release to return press and type names.
- improvement Updated access_artist to return press & type names when getting releases.
- improvement Separated artist history sorting/formatting into separate function and rewrote some functions to be more clear.
- improvement Separated some logic from artist page template and put it into index/format function. Began initial work on videos section.
- minor addition Created access_video function.
- improvement Added common settings to lang().
- improvement Added artists/videos url to .htaccess.
- new feature Made first draft of update_video to allow reporting/approval/deletion of videos.
- improvement Added videos link to artists navigation.
- improvement Updated artist index to grab video or videos where appropriate.
- improvement Updated artist profile to show videos or profile.
- new feature Finished first draft of videos view on artist pages (need to refine, separate styles and script, probably separate into page instead of section).
- improvement Updated artists JS to handle video add/approve/deny/report functions. Probably need to separate in future.
- new feature Created access_video to handle video queries. Moved YT API call into class, and optimized by combining calls.
- bug fix 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.
- other Removed double line breaks from initDelete.
- new feature Finished first draft of video adding function.
- new feature Made YouTube lazy load script. Later, need to pull YT CSS into shared stylesheet, probably update modules to use CSS + script.
- improvement Added videos SQL to database creation function.
- bug fix Removed YT key from Git and added to ignore. Generated new API key.
- bug fix Added YT key to gitignore.
- improvement Updated add_video function to add date_occurred (from YT data).
- improvement Moved video above images on artist profile. Updated YT thumbnail to be https.
- bug fix Changed 'awaiting approval' message to hide secondary language (was showing both beside each other).
- improvement Upated access_video() to return YT data as multi-dimensional array no matter what.
- bug fix Added index/auto increment for videos in database creation.
- improvement 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.
- improvement Updated artist index script to run release sorting on day chunks of history.
- bug fix Corrected font style on lineup boxes. Slight changed code to also apply any--weaken to setlists and notes.
- improvement Added caption to setlists. Changed setlists and notes to follow lineup styling.
- minor addition Added -note type to artist bios.
- improvement Separated sidebar from artist profile into partial.
- improvement Separated bottom from artist profile into partial.
- improvement Changed artist videos partial into page template.
- other Moved artist videos JS/CSS into separate files.
- improvement Removed videos/sidebar/bottom from artist profile, and cleaned up remains.
- improvement Further separated logic in artists index.
- improvement Updated artist's add_video function to use access_video class.
- improvement Removed YT lazy load script from artist page.
- bug fix Added stylesheet to artist videos page.
- bug fix Removed console log from videos script.
- improvement Moved YT thumbnail CSS from artists sidebar to shared stylesheet.
- new feature Added ability to automatically add YT videos mentioned in blog posts, associated with first artist mentioned.
- improvement Added YT lazy load to default list of scripts.
- improvement Moved 'add video' code to access_video class. Also added check for duplicate videos.
- improvement Updated parse_markdown to collect YT links as references.
- improvement Moved YT thumbnail code to shared stylesheet. Updated colors to match official YT colors, and added cursor on hover.
- improvement Updated get=>list on access_release to return press and type names.
- improvement Updated access_artist to return press & type names when getting releases.
- improvement Separated artist history sorting/formatting into separate function and rewrote some functions to be more clear.
- improvement Separated some logic from artist page template and put it into index/format function. Began initial work on videos section.
- minor addition Created access_video function.
- Continued work on videos feature.
- improvement Added common settings to lang().
- improvement Added artists/videos url to .htaccess.
- new feature Made first draft of update_video to allow reporting/approval/deletion of videos.
- improvement Added videos link to artists navigation.
- improvement Updated artist index to grab video or videos where appropriate.
- improvement Updated artist profile to show videos or profile.
- new feature Finished first draft of videos view on artist pages (need to refine, separate styles and script, probably separate into page instead of section).
- improvement Updated artists JS to handle video add/approve/deny/report functions. Probably need to separate in future.
- new feature Created access_video to handle video queries. Moved YT API call into class, and optimized by combining calls.
- bug fix 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.
- other Removed double line breaks from initDelete.
- new feature Finished first draft of video adding function.
- new feature Made YouTube lazy load script. Later, need to pull YT CSS into shared stylesheet, probably update modules to use CSS + script.
- improvement Added videos SQL to database creation function.
- bug fix Removed YT key from Git and added to ignore. Generated new API key.
- bug fix Added YT key to gitignore.
- improvement Updated add_video function to add date_occurred (from YT data).
- improvement Moved video above images on artist profile. Updated YT thumbnail to be https.
- bug fix Changed 'awaiting approval' message to hide secondary language (was showing both beside each other).
- improvement Upated access_video() to return YT data as multi-dimensional array no matter what.
- bug fix Added index/auto increment for videos in database creation.
- improvement 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.
- improvement Updated artist index script to run release sorting on day chunks of history.
- bug fix Corrected font style on lineup boxes. Slight changed code to also apply any--weaken to setlists and notes.
- improvement Added caption to setlists. Changed setlists and notes to follow lineup styling.
- minor addition Added -note type to artist bios.
- improvement Separated sidebar from artist profile into partial.
- improvement Separated bottom from artist profile into partial.
- improvement Changed artist videos partial into page template.
- other Moved artist videos JS/CSS into separate files.
- improvement Removed videos/sidebar/bottom from artist profile, and cleaned up remains.
- improvement Further separated logic in artists index.
- improvement Updated artist's add_video function to use access_video class.
- improvement Removed YT lazy load script from artist page.
- bug fix Added stylesheet to artist videos page.
- bug fix Removed console log from videos script.
- improvement Moved YT thumbnail CSS from artists sidebar to shared stylesheet.
- new feature Added ability to automatically add YT videos mentioned in blog posts, associated with first artist mentioned.
- improvement Added YT lazy load to default list of scripts.
- improvement Moved 'add video' code to access_video class. Also added check for duplicate videos.
- improvement Updated parse_markdown to collect YT links as references.
- improvement 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