Before you ask please READ THIS

Client wants unique music per album!

edited January 2014 in Hypershot Posts: 12
Of course he tells me when I've done everything else already. Now he wants each album, (I created 2), to have its own playlist. Is this possible or anyone have a suggestion? I've looked through WP plugins but don't see anything that works right? Ugggghh.

Comments

  • AirAir
    Posts: 10,970
    Hello

    It is not possible in theme without serious modifications.

    About plugins - no knowledge.

    With regards.
  • Posts: 38
    I did it without much problem, just added 2 meta cat (path of music in mp3 and ogg) if field is populated play that track otherwise play the default track. don't have time to find that mod yet but it wasn't too crazy to do. I'm not a code ninja and succeed.
  • edited January 2014 Posts: 38
    Ah found that old log, so may be line numbers are inaccurate, cannot give you the child theme process as I mod direct the 1.1 release, which is bad, but as a guideline :

    IN META.PHP

    LINE 90 - 234 - 504 (AFTER THE AUTOPLAY BOX) TO CREATE A MUSIC CHOICE META FOR USER
    
    			array(
                    'name' => __be( 'Music you want to play mp3 : ' ),
                    'desc' => '',
                    'id' => 'music_to_playmp3',
                    'default' => '',
                    'type' => 'upload'
    				),
    			array(
                    'name' => __be( 'Music you want to play ogg : ' ),
                    'desc' => '',
                    'id' => 'music_to_playogg',
                    'default' => '',
                    'type' => 'upload'
    				),	
    
    IN HEAD-SCRIPT.PHP


    LINE 139 (CATCH MUSIC TRACKNAME)
    
            /* /Autoplay background music */
    *************
    		/* /Loading default background music */
    		$musicmp3 = $apollo13->get_option( 'music', 'music_mp3' );
            $musicogg = $apollo13->get_option( 'music', 'music_ogg' );
    		/* /Looking for a specific track choice */
    		if($apollo13->get_meta('_music_to_playmp3') != ''){
                $musicmp3 = $apollo13->get_meta( '_music_to_playmp3' );
    			$musicogg = $apollo13->get_meta( '_music_to_playogg' );
                }
    **************
            //options transferred to js files
    

    LINE 190 OR SO (END OF VARIABLE SEND IN ARRAY) PASS THE MUSIC TITLE
    
       /* HEADER MUSIC */
    **************
    			'header_music_mp3'      => $musicmp3,
    			'header_music_ogg'      => $musicogg,
                'header_music_player'   => $apollo13->get_option( 'music', 'music_player' ),
                'header_music_autoplay' => $autoplay,
    **************
    
    Hope for you it's complete otherwise I'm really not a code ninja nor a wordpress connoisseur so anybody around you might figure out what is missing, if something is missing (other file modification). It added the field in each album to give links to sounds, so take care that metafield or whatsoever are displayed, and it's not really user friendly in a upload way : music has to be upload thru medialib and path filled by hand. A wordpress intermediate user might replace that field by a media uploader/selector as any pictures for instance.

    Good luck
    Post edited by Air on
  • AirAir
    Posts: 10,970
    This is what I call serious modification:-) Cause it involves several places in few files to change. However I will think about adding such option with next release, cause indeed it looks easy. Thanks for posting this Paul!

    With regards.
  • Posts: 38
    I knew more about wordpress after than before, that's for sure :-)

    You're very welcome
  • AirAir
    Posts: 10,970
    Custom music for single post/page/album added in new version 1.6. I hope we will release it today:-)

    With regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!