Search results with JPlayer playlist

Hello

I'm using the last version of ZP, default theme and Jplayer Playlist.

I can see my mp3 playlist when I visit each album, no problem with that.

I'd like to display the search results with a playlist as well (the search results appear as mp3 thumbnails)

In the <div id= "images" , I tried to replace the whole "next image()" loop:
<?php while (next_image()): $c++; ?>
<div class="image">
<div class="imagethumb">" title="<?php echo getBareImageTitle(); ?>"><?php printImageThumb(getAnnotatedImageTitle()); ?></div>
</div>
<?php endwhile; ?>

with the code for the playlist : <?php printjPlayerPlaylist("playlist-audio"); ?>

But i get a blank page...
I precise that I didn't include the albums, pages, archive in the search results, only the title and description.

Thanks to Acrylian for the helpfull answers ;-)

Comments

  • acrylian Administrator, Developer
    You cannot use the next_image loop within other functions that easily.

    If you wish search results in a playlist that is quite more complicated. In any case you will have to use the object model directly.

    Easier would be to use the single jPlayer within the search.php page. You would also have to code an if/else depending if it is mp3 or image.

    Sorry, there is no easier answer to this.
Sign In or Register to comment.