NP_CurrentMedia.php

The CurrentMedia plugin allows you to display a block of the music, book, movie, or video game that you are currently enjoying on each blog post. You may use Amazon.com search results or you may enter custom values.

If you are an Amazon associate (a free program to join), you can have your Associate ID included in the media links, meaning potential commission fees if viewers click the links and buy the item themselves.

This plugin currently supports Nucleus version 3.5+.

General Plugin info
Current Version: 0.9
Download: plugin zip file
Code: n/a
Demo: n/a
Forum Thread: NP_CurrentMedia 0.9
Author: gRegor Morrill

Installing

  1. Download the plugin zip file and unzip it
  2. Upload the contents to your /nucleus/plugins/ directory
  3. Install the plugin from the Plugin page of your Nucleus admin area
  4. Refer to the README document in the zip file to set up your Amazon Web Services account

Refer to the README file for detailed instructions and information about upgrading from previous versions.

How to use the plugin

Refer to the README file for detailed usage instructions.

SkinVars and TemplateVars

This plugin works per-item, so the tag must be in a template, not a skin. It will not work in a skin.

SkinVar: n/a

TemplateVars:

To insert the CurrentMedia block, insert this tag in the appropriate template(s):

<%CurrentMedia%>

If you desire to customize the display even further, you can insert specific fields in your template like so:

<%CurrentMedia(heading)%>
<%CurrentMedia(image)%> (generates the <img> element)
<%CurrentMedia(image_url)%> (just the URL to the image)
<%CurrentMedia(title)%>
<%CurrentMedia(description)%>

Options

Refer to the README file for detailed usage instructions.

History

  • Version 0.9 (February 9, 2011)
    • Overhauled the plugin entirely.
    • Using jQuery from Google Code to display search results inline; no more popup.
    • Now supports customizing the media / entering your own without searching Amazon.
  • Version 0.5
    • Added plugin capability to list “Currently Playing” video games
    • Added DOCTYPE to popup search window
  • Version 0.4
    • Fixed “apostrophe” bug by escaping certain characters before inserting in the database.
    • Added language translation options.
    • Added Amazon.de as a search option.
  • Version 0.3
    • Corrected missing IDs from form fields that was causing javascript errors in Mozilla Firefox (and maybe Opera)
    • Updated file structure and coding for easier readability
  • Version 0.2
    • Fixed a bug with embedded FORM tags. The bug caused the “Extended Entry” field to not be stored in the database
    • Added CSS to the popup window to make it look like the default Nucleus admin area
    • Stable release
  • Version 0.1
    • Stable pre-release

For full history, in-depth instructions, support, and further information, please refer to the README file.

Troubleshooting

Plugin review

NP_CurrentMedia 0.9 review requested.

NP_CurrentMedia 0.5 works with Nucleus CMS version 3.31 - 2007-11-02 ftruscot

currentmedia.txt · Last modified: 2011/02/11 22:15 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki