Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
.Net Assemblies/WSDL Import Utility for Delphi 6.0.4.0
Devart Excel Add-in for Zendesk 1.7
Excel Add-in for Marketo 1.7
GetOrgChart 2.5.3
AnyGantt JS Gantt Charts 8.6.0
AnyChart JS Charts and Dashboards 8.6.0
Multi Vendor Ecommerce Script & Apps 4.0
Magento 2 Inventory Management Extension 1.0
Top Code
Azizi search engine script PHP 4.1.10
HTMLPad 2018 15.5
Hyperion Tools 1.0
WoW Addon Studio 1.0
ATN Jobs Software 4.0
PHP 2 Lua 6.x-1.0
MLM Binary Plan Software 1.0.2
Java-2-Pseudo 1.0
ICDoctorAppointment - Doctor Appointment Script 1.2
Odoo Furnito Theme 1.0
Multi Vendor Ecommerce Script & Apps 4.0
TTX/FontTools 2.3
WAR Renown Rank 0.2
Calendar 365 For Dynamics CRM 4.0
Scimbo 2.4
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
jQuery Media 6.x-1.3
File ID: 97576






jQuery Media 6.x-1.3
Download jQuery Media 6.x-1.3http://drupal.orgReport Error Link
License: Freeware
File Size: 20.5 KB
Downloads: 8
Submit Rating:
jQuery Media 6.x-1.3 Description
Description: This is a wrapper for the jQuery Media plug-in.

The jQuery Media plugin will automatically turn links to media into their embedded media equivalents. The module works best in conjuction with the File Field module, but may be used in other cases as well.

Basic Configuration

See the New Video Tutorial!

Once installed, you need to go to the settings page for the module, and enter a few items for basic support. Simply tell it which node types to load the plug-in. If those node types have File Fields, it will automatically work. If you have updated the module from an earlier version, and have already visited the settings page, you may need to go back and add .filefield-item a to the Classes section to make that work.

To work with links other than File Field links, or to affect only certain File Fields (or to remove automatic File Field conversion), you'll need to add the classes of the link(s) to convert. By default, with .filefield-item a in the Classes section, all File Fields in the activated node types will be converted. If you need more fine-tune control, you can enter more specific CSS identifiers, separated by commas, such as .field-video-file a, .field-audio-file a.

You'll also need to have a media player installed, such as the JW FLV Player or Wimpy Rave. You'll need to enter the path to that player in the Default players section.

There are many more settings available, such as player width/height and color, and advanced settings, such as specific parameters and flash variables (useful for adding loading screens, logos, and the like). Additionally, you can override any of the global settings on an individual basis, usually in combination with template theming, as outlined below. Make sure to read the Help page installed on your server after enabling the module for the most up-do-date documentation.

Note that the Drupal 6 version no longer supports modal popups via MediaBox. There are much better plugins for this support, such as Thickbox. The Drupal 5 version still supports that; see that version's help page for more info.

It is strongly recommended that you use the latest revision of the jQ module in conjunction with this module, although its use is optional. You may also wish to download the jQuery BlockUI module if you wish to use the MediaBox functionality (although you would also need to update your jQuery to 1.2.3).

Advanced Customization

Theming is outside of the scope of this help page. You might look at Drupal's Theme Developer's Guide for more information. However, once you are ready to theme your elements, you only need to add a class and invoke this plugin. For instance, if you have a File Field with a video, simply use something like the following:
<?php
jq_add('jquery_media'); print l($node->title, $node->field_file_field[0]['filepath'], array('class' => 'media'));
?>

You may override the global defaults of this plugin when configuring. Additionally, you may override a global default on a case-by-case basis by including the override in an options array when invoking the plugin. For instance, you might override the background color of players on a specific page with jq_add('jquery_media', array('bgcolor' => '#33FF00'));. This will override the defaults of the plugin for every media link on that page, which may in turn override those individually (more on that later).

The full array of global overrides are as follows:

* 'flvplayer' => The path to the Flash Video Player to be used, such as the JW FLV Player or Wimpy Rave.
* 'mp3player' => The path to the MP3 Audio Player to be used, such as the JW FLV Player or Wimpy MP3 Player.
* 'media width' => The width the media will be displayed as.
* 'media height' => The height the media will be displayed as.
* 'autoplay' => If TRUE, then play the media as soon as loading it.
* 'bgcolor' => This will be the background color for the media player, in hexidecimal code (#RRGGBB).
* 'invoke media' => If TRUE, then cause all links with the 'media class' to automatically be turned into embedded media when invoking the plugin.
* 'media class' => The class that will be turned into embedded media on invocation. It uses jQuery CSS notation, so should be something like 'a.media' for links.

Finally, you may override a global setting on an individual basis. The customizations here are extensive, and rather than repeating that here, you are directed to the jQuery Media homepage for more information. As an example, you might set the size of a specific file with the following, while leaving any other jquery media links on the page at their default. (Note that we change the class away from the default 'media' in this example. It also assumes we've already invoked it as above.):
<?php
print l($node->title, $node->field_audio_file, array('class' => 'media-audio')); drupal_add_js("$('a.media-audio').media( { width: 200, height: 15, autoplay: true } )", 'inline');
?>

Note that by default, the module will add its default overrides inline. However, you may set it to output them to a dynamic javascript file, and may additionally wish to set the defaults to a static js file, once development is complete. You can alter those settings when configuring the module.

License: Freeware

Related: Media, Module, override, Plugin, default, Player, Settings, Links, jquery, Global, Field, specific, defaults, Enter, types, fields, Version, Scripts, media scripts, jquery media

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 20.5 KB

Downloads: 8



More Similar Code

Try GRAND FlAGallery - powerfull flash & jQuery media content plugin. It provides a comprehensive interface for handling image galleries, audio and video.

You can edit your media content the way you want: upload images, import music and video, create photo gallery, music playlists, group pictures in slideshow and add descriptions for each image, mp3 or video - GRAND FlAGallery is the smart choice when showing the best of your...



Try GRAND FlAGallery - powerfull flash & jQuery media content plugin. It provides a comprehensive interface for handling image galleries, audio and video.

You can edit your media content the way you want: upload images, import music...



#D7CX: I pledge that MediaFront will have a full Drupal 7 release on the day that Drupal 7 is released.

The MediaFront module is a front end media solution for Drupal. It employs an innovative and intuitive administration interface that...



*** See #315100: Allow to add JS/CSS libraries (sets of files, settings, and dependent libraries) for the patch to put jQ in core! ***

The jQ module allows other modules to register jQuery plugins in a central repository, and allows...



PLEASE USE AudioField instead!

This module adds Audio support to the FileField module for CCK. It will automatically detect if a file is mime type audio/mpeg, and take over from there.

In particular, it adds support for audio...



FancyBox is a tool for displaying images, html content and multi-media in a Mac-style "lightbox" that floats overtop of web page.
It was built using the jQuery library. Licensed under both MIT and GPL licenses



With the onset of HTML5, there is a dramatic paradigm shift in the wake for online media content delivery. For well over 6 years, this industry has been dominated by the proprietary Adobe Flash Player, which has been used to deliver high quality...



Shadowbox is an online media viewing application that supports all of the web's most popular media publishing formats. Shadowbox is written entirely in javascript and CSS and is highly customizable. Using Shadowbox, website authors can display a...



Provides a media thumbnail browser for editors to select nodes for fields and inline inserts of embedded nodes.

This module works in conjunction with CCK's Nodereference, Views, and WYSIWYG, creating a popup widget for editors that...



This module uses JQuery to add a fun and non-intrustive way of sharing the current node with social media sites: currently Twitter, Delicious, Digg, Facebook. Images become draggable and can be dropped onto logos that animate onto the screen to...

User Review for jQuery Media
- required fields
     

Please enter text on the image