Neighborhood CCK

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
aaron's picture

The newly released Neighborhood CCK module will take the place of Video CCK, replacing that module and expanding it with Video Neighborhood, Image Neighborhood, and the upcoming Audio Neighborhood.

If you don't already know about Video CCK, this module allows an editor to paste a URL or embed code from a third party video provider, such as YouTube or Revver, into a node field, and the module will parse the code, automatically extract the provider and video code, and display the video as configured. It is fully integrated into CCK and Views, to give administrators the ease and power they want in determining how it's displayed. It supports nearly a dozen providers, with more to come, and offers resizable thumbnails and autoplay (as available from the providers).

So now I've extracted the engine from that to drive two more modules. If you're already using Video CCK, I've tried to make the migration path as painless as possible. You'll need to remove the video_cck directory, install the new Neighborhood CCK (ncck) folder, activate the new module at admin/build/modules, and run update.php. All existing fields, settings, and content created by Video CCK will be preserved.

Hopefully this will be the last time this needs to happen. Because there are a number of production sites using Video CCK already, I'll continue maintaining as a stand alone version as well, but I strongly encourage folks to migrate to the new module, and I do not plan to maintain that module into Drupal 6.

Image Neighborhood does what Video Neighborhood does for images. It currently only supports Flickr, but works in the same method, so that editors may paste a Flickr photo URL into the field, and the module will extract the image and display it properly. I plan to implement more image providers as well, perhaps SnapFish and others.

Audio Neighborhood will do the same for audio streams and files: Last FM, etc.

The engine is designed to be easily extensible, so that adding a new provider is relatively painless -- we just create a new include file, using the hooks provided by the module. The hardest part is writing the regular expressions to parse the URL's, and that's not really that hard. Some providers, such as Flickr and YouTube, require API keys to properly access their files -- global settings for those are found at /admin/content/ncck. There, the administrator may also turn off providers they wish, as well as configure other settings.

To use this module, just create the fields you wish as normally for CCK. There are several options available in the field settings screen, such as thumbnail size, autoplay, and field-specific allowed providers. Everything else happens automatically. You can create views with the field from there. You'll probably also want to go to the content type display settings page as well to configure how your teasers are displayed.

You can see demos at Drupal Hub Videos and Drupal Hub Photo Gallery. Note that the module is still in beta, so there will probably be frequent updates required as we work through the issue queues (feel free to jump in). You should be safe using it, however, as there are many production sites I'm aware of that use it. If you use it in a site, feel free to contact me; I plan to build a list of sites using the module and showcasing them when I write a more comprehensive tutorial.

(Cross-posted at Drupal.org.)

Aaron Winborn
Advomatic, Advocacy Automated -- Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes

Comments

Very promising

gusaus's picture

Think having all these neighborhoods wrapped into cck will pretty powerful! Especially interested in the audio/last.fm integration. Last.fm makes it easy to embed widgets (http://www.last.fm/widgets/) - has a pretty rich api (http://www.audioscrobbler.net/data/webservices/) - which is pretty conducive to mashups (http://www.programmableweb.com/api/last.fm).

Great work Aaron - Looks like it's going to be a rich neighborhood!

Gus Austin
PepperAlley Productions

Gus Austin

Social Media CCK?

aaron's picture

I've gotten feedback that 'Neighborhood CCK' might be a confusing name. An alternative offered is 'Social Media CCK'. Any thoughts? (I'll keep the repository name as ncck so we don't create yet another upgrade path.)

Aaron Winborn
Advomatic, Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes

Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic

how about AV CCK (for audio

artatac's picture

how about AV CCK (for audio visual)

or
Multi Media CCK

regards

joe

Social Media ++

Boris Mann's picture

Social Media is a great term. I like it a lot...

+1 for "Social Media" ...

ray007's picture

+1 for "Social Media" ... "Social Media Field", or "Social Medial CCK" ... probably better the former ;-)

--
best regards

    Ray

If you need a drupal developer contact me!

--
best regards

    Ray

If you need a drupal developer contact me!

Media CCK?

gusaus's picture

But then again there is Media Field (http://drupal.org/project/mediafield). External Media CCK? hmmm.... maybe 'Social Media CCK' sounds best.

Gus Austin
PepperAlley Productions

Gus Austin

Remote media field

KarenS's picture

How about 'Remote Media Field'? Most of the CCK modules call themselves foo_field not foo_cck, and I think that what's special about this is that it is a way to link to remote media files. The fact that the remote sites are social sites isn't as important as that they are holding media in remote locations. In other words, I think 'Remote Media Field' immediately communicates that this is a field you can use to link to media in remote locations. 'Social Media Field' doesn't immediately have that meaning to me.

Remote Media seems to make

zirafa's picture

Remote Media seems to make sense, but it could also be interpreted as simply linking to a media file. I feel like this module is unique in that it parses URLs and automatically embeds media from other sites...maybe "Embedded Media Field" or "Media Link Field"?

+1 for "Embedded Media Field"

jbrown's picture

I vote for 'Embedded Media Field'. 'embedded' implies 'remotely', 'media' implies 'audio video' and 'field' is better than 'CCK' because when CCK is in core it wont be called CCK any more.

+1 for "Embedded Media Field"

batsonjay's picture

Ditto the above.

I personally like it when

amatlis's picture

I personally like it when the module name has a key word that I would be searching for, so I would vote for "Remotely Embedded Audio Video Field". Kind of ugly, I know, but very descriptive...

Remotely Shared Media or Embedded Media

texas-bronius's picture

I'll chime in my 2cents: how about "Shared Media" or "Remotely Shared Media". . Or if I've missed the point, then the opposite "Media Consumer" or "Media Embedder" or "Embedded Media"

I like the term social, it

chrisroditis's picture

I like the term social, it lends a contemporary feel to it, together with the word "media" but expanding it a little more to describe what this module actually does to "social media", I suggest:
embedded social media field
embedded social media CCK

Christopher Skauss
TemplateGarden.NET frightfully discounted website templates

A healthy disregard for the impossible.

Another direction

jlambert's picture

I like this discussion - it's fun. ;-)

BTW, every once in a while I come accross something on Drupal.org that makes me go, "Duh, why didn't I think of that?" This is one of those things - nice work.

I wouldn't suggest Social Media is a good idea. That's NOW, but times change and it's a super-trendy name. Hell, 5 years ago I would have called it Push CCK or DotComComm CCK or something lame like that. 5 years before that I probably would have called it DVD Vision (I kid, I kid!). Hehe, see my point? I think a more timeless name that's brand based rather than purpose based (as SocialMedia.*) would be fitting (as I think this module will quickly become core for our work - it looks to simplify a LOT of my daily work).

I wouldn't bet that the term Social Media will survive forever with a naming convention like that - most don't. Besides, can't you use this functionality to build non-Social Media sites? I totally think yes. You could use this to aggregate content for the most 1.0 corporate website imaginable, provided it was running Drupal (and some are!).

How about something like MediaMaven CCK, MediaMaster CCK, DrupalTube CCK, DrupalCast CCK, MediaSucker CCK, Broadcastr Media CCK, or something similar? I'm just suggesting. It doesn't really matter anyways... this is just for fun. And yes, I know some of my suggestions are trendier than heck. ;-)

Nice work.

Good points...

gusaus's picture

I now think that my previous suggestion wasn't that bad - 'Media CCK'? or 'MultiMedia CCK'?

Short and sweet - pretty self explanitory.

Gus Austin
PepperAlley Productions

Gus Austin

If "social" is too trendy ...

ray007's picture

How about "Remote Media Field"?
I think we need something to indicate it's about content embedded from another site, so just plain "media" or "multimedia" seems insufficient to me.

--
best regards

    Ray

If you need a drupal developer contact me!

--
best regards

    Ray

If you need a drupal developer contact me!

standard

tema's picture

- - similar to: canonical, canonic, basic
reduced to the simplest and most significant form possible without loss of generality

Is there an agreement about commonly accepted module naming conventions?

My 2 cents..

akmanocha's picture

My 2 cents goes for Media CCK... sweet and simple.. .
searchable too...

after search the project page will serve the purpose if any user want it or not

I like Remote Media Field. I

rustyGAPN's picture

I like Remote Media Field. I don't think Media Field is descriptive enough on its own unless you're planning to let people upload content using this module as well.

+1 for Embedded Media Field

sun's picture
  • All field modules for CCK end with "field".
  • "Media" describes all three kinds of media (and maybe more in the future)
  • "Embedded" describes exactly what is done with that media.
  • "Remote" would also imply that this module allows uploading of media to a remote location.
  • "Social" is quite meaningless and wouldn't allow to implement basic support for plain media files on remote locations in the future.

Daniel F. Kudwien
unleashed mind

Daniel F. Kudwien
netzstrategen

Upcoming Poll

aaron's picture

Wow! This has generated far more discussion than I thought it would. There are some great ideas here; I just love the collaborative nature of the Drupal community!

I'm going to set up a poll after lunch, to get a better sense of what people think we should name the module. I'm adding anything in the discussions that I've seen referenced two or more times (or once if I like it, since I'd also reference it in that case), in alphabetical order. If you think of a fantastic name (and someone agrees with it) before I set up the poll, I'll add it to the poll. Otherwise, there will be an 'Other' option, so you can add it in the comments there.

I'll add a mention on the project page to make sure anyone looking from there will know the name of the module is in flux.

With the exception of Media CCK (since Media Field already exists), I've changed anything with 'CCK' to 'Field' -- I agree with the points made that 'Field' is probably a better choice. You can make a case for 'CCK' here or in the poll; we can take that into consideration when tallying the poll, and probably be ok counting, for instance, 'Embedded Media Field' the same as 'Embedded Media CCK'.

I'll leave the poll up for two days. Sometime this weekend, depending on when I can get to it, I'll use the tally to rename the module. I'm not attached to the name we end up with; I want something the community agrees will be most useful. Unless the majority chooses something like 'Spaghetti Monster Pirate Module', in which case even though I'd like the reference, I'd have to veto for fear that no one would know what it was about.

The options as they stand right now: (let me know if I missed something or if you want another name considered)

  • Embedded Media Field
  • Embedded Social Media Field
  • Media CCK
  • Remote Media Field
  • Social Media Field
  • Other (Suggest name in comment)

Thanks,
Aaron Winborn
Advomatic, Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes

Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic

+1 Embedded Media Field

toursheet's picture

+1 Embedded Media Field -

Always remote?

Michelle's picture

The suggestion of "remote" in the name made me wonder, will this module always use remote files? Is there no chance that the ability to upload files right there will ever be added to it? If there's absolutely 0 chance of this, then the name is fine. Just thought I'd toss the thought out there that "remote" for a name would be bad if you ever decided to include uploading into the module.

Michelle

May upload in the future

aaron's picture

There are currently other options for uploading files into fields. That being said, I don't think an upload solution would be out of scope for this project -- I could envision that it would be beneficial to allow the possibility in some cases, as from both a UI and a theming perspective, it would be easier to use just the one field. Technically, once the module has matured, it wouldn't be so hard either, as it would just be a matter of adding a new contributed module. UPDATE: rather than 'contributed module', I meant to say 'include file'.

There's already an feature request in the queue to add this ability. I wouldn't want to rule out that choice this early on in development.

Aaron Winborn
Advomatic, Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes

Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic

That would be cool

Michelle's picture

I would really love to have a "do it all" field where the user can embed photos, video, audio from other sites or upload new ones on the fly all from one field. That's off topic for this thread, though. :) I only brought it up because that affects putting "remote" in the name.

Michelle

How about adding "Remotely

amatlis's picture

How about adding "Remotely Embedded Media Field" to the poll?

Machine Name and Contributed Modules

aaron's picture

On another note, after some thought on the matter, we'll need to change the machine name for the module as well, because ncck will carry no meaning after the module's name change. That won't be a problem for any sites already using the module (I have two already that use it), because the fields are actually controlled by contributed modules (video_cck and image_ncck), and I won't change their names. It just means that sites using ncck would need to delete that folder and install the new folder.

I'll plan to change the machine name of the module to something that makes sense (and is short enough to make coding bearable, particularly with any required hooks). So maybe something like em_field, for instance, if we choose Embedded Media Field. Although that would make for some awkward function names, like em_field_field. But so it goes.

I'm open to suggestions.

Another item to be addressed, though not of as much import (since they won't get their own project pages), is what to name the contributed modules within the /contrib folder. I guess they would best be called something similar, such as (using the example I've been using) 'Embedded Video Field' and 'Embedded Image Field'. Again, they'll keep their machine names regardless, because otherwise there would be migration problems for existing sites using the modules.

Any thoughts?

Aaron Winborn
Advomatic, Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes

Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic

Poll

aaron's picture

Poll is at http://groups.drupal.org/node/4693 now.

Aaron Winborn
Advomatic, Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes

Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic

Embedded Media Field

aaron's picture

The module has been renamed to Embedded Media Field (with a machine name of emfield). The Neighborhood CCK project will be deleted in about a week, so if you're using it, make sure to replace that with the new module. (Simply remove the ncck folder from your modules directory, add the new module, and go to /admin/build/modules and hit submit to activate it.)

Thanks for all your input! I think the name is a good one. (With no more confusion about Google Maps or Mr. Rogers...)

Aaron Winborn
Advomatic, Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes

Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic

sweet

jlambert's picture

I definitely think that's the best of all choices provided.

Nice work!

sweet!

texas-bronius's picture

There are so many ways to contribute to Drupal! I'm glad to have found a community of developers and users that can appreciate the finer points of semantics, syntax, and purity of structure.

New Drupal User

Blazing22's picture

Hey everyone, I'm a new Drupal user looking to create a site with embedded video. This code looks quite promising. I was wondering if there is any sort of documentation out there for someone like myself looking to learn the finer points of this module.

How with This Work with The Video Module

alsears's picture

How will this CCK module work with the existing Video module? Will the future releases of the video module integrate with this CCK?

We have put quite a bit of work importing and tagging videos into the existing video module, so I would hate to lose that work and have to re-enter the information.

Any thoughts?

Image

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week