{"id":6780,"date":"2009-09-20T15:40:52","date_gmt":"2009-09-20T15:40:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wplastfm\/"},"modified":"2011-01-23T01:32:19","modified_gmt":"2011-01-23T01:32:19","slug":"wplastfm","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wplastfm\/","author":4250207,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"1.1.1","tested":"3.1.4","requires":"2.9","requires_php":"","requires_plugins":"","header_name":"WPLastfm","header_author":"Christian Klein","header_description":"","assets_banners_color":"","last_updated":"2011-01-23 01:32:19","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.kosmonauten.cc\/wordpress\/wplastfm","header_plugin_uri":"http:\/\/www.kosmonauten.cc\/wordpress\/wplastfm","header_author_uri":"http:\/\/www.kosmonauten.cc\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3584,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.1.0","1.1.1"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1566869","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1566869","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566869","resolution":"1","location":"plugin"}},"screenshots":{"1":"Example","2":"Widget configuration options","3":"Example"}},"plugin_section":[],"plugin_tags":[1679,18373,218,162],"plugin_category":[43,50,56],"plugin_contributors":[91519],"plugin_business_model":[],"class_list":["post-6780","plugin","type-plugin","status-closed","hentry","plugin_tags-last-fm","plugin_tags-lastfm","plugin_tags-music","plugin_tags-widget","plugin_category-customization","plugin_category-media","plugin_category-social-and-sharing","plugin_contributors-loeffler","plugin_committers-loeffler"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wplastfm.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wplastfm\/trunk\/screenshot-1.png?rev=1566869","caption":"Example"},{"src":"https:\/\/ps.w.org\/wplastfm\/trunk\/screenshot-2.png?rev=1566869","caption":"Widget configuration options"},{"src":"https:\/\/ps.w.org\/wplastfm\/trunk\/screenshot-3.png?rev=1566869","caption":"Example"}],"raw_content":"<!--section=description-->\n<p>Displays recent tracks from your last.fm account.<\/p>\n\n<p><strong>Important: Requires PHP 5!<\/strong><\/p>\n\n<p><strong>Features<\/strong><\/p>\n\n<ul>\n<li>Easy to set up via widgets (requires Wordpress &gt; 2.8)<\/li>\n<li>Displays your current tracks (Listening now)<\/li>\n<li>Customizable by template and css (you decide what is displayed)<\/li>\n<li>Data is kept locally (default: 45 seconds)<\/li>\n<li>English and German localization<\/li>\n<\/ul>\n\n<h3>Integration<\/h3>\n\n<p><strong>If you are using widgets<\/strong><\/p>\n\n<ul>\n<li>Design \u2192 Widgets<\/li>\n<li>Drag the widget into your sidebar<\/li>\n<li>Configure your username, the number of shown tracks and the template<\/li>\n<li>Done<\/li>\n<\/ul>\n\n<p><strong>If you are not using widgets<\/strong><\/p>\n\n<p>Copy the following PHP code in your template:<\/p>\n\n<pre><code>&lt;?php wplastfm('username' [, number of tracks [, $options]]); ?&gt;\n<\/code><\/pre>\n\n<p>You can configure the plugin via \"wplastfm-settings.php\" or via array. E.g.<\/p>\n\n<pre><code>&lt;?php $options = array(\"template\" =&gt; '%track%', \"cache\" =&gt; 45, \"trunctrack\" =&gt; 40, \"truncalbum\" =&gt; 25); ?&gt;&lt;h3&gt;Customization&lt;\/h3&gt;\n<\/code><\/pre>\n\n<p>The plugin provides the following CSS classes:<\/p>\n\n<ul>\n<li>ul.lastfm \u2014 the list<\/li>\n<li>ul.lastfm li \u2014 ul list elements<\/li>\n<li>ul.lastfm li a \u2014 last.fm links<\/li>\n<li>ul.lastfm li img \u2014 image formatting<\/li>\n<li>ul.lastfm li span.lastfm-time \u2014 time formatting<\/li>\n<li>ul.lastfm li span.lastfm-album \u2014 album formatting<\/li>\n<\/ul>\n\n<p>If you don't need the <code>wplastfm.css<\/code>, you can delete it.<\/p>\n\n<h3>Settings<\/h3>\n\n<p>You can change the following settings in the \"wplastfm-settings.php\" or via array.<\/p>\n\n<ul>\n<li><code>$wplastfm_options['cache']<\/code> - Specifies how long the data is kept locally<\/li>\n<li><code>$wplastfm_options['trunctrack']<\/code> \/ <code>$wplastfm_options['truncalbum']<\/code> \/ <code>$wplastfm_options['truncartist']<\/code> \/ <code>$wplastfm_options['trunctitle']<\/code>  - Maximum length of the text<\/li>\n<li><code>$wplastfm_options['timeformat']<\/code> - Time format for songs played more than 24 hours ago<\/li>\n<li><code>$wplastfm_options['imagesize']<\/code> - Image source (small, medium or large)<\/li>\n<li><code>$wplastfm_options['albumcover_height']<\/code> - Height of the album cover<\/li>\n<li><code>$wplastfm_options['useartistimage']<\/code> - If there is no album cover, the plugin uses the artist image instead (can be true or false)<\/li>\n<li><code>$wplastfm_options['profilelink']<\/code> - Displays link to your profile or disables it.<\/li>\n<li><code>$wplastfm_options['template']<\/code><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload folder <code>wplastfm<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Done<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How to create your own timeformat for tracks played more than 24 hours ago<\/dt>\n<dd><ul>\n<li>Go to the Widget page in Wordpress and choose 'Use self-defined' in the dropdown menu.<\/li>\n<li>Open the wplastfm-settings.php and edit the <code>$wplastfm_options['timeformat']<\/code> variable<\/li>\n<li>Done<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Bugfix: The time format chose in the dropdown menu is now displayed correctly<\/li>\n<li>Added the possiblity to choose the size of the album cover (small, medium, large)<\/li>\n<li>Added the option to display or hide the link to your profile in the widget title<\/li>\n<li>Timeout for the HTTP request has been reduced (3 seconds for recent tracks, 2 seconds for artist image)<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Uses the Wordpress HTTP API instead of c_url<\/li>\n<li>Added template tags for %artist% and %title%<\/li>\n<li>Moved the cache files to \/cache folder<\/li>\n<li>Now uses the artist image, if no album cover exists<\/li>\n<li>Some other small improvements and bugfixes.<\/li>\n<li>(The Wordpress HTTP API doesn't work properly in 2.8, so please update Wordpress)<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Bugfixes<\/li>\n<li>Tested up to Wordpress 2.9<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Fixed error message due PHP 5.3.0 curl bug<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Added a fixed height for the album cover<\/li>\n<li>Added the option to configure the maximum length of the title\/album<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Fixed a problem with the right version number<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>First stable release<\/li>\n<\/ul>","raw_excerpt":"Displays recent tracks from your last.fm account. Requires PHP 5!","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6780"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/loeffler"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6780"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6780"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6780"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6780"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6780"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}