• Resolved nexustx13

    (@nexustx13)


    Hi Steve – Are you planning on adding album art anytime in the future?
    I would absolutely love to use this plugin but with the absence of the artwork I just bring myself to switch over.

    I know we all have busy schedules and full time jobs to pay the bills, but I was just wondering if you had a few minutes to chime in here and let us know what the plans are for this great plugin and when we might see a new version with album artwork, if ever?

    James

    https://www.ads-software.com/plugins/ngs-sam-integrator/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author arcain6

    (@arcain6)

    well.. i just tested it on my site… here’s the low-down on how to include album art ??

    1) create a folder called “sam” in your rood directory of wordpress..
    2) edit /wp-content/plugins/ngs-sam-integrator/php/playlist.php file

    find:

    <tr>
                                    <td> <?php echo $row_number++; ?></td>
                                    <td><a rel="nofollow" href="<?php echo $song_info['requestlink'] ?>"><?php echo $song_info['artistandtitle']; ?></a></td>
                                    <td><?php echo $song_info['formattedduration']; ?></td>
                            </tr>

    in-line replace:

    <tr>
                                    <td><img src="/sam/<?php echo $song_info['album']; ?>" height="60" width="60"></td>
                                    <td> <?php echo $row_number++; ?></td>
                                    <td><a rel="nofollow" href="<?php echo $song_info['requestlink'] ?>"><?php echo $song_info['artistandtitle']; ?></a></td>
                                    <td><?php echo $song_info['formattedduration']; ?></td>
                            </tr>

    3) edit /wp-content/plugins/ngs-sam-integrator/php/functions.php

    find:

    function build_songlist_query($start_at, $number_to_show, $playlist_search_text) {

    below that find:

    $sanitized_sam_query = $samdb->prepare("SELECT id AS songid, artist, title, duration

    in line edit:

    $sanitized_sam_query = $samdb->prepare("SELECT id AS songid, artist, title, duration, picture

    Repeat this for the ” else ” version as well..

    Find:

    function prepare_song(

    below
    $title = '';

    add:
    `

    //ADD ALBUM ART!

    $album = $song->picture;

    if ( empty( $album ) ) {
    $album = ‘NA.gif’;
    }

    //End Album Art!

    Save and reload your page…

    If you have missing images, create an image 100×100 called NA.gif and upload it to the sam folder.

    Plugin Author arcain6

    (@arcain6)

    oh… forgot… after adding the //add album art block.. you need to edit the return array string…

    at the end of the return arrat string.. add this:

    , 'album' => $album

    so it should look like this at the end

    return array( 'artist' => $artist, 'title' => $title, 'artistandtitle' => $combine, 'formattedduration' => $mmss, 'requestlink' => $reqlink, 'requestcount' => $reqcount, 'album' => $album );

    have fun ??

    Hello Steve and thanks for this plugin. I have tried it on a test system in my virtual environment and is looking good. Tried the album art addition you have here and not getting the album covers.

    Are you placing the album art in “/sam”.

    Also I’m using Network multi-site with sub-directories. Not sure what I could post to give you more info since no errors occur.

    Hi

    Is it possible to adapt it for a particular catgorie. The request list to
    I like that it can be searched. Only category 2 of my songlist to sam broadcaster.

    thanks
    Rene

    Actually finally got back to this and wanted to post that the plugin seems to be working just fine.

    I tried the modifications that “arcain6” suggested and I did get them to work and post the pictures on the “Requests Page” for some reason the “Top Requests” page only shows the “NA.gif” so I am trying to work that out.

    I would like to get the pictures to post on the widgets “Recently Played”, “Coming Up” etc.

    Also been playing with the Sam2Joom Joomla extension and its quite nice with a modest fee but I really like the looks of WordPress to Joomla but still testing both in my virtual environment. I think I may kluge together the Joomla extensions and this plugin in some fashion as I really need the blog functionality and really like some functionality Sam2Joom brings.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Album art and future plans?’ is closed to new replies.