Title: Plastic Tunes
Author: unalignedcoder
Published: <strong>Ọwẹ́wẹ̀  19, 2007</strong>
Last modified: Ọwẹ́wẹ̀  9, 2009

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://s.w.org/plugins/geopattern-icon/plastic-tunes.svg)

# Plastic Tunes

 Láti ọwọ́ [unalignedcoder](https://profiles.wordpress.org/unalignedcoder/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/plastic-tunes.1.4.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/plastic-tunes/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/plastic-tunes/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/plastic-tunes/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/plastic-tunes/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/plastic-tunes/)

## Àpèjúwe

Plastic Tunes is a “now-playing” plugin that allows your blog to display informations
about the music you play in your media player, and most importantly, to insert them
into your database. Artists, titles, albums and pretty much any information included
in your digital music files goes into your database for real-time or later use, 
ready to be displayed on your sidebar, on a dedicated page or wherever you want.

The concept of this plugin, and quite a few lines of code were originally taken 
from version 0.1 of the [muTunes](http://www.thesmithsplace.com/mutunes) plugin,
made by Ken Smith Ìtumọ̀ Yorùbá: — although Plastic Tunes grew a lot since then.

## Àwọn àwòrán ìbòjú

 * [[
 * In action on the sidebar
 * [[
 * A glimpse of the option page

## Ìgbéwọlẹ̀

 1. Installation of WordPress plugin:
 2.  * FTP the “plastic_tunes” folder to your `wp-content/plugins` directory.
     * Activate the plugin
     * Customize the options page (help is included on that page)
     * Load the widget: if your installation is compatible, you can use the widget 
       function to load the infos on the sidebar. Just remember to customize its options
       by adding a `user_id` in its otpions. Without it the widget wonÌtumọ̀ Yorùbá:’
       t work and most likely will cause a ugly error. The title of the widget instead
       is optional, and if entered will override the sidebar title as (and if) indicated
       on the plastic tunes option page. Be aware that leaving the widget title empty
       also overrides the tags before and after the widget element, such as `<h2>` 
       or `*`. In that scenario you are in fact expected to provide them with the ‘
       title’ and the ‘closing element’ fields on the plastic tune option page.
     * If you canÌtumọ̀ Yorùbá: ’t or wonÌtumọ̀ Yorùbá: ’t use the widget function,
       add the following piece of code to your sidebar: `<?php plastic_sidebar($user_id);?
       >`, where `$user_id` is the number reported in the list in the options page.
     * Add the following piece of code to the template you will use for the entire 
       list of music items: `<?php plastic_table($user_id); ?>` (see instruction on
       how to use templates on the WordPress codex website.)
 3. Installation and setup of media players plugins:
 4.  * consult the included “readme.htm”.

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“Plastic Tunes” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa
sí plugin yìí.

Àwọn Olùkópa

 *   [ unalignedcoder ](https://profiles.wordpress.org/unalignedcoder/)

[Túmọ̀ “Plastic Tunes” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/plastic-tunes)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/plastic-tunes/), ṣàyẹ̀wò
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/plastic-tunes/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/plastic-tunes/) 
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/plastic-tunes/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

 * 1.4 Compatible with WordPress 2.5, and minor fixes and redesign.
 * 1.3 Plastic Tunes can now be used with the [Now Playing](http://people.cc.jyu.fi/~ltnevala/nowplaying/plugin:1:Main.html)
   plugin for Winamp. For compatibility reasons, AMIP users who update must slightly
   modify their insert settings. More details below. This version also fixes few
   potential bugs.
 * 1.2 Minor fix due to a bug of the widget functionality, where the widget form
   would not report the values correctly. Now fixed.
 * 1.1 A management page has been included in the admin area. This is still in a
   early stage, but allows you to browse all the music items you added so far, delete
   single records and purge the entire list of music items.
    Also added an option
   to skip duplicates when listing all the entries in your list page (this does 
   not apply to the just mentioned management page in the admin area). For duplicates
   it is meant the same music piece played more than one time and appearing in more
   locations within the list. With this option on, songs that occur more than once
   will be inserted in the database just as well, but will not appear in the list.
 * 1.0b Just a mistake in the title of the plugin on the WP plugins page, where 
   it said ‘(next)Plastic Tunes’. Sorry about it, it was a testing leftover. Now
   it correctly says ‘Plastic Tunes’.
 * 1.0 For sake of logic, efficiency and security, I made few changes in the way
   the plugin understands what goes on with the player. The callbacks events are
   slightly different now. YouÌtumọ̀ Yorùbá: ’ll have to take care of these changes
   in your AMIP configurator (see ‘How to install the Media Player plugin’ section
   below). This is important since previously in the instructions I had also forgot
   to indicate the ‘duration’ variable that is crucial for certain functions of 
   the plugin.
    On a technical side, thereÌtumọ̀ Yorùbá: ’s now a new option in 
   the options table of your wordpress DB, called `plastic_tunes_player_state`, 
   and a obsolete one, that wonÌtumọ̀ Yorùbá: ’t be used anymore, `plastic_tunes_togglesidebar`(
   note that a plugin like [CleanOptions](http://www.mittineague.com/dev/co.php)
   can help you in removing obsolete entries from your wordpress options). Reflecting
   these changes, there are now in the code new comments and explanations, and also
   a very useful example on how it is possible to customize the title of the sidebar
   element according to the state of the player. Look for it in the ‘Edit the title
   of your sidebar code here’ in the file ‘plastic_functions.php’.
 * 0.99 Corrected the relationship between the sidebar option and the widget. Now
   when the widget options has no title, it is not only assumed that the title is
   taken care of in the option page: also the default ‘before’ and ‘after’ tags 
   of the widget are not displayed, and are thus expected to be taken care of in
   the option page too. They should be considered for in the ‘title’ and ‘closing
   elements’ fields. This is done to avoid redundancy of tags and allow for more
   customization. The less expert user is not affected by this as long as a title
   is entered in the widgted options.
 * 0.98 Plastic Tunes is now widget compatible. For those who run WordPress 2.2.
   x or the [Widgets plugin](http://automattic.com/code/widgets/) with compatible
   themes, it means itÌtumọ̀ Yorùbá: ’s a lot easier now to show off your listening
   preferences on the sidebar. Read below for more detailed informations, “how to
   install” section.
 * 0.97 Two apostrophes slipped in a SQL query. It broke the insert of the data.
   Sorry for being such a messy programmer. Hopefully is now all OK.
 * 0.96 Corrected the time span calculation, now it works properly. Also added a
   checkbox I forgot in the option page. Never to sing the victory, they say in 
   my falling country.
 * 0.95 Flood protection is now working. Also I realized that the “Play & Change”
   callback from the media player wasnÌtumọ̀ Yorùbá: ’t properly working (it caused
   duplicate entries after stopping and restarting the player). The event to use
   is now “Change” only. Also I changed the “year” field to accept more than 4 chars,
   in case of entries like “1998-2003” and similar. This version is quite a good
   one, I think (or better, I hope).
 * 0.94 temporarily removed flood protection. I donÌtumọ̀ Yorùbá: ’t seem to be 
   able to make it work properly. Also I forgot to make the variable `%duration%`
   available in the option panel, and the example of customized code for the sidebar
   was wrong. Both corrected.
 * 0.93 fixed the flood control function and few other bugs.
 * 0.90 first public release. I worked a lot before to release this beta, so I just
   invented a version number I thought proper. Possibly this one is a little optimistic,
   but hey, itÌtumọ̀ Yorùbá: ’s too late to change it. I never understood the general
   logic of application numbering anyway.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.4**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 17 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **10+**
 *  Ẹ̀yà WordPress ** 2.0.2 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **2.5**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/plastic-tunes/)
 * Àwọn àmì
 * [media](https://yor.wordpress.org/plugins/tags/media/)[music](https://yor.wordpress.org/plugins/tags/music/)
   [nowplaying](https://yor.wordpress.org/plugins/tags/nowplaying/)[sidebar](https://yor.wordpress.org/plugins/tags/sidebar/)
   [widget](https://yor.wordpress.org/plugins/tags/widget/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/plastic-tunes/advanced/)

## Àwọn ìbò

Kò sí ìwádìí tí a tíì fi ránṣẹ́.

[Your review](https://wordpress.org/support/plugin/plastic-tunes/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/plastic-tunes/reviews/)

## Àwọn Olùkópa

 *   [ unalignedcoder ](https://profiles.wordpress.org/unalignedcoder/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/plastic-tunes/)