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.