I've hacked up a little module for showing attached images in articles (with an extremely simple jscript/dom slidshow viewer). It's pretty fugly so far, with hardcoded paths, really ugly icons for media types, and so on.

If you unzip it, it comes in a directory called media_show.
Move media_show into mmedia/contrib, and if you have mmedia somewhere else than sites/all/modules/ please open media_show.module and search/replace 'sites/all/modules/' for the real module path.
Enable the media_show module.

Now there are (hopefully) thumbnails beside the teasers in listings, indicating what media is attached to each story.
In story view there should now be an image (if attached), and a thumbnail bar for images (if more than one image).

How does this idea look? Do you think it's worthwhile to include something like this with mmedia? Is the name ok, or should I rename it to something like media_viewer?

Comments

Ibn al-Hazardous’s picture

StatusFileSize
new595 bytes

Duh, fixed the cruddy hardcoded paths. Patch enclosed.

Ibn al-Hazardous’s picture

StatusFileSize
new1.42 KB

And loaded metadata in order to get the title right. New patch against unpatched zip.

rhys’s picture

I appreciate the contribution. I've attempted to include as much as possible a feature like this in the modified media module that will be coming out on Jan 1. It's still in testing mode, but it should have a lot more things to offer. Documentation will make it a lot easier for people to use later also.

rhys’s picture

Status: Active » Fixed

Forgot to add that I'm adding the fixed status, since this idea is definitely going into the module.

Ibn al-Hazardous’s picture

StatusFileSize
new14.59 KB

Cool!

I saw that there was a help blurb about adding the [attach] tag in order to inline the images. Since attaching images itself isn't quite working currently (see all my other bug reports ;), I thought I'd upload the latest version of my own module.

It still contains a couple of hacks and hardcodings - though they are much fewer now. Moved some stuff into the admin/settings/media hierarchy. If you're interested in including it - I'll tidy it up to the same standards as the rest of mmedia.

Ibn al-Hazardous’s picture

StatusFileSize
new19.68 KB

And the previous one had a fatal bug - didn't include the javascript. It had a style bug and a test-alert as well - so I'll just upload a new one, and pretend the one for yesterday never existed. ;)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.