elements around each line. The visual style can be controlled using CSS. Add definitions for these CSS classes to your stylesheet: cm_media:
element that wraps the media heading (e.g. "Currently Watching") cm_image:
element that wraps the media element
cm_title:
element that wraps the media title cm_description:
element that wraps the media description
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 element)
<%CurrentMedia(image_url)%> (just the URL to the image)
<%CurrentMedia(title)%>
<%CurrentMedia(description)%>
When adding a new blog post, you will see a section for the CurrentMedia plugin
under the "Extra Plugin Options" heading. Choose the type of media you would
like to lookup and enter search terms in the keywords field. The Amazon results
will appear directly below. Click "Select This" to select one of the search
results. Beside the media's image are links to select the small, medium, or
large image. The default choice is "small."
After selecting an Amazon item, you may select the "Edit This" check box to
make any text edits to the heading, title, description, or URL.
You also have the option of not searching Amazon and instead entering your own
custom media by selecting "Enter custom media instead of searching Amazon."
When editing an item, if no media item has been selected previously, the
procedure is the same as above. If a media item has been selected previously,
you will see the media information along with a link to "Delete This Media."
To change the media item, simply perform another search and select a new item.
... QUESTIONS ...
-----------------
Q: I clicked 'delete', why wasn't the media data deleted from the weblog item?
A: The actual deletion isn't committed until you finalize your edit of the blog post
by clicking "Edit".
Q: I clicked 'change' and selected another media item, why doesn't it change on the weblog item?
A: The actual update of the media item isn't committed until you finalize your
edit of the blog post by clicking "Edit".
... KNOWN ISSUES / TO DO ...
----------------------------
When entering a custom media item, there is not currently a way to select an
associated image.
... BUG REPORTS / CONTACT ...
-----------------------------
Please post on the Nucleus forums *FIRST*. That is my preferred method of
communication. I will do my best to check at least once a week on there,
typically more often than that. If for some reason you don't hear back
from me on the forum within a week, feel free to visit my website and
use my contact form there.
Nucleus forums: http://forum.nucleuscms.org
My site: http://gregorlove.com
... THANKS ...
--------------
Thanks to jaal for the help/inspiration to add different language Amazon sites.
Thanks to roel for his update to NP_CustomField. I took his idea for the plugin
option whether to delete the table data upon uninstall.
And last but not least, thanks for the users of this plugin for their feedback
and their patience with me fixing things. :)
... CHANGELOG ...
-----------------
Version 0.9
+ 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
+ Corrected minor bug that would show PHP errors for books with no authors listed
+ Cleaned up/streamlined miscellaneous parts of the code. (I'm a neat freak sometimes :D )
Version 0.4
+ Fixed "apostrophe" bug by escaping certain characters before inserting in the database.
+ Moved popup stylesheet to its own css file.
+ Added Amazon.de as a search option.
+ Added language options (for the plugin words that display on the weblog)
+ Added plugin option to delete the tables and data on uninstall, defaulted to 'no'. (thanks roel!)
+ Changed to use HTTP_POST_VARS and HTTP_GET_VARS for compatibility with PHP versions < 4.1.0
+ Added correctly functioning supportsFeature switch statement.
+ Added "Upgrade Instructions", "Plugin Options", and "Thanks" sections to this README file.
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.