WordPress.org

Forums

gLastFM
Empty cover image fix (1 post)

  1. buschmann
    Member
    Posted 2 years ago #

    When last.fm does not have a cover for the track, gLastFM throws some PHP errors on the frontend, that some variables are not available. Easily to fix by initialising the variables with the placeholder images.

    //cover url, set default entries for all variables
    $picurl = GLASTFM_PLUGIN_URL . 'theme/empty_' . $image_size . '.png';
    $picurl_small = GLASTFM_PLUGIN_URL . 'theme/empty_0.png';
    $picurl_medium = GLASTFM_PLUGIN_URL . 'theme/empty_1.png';
    $picurl_large = GLASTFM_PLUGIN_URL . 'theme/empty_2.png';
    $picurl_extralarge = GLASTFM_PLUGIN_URL . 'theme/empty_3.png';

    http://wordpress.org/extend/plugins/glastfm/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • gLastFM
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags