Alright so I know how to do all of the CSS/HTML/PHP/AJAX/MySQL work. However I have no clue how I can add a new field to the "insert media" popup.
Do I have to modify the wordpress media table with the extra field? How do I make it so that if someone checks off a custom option checkbox called "Enabled Media Ratings" in the "insert media" popup, it will show my plugin code in the post under that image?
So yes, I want to add a checkbox for "Enabled Media Ratings" in the "insert media" popup when an image is selected. Then I want to make it so that wordpress will know that the rating stars should be displayed for that image, and output my code underneath it in the loop.
Also I'll need an identifier for the image, I'm guessing its ID in the database which already exists, that I will use to link it within my new plugin database table.
Can someone point me in the right direction?
EDIT:
So I came across this: http://codex.wordpress.org/Plugin_API/Filter_Reference
My question is, how do I show the fields in the MAIN "Insert Media" popup when adding a new image into a post? I'm talking about a field I've added via the "attachment_fields_to_edit" filter. I can only see this field when going to Media and then clicking "Edit" under an image. This is very inconvenient.
EDIT AGAIN:
Looks like it was a bug that was resolved after 3.5 was released: http://core.trac.wordpress.org/ticket/22578