Wednesday, March 23, 2011

Tally Error Out Memory

How to modify the breadcrumb for a node of a certain type

The breadcrumb is the set of links that usually appear on the top of the page to indicate the path taken to get there.

But, by default, is not always as they want.

In this case, show how you can modify using the file template.php shamrock theme , which is a subtopic of the topic did zen. Example


I have a project node, which is a CCK field field_proyecto_tipo , which can be 'New' or rendition .

breadcrumb is desired that the page can lead to new -op projects rojects-handed depending on whether the node type is presented 'New' or rendition .

 shamrock_preprocess_node function (& $ vars, $ hook) {
if ($ vars ['type']==' project') {$ type = $
vars ['field_proyecto_tipo'] [0] ['value' ] Drupal_get_breadcrumb
$ bc = ();
if ($ type == t ('New')) {
$ bc [] = l (t ('New Projects'), 'project-new');} else if
($ type == t ('Days')) {
$ bc [] = l (t ('Projects Delivered'), 'project-handed');}

drupal_set_breadcrumb ($ bc);}


/ / OPTIONALLY, run node preprocess-type-specific functions, like
/ / shamrock_preprocess_node_page () or shamrock_preprocess_node_story ().
$ function = __FUNCTION__. '_'. $ Vars ['node'] -> type;
if (function_exists ($ function)) {
$ Function ($ vars, $ hook);
}}


Reference

Friday, March 18, 2011

Brent Corrigan Vs. Zac Efron

How to make a second submit button

helpful to me this post: Additional submit button on node forms

Monday, March 14, 2011

Compatibility Parrot Samsung

Hugo Brehme, and the loss of the Faith

.
In the essay "comes to Mexico, Hugo Brehme, plates the hypothesis about the reasons for the arrival of Hugo Brehme to Mexico in 1906 and 1908, the line was still to develop the relationship with the geologist Paul Waitz, from a postcard where Brehme gives credit of authorship image, although for some years had profited as their own, the ambivalence of the relationship and the desirability of Brehme in the use of copyright merely complicate the real understanding of the situation in 1937 after accepting an authorship Waitz for claims as its own again.

L'Illustration, 27 March 1937. Geometrically

to establish a direction of movement we need at least three points between alternations, beginning a middle and end. In the modus operandi of Hugo Brehme will do the same to establish a pattern of conduct.

The postal "758-Brehme Waitz is a temporary marker, we know that the image was created in October 1920 and released for the first time between 1921 and 1922, moreover tells us how in the catalog of Brehme until that date only had included 758 pictures, this is of the few images where maintaining the chronological parameters with the inclusion in the catalog. Another temporary marker is the change of direction in the establishment of the photographer's Cinco de Mayo 27 Francisco I. Madero 1 sometime in 1928, together with other indicators that will detail in a forthcoming essay, I like the last record within the period, "7127" (at the time of research), in just six or seven years, the catalog is increased ten Sometimes referred coincidentally being the image relative to the eruption of Popocatepetl in 1920.

Postal Hugo Brehme 7127 catalog.

This is not surprising as the catalog is comprised of a chronological or thematic, but universal in consecutive order where the images are placed under business needs of Brehme. The postal "7127" has the distinction of being an aerial view of Popocatepetl and the "7104, 7106 and 7107."

December 20, 1920 with the No. 75 biplane designed by engineer and Angel Lascuráin Osio and built in Mexico, drivers Fernando G. Proal and Agustin Enriquez made a flight from Mexico City to Veracruz in just 2 hours 20 minutes, then met with the circuit-Veracruz-Tampico Mexico-San Luis Potosi, Mexico, even in the year 1920 is given flyby Popocatepetl and Iztaccihuatl to make the first aerial photographs of volcanoes, so it was necessary overcome the 5500 meters high, while the world record altitude flight tax that year was over almost ten thousand feet, the plane designed by Lascuráin intended as a commercial and non-experimental model so it is quite a feat. Among the exploits of Lieutenant Proal we can relate the following: Carlos Comball next to Lieutenant in September 1920 the first film from an airplane flying over the Hippodrome de la Condesa, aerial photographs of Mexico City ordered from American Photo Supply Co. by the War and Navy and the Ministry of Communications and Public Works, published in journals such as: "Review of Journals", "The Universal Illustrated "and" Jueves de Excelsior ", the first wireless transmission from an airplane on September 30, 1921, obtaining a radio frequency to exploit commercially EX1F, etc.

Hugo Brehme is not alone in using the photographs of Proal.

The four photographs in the catalog of Brehme "7104, 7106, 7107 and 7127" are photographs of a pilot aerial photographer Fernando G. Proal. We mentioned a catalog created by Hugo Brehme and Wilhelm Weber partner that we have been able to draw interesting conclusions, it does not physically exist and its reconstruction is a work begun by Susan Toomey Frost, now the reconstruction has a significant group of images, while some areas are well represented in other holes are plentiful, so we can not say that they are all images of the specific topic .

The catalog is another group of cards the number "1510, 1512, 1518, 1520, 1521, 1524 and 1526" for Chinese Poblanas. Susan Toomey Frost collector and specialist in Hugo Brehme postcards purchased for his collection, now in Wittliff Collections at Texas State University in San Marcos, a post equal to the "1520" but with the signature Casa Osuna. The postal number "1521" was used by the magazine cover Alchemy as its edition No. 16 "Hugo Brehme. The Mexican prototype, "as Hugo Brehme paradigmatic beauty, in the texts involved: Dennis Brehme, Aurelio de los Reyes, Jesse Lerner, Mayra Mendoza Avilés and José Antonio Rodríguez. The number "1510" was published Debroise Olivier in his book "Mexican Suite: a history of photography in Mexico", of course credited to Hugo Brehme.


The discovery of Susan Toomey Frost was not a mere curiosity, now give space to a different story on October 13, 1919 Osuna registered with Artistic Property and Literature in Mexico City Photo Number 147, 269, 274 to 279, 281 to 286, 291 to 294 and 296, corresponding to the motion picture "Tosca", eighteen photographs from the film "Frou Frou" twenty-six photos artists of the dance company "Anna Pavlova": Sixty-five photographs from the film "The Seven Deadly Sins", all as Casa Osuna, Dealer of Camus and Co. Germain.

Of the 26 photograph of the dance company "Anna Pavlova" in the AGN remaining 15, nine of them Chinese Puebla. The Post identified by the name Susan Toomey Osuna is a photograph of the Russian ballerina W. Verina, the one used in Alchemy is a photograph of the dancer Helene Saxova both the company of Anna Pavlova, and all images Brehme attributed to correspond to the record made by Osuna.

1521 catalog mailing Left Hugo Brehme. Right postal Osuna House No 11, AGN.

The issue is not settled there, postcards made from film tapes are part of a global advertising program, the same images to produce postcards dealers in Spain under the exclusivity J. Gurguí (Barcelona), or in Italy Vettori G. (Bologna). As the entire record was made under the same formula: "Casa Osuna, Dealer of Camus Germain and Company." We must assume that all the material was a concession to Osuna, including dance company "Anna Pavlova" including There are postcards of Muriel Stuart and Hilda Butzow who are not dressed as Chinese Poblanas and belong to a previous study Pavlova's arrival to Mexico, in the Chinese Poblanas rafter itself is portrayed in Mexico but not for Osuna.

Post Home Osuna, AGN. No. 9 left, right n º 8, Helene Saxova.

The author of such fine and delicate work is neither Sabino Osuna and Hugo Brehme, it would have been Osuna made a separate record your name will not believe you, both photographers portray itself and Chinese Charros Poblanas but their styles do not match the Images of the dance company, in part because of the same models, Brehme never recorded and the catalog numbers include at least after 1924. The postal "1315" is the first of ten where the font of Don Quixote in the woods of Chapultepec, which was a gift to Mexico City by Vito Alessio Robles Ambassador of Mexico in Spain in 1924.

Post Home Osuna. Left W. Verina, same as Hugo Brehme 1520 catalog. Muriel Stuart and Hilda right Butzow.

Neither had a photo studio, here we have to make the point, the first two premises of Hugo Brehme not become strictly a photo studio, according to the standards of the time, are a small local misplaced and German advertising only makes mention of his specialist in developing and printing for amateurs ... with the acquisition of the study of Emily Lange in 1928 changed things in 1919 year of the visit of Anna Pavlova Brehme was fourth No. 6 in the third floor of the building Mosler, Bowen & Cook, who occupied the building block Vergara (now Bolivar) between 2nd in San Francisco (now Avenida Madero) and Cinco de Mayo. The building housed a whole branch of the hardware store, which reminds us of Guillermo Kahlo using a space in the loft of the jewelry La Perla, and community support network of different ethnic groups, Jews, Lebanese, Chinese , German, etc.

The work was done in a studio in every sense of the word by a specialist at the height of the ballet company of Anna Pavlova, the ballerina of the moment more important globally, and Brehme and Osuna fall into that logic. The choreography was Eva Pérez, costume design by Adolfo Best Maugard, and music of Manuel Castro.

Who did it?

So far no response and probably not there, but we can speculate, in 1919 in Mexico City the most recognized and portrait studio photographer was Heliodoro J. Gutierrez who had just been installed in the building previously occupied by the Brothers Valleto and kept his two studies of New Mexico (Article 123), but there were also Emilio Lange, Napoleon, Photo Mack, including Garduño, Melhado or Lupercio, etc.

Left 1512 catalog mailing Hugo Brehme. Right Osuna House No 20, AGN. H. Saxova and Kunowite.

In the same time of Pavlova's visit to Mexico, HJ Gutiérrez portrayed as Chinese Poblanas her three nieces, one Esperanza Vélez de la Torre of his love of fencing would be fascinated by the Russian ballerina, and although his age is not allowed to become a professional dancer the applied his talents for many years as a teacher in Mexico City and Matamoros, coming to perfect their technique under the direction of Nellie Capobello, friend and teacher.

On September 26, 1921, was the great Mexican night in the Forest Chapultepec with traditional dances from around the country. In his organization participated Adolfo Best Maugard with the designs, Manuel Castro and Manuel M. Padilla Ponce with music. As Director of the Ballet of the Metropolitan Opera House in New York, Adolph Bolm. Manuel M. Ponce was a close friend of composer Aurelio Villanueva Escuti who shared house in the hills of San Diego No. 19 for several years, Aurelio was the nephew of the now renowned composer Philip Villanueva and his time boyfriend Aurora Vélez de la Torre with whom he later married .

The third niece Consuelo Vélez de la Torre was used in the shoe store and businessman Alfredo B. esportman Cuéllar (Shoe store was sacked by Villa with a promise to pay, which he never did), but mostly close friend, Cuellar was a founding member of the National Association of Charros 1921, the Company owns Film Manufacturing Mexicana SA, which among others are dedicated to producing newsreels from December 1919 under the name of a weekly magazine Cine Mexico, produced the film The scandal in 1920 where it works, author of the book in verse "Charrería" published in 1928, stars with Miguel Contreras in El Caporal ", etc., tireless fighter to sustain the tradition of horsemanship and Poblanas Chinese.

HJ Casa Gutierrez Osuna vs ...

tasty inclusion in the portfolio of the Pavlova of Mexican tradition, was an initiative that emerged in Mexico with the intention of dignifying and promote a part of what is clearly identified as a Mexican, it took a string of characters, from Venustiano Carranza inviting and ensuring the personal safety of the Pavlova, and members linked to their government and at the same time links of one form or another with HJ Gutiérrez, coincidences ever.

We should not think of a simple plagiarism by Brehme or been exposed to a lawsuit and a scandal he also might have obtained a concession unless the inclusion of the material had not been made around 1924 but after 1930, this option will try to speak when the fire Brehme study in 1930. None of the postcards that I know of the dance company of Anna Pavlova produced by Hugo Brehme can be dated before 1930.

found another group of images with a heavy burden of suspicion, it is the Tehuanas, having two groups, Tehuanas portrayed in their natural environment in the countryside and their homes for example "5947" and portrayed in a study Tehuanas or at least curtains and other items set "4412, 4413, 4414 and 4424. " Here, the CB may be involved or F. Waite Lion & C ...


The use of a curtain, rugs and some scenery utensils are not always absolute indicators of the existence of a photo studio, but knowing what material are a photographer hueya ( in this case there is a balustrade, a network, and a mini dock), some photographers traveling with few resources or investing in a curtain and worked with him outside, or pieces of colored modest, of which there are abundant examples, although feature is used as a way repeatedly until they were and investment to get the juices flowing, hand-painted backdrops were not cheap. As Brehme detected using multiple backdrops, each for a different occasion ...

Looking for reference in the book "Picturesque Mexico" one of the photographs from the series of Tehuanas with curtain next to a China Poblana, again a Brehme different style and also the use of another curtain. The image is well known that the model's face is familiar, this is a case of Columba Quintana ... the beautiful triplet that portray his early and mature CB Waite was edited by a series of postcards CIF wearing different clothes including China Poblana.

Quintana Columba's photograph correspond to an intermediate age between Waite and portraits of the CIF. I have not found other photographs of the triplet creditable allegedly Brehme.

few years ago on the website of "allcollection" Spain, was released a postcard, no mark of the author with the same backdrop and a Tehuana, was given a date of 1900 ca and I have not located a Brehme equivalent.

Two of the most important collections of Hugo Brehme is the National Photo Library Pachuca and Casasola Photography, both in origin are the rest of the file by Hugo Brehme and split vicissitudes of fate. Casasola's heirs by the file; Lucila Adrian Casasola Casasola and have operated under the criterion: if the file is Brehme, so does the wealth of their ownership of Augustine V. Casasola. Last year they released an "Agenda Memorial First Centennial of the Mexican Revolution 1910-2010", with 300 photographs taken by Augustine V, Casasola and Hugo Brehme.


To illustrate the seventh week, use the following image: "Mexican Boyfriends Photo: Hugo Brehme c.1910, it is curious that Latapi and Bert, Sonora News Compay, JCS, J. Granat, etc., Publish it, all on a date prior to the arrival of Brehme to Mexico in 1906. In case of an isolated case could be classified as a bug in the Casasola, but taken into account the premises: "Yes it is in the file is Brehme Brehme, and Brehme and repeatedly used outside their own material, then another case to the list.

Post: Sonora News Company, Latapi & Bert, JCS


Bringing matters more than ever the words of José Antonio Rodríguez:

"In cases like that of Hugo Brehme is when it becomes obvious: the camera is a complex apparatus whose image producing mechanism can be understood more from the history of mentalities. Which means, of course, the story of its makers and their motivations, that is, the ideological act behind the register. "

Nothing else to add to the repeated and overwhelming evidence that you can not have a Fe Hugo Brehme blind, and you need to understand the complex mechanism of ideological motivations and actions of the German, before asserting their superior creativity, except for advertising. And we need to carefully analyze their work, clarify the areas of suspicion and not trusting the signature or IDs cards and photographs of Hugo Brehme as evidence of authorship of the image, which themselves are good evidence of the production of material, much less of the material that is linked circumstantially in collections and albums.


How To Apply Marbalite

One way to use Cufon

Cufon is an alternative to replace the source of the page with other non-standard.

Cufón is a script to trace the sources of help. Js files generated (from this page http://cufon.shoqolate.com/generate/) from one source. ttf, otf, pfb or.

In the form that appears on page coufon generator can be useful (particularly English) indicate that in addition includes the following glyphs:

 ""''... _&--- åäöæøàèìòùáéíóúâêîôûäëïöüãõñçÅÄÖÆØÀÈÌÒÙÁÉÍÓÚÂÊÎÔÛÄËÏÖÜÃÕÑÇ © ® ™ ' "'× ⁺ 
Although
There Cufon module, describe here a way to use them directly.

files
and I put Cufon-yui.js. Js files of the fonts in a module. For example, the module misc.


code I create a block (called Cufon, for example) that contains php code that I require and is displayed on every page:

 \u0026lt;? Php 
drupal_add_js (drupal_get_path ('module', ' misc ').' / js / Cufon-yui.js');
drupal_add_js (drupal_get_path ('module', 'misc'). '/ js / MyFrutigerBold _700.font.js');
drupal_add_js ("$ (function () {
Cufon.replace (' h1.title. Views -field-title', {fontFamily: ' MyFrutigerBold '});
}) "," inline ");
?> Where

MyFrutigerBold is a name given in the form of the generator. js Cufon.

module
Cufon module can handle this with more comfort.

After installing the module, Cufon to copy-yui.js directory modules / Cufon / js and place. js sources a directory like sites / all / libraries / Cufon-fonts .

Configuration is done in Administer , Site Settings, Settings Cufon . In Selector , place something like h1.title. Views-field-title . Font family In , is chosen from the available sources.

Reference

Numbness In Left Leg During Menstruation

How to alternative AJAX login error

The normal login Drupal is a form that in case of error, leads to another page. The goal is a form used for login and AJAX permitted to display error messages without loading another page.




block I block (my-login) with this content:

 \u0026lt;? 
php global $ user;
?>

\u0026lt;? php if ($ user-> uid):?> \u0026lt;div id="block-my-login">


\u0026lt;div class="title"> \u0026lt; ;? php echo l (t ('Login'), 'user', array ('attributes' => array ('id' => 'btn-my-login'))) ?> \u0026lt;/ Div> \u0026lt;div class="content">

\u0026lt;ul>
\u0026lt;li>
\u0026lt;? Php echo l (t ('My Account'), 'user')? >
\u0026lt;/ li>
\u0026lt;li>
\u0026lt;? php echo l (t ('Exit'), 'logout')?>
\u0026lt;/ li>
\u0026lt;/ ul>
\u0026lt; / div>
\u0026lt;/ div>

\u0026lt;? php else:?>

\u0026lt;div id="block-my-login">
<div class="title"><?php echo l(t('Login'), 'user', array('attributes'=>array('id'=>'btn-my-login'))) ?></div>
<div class="content">
<form id="user-login">
<div class="username">
<label><?php echo t('Usuario') ?></label><input type="text" id="name" name="name" class="input text"/>
</div>
<div class="password">
<label><?php echo t('Contraseña') ?></label><input type="password" id="password" name="password" class="input password"/>
</div>
<div class="submit">
<input type="submit" id="submit" value="<?php echo t('Entrar') ?>" class="button submit"/>
</div>
</form>
<div id="loginresult"></div>
<div class="remember">
<?php echo l(t('Olvidé mi contraseña'), 'user/password', array('attributes'=>array('id'=>'remember'))) ?>
</div>
<div class="register">
<input type="button" id="register" value="<?php echo t('Registrarme') ?>" class="button register"/>
</div>
</div>
\u0026lt;/ div>

\u0026lt;? Php endif?>

\u0026lt;? Php
drupal_add_js (drupal_get_path ('module', 'misc'). '/ Js / login.js');
?>

The block shows a simple form for the login and a list of links to the user and logged. Javascript


misc / js / login.js contains the javascript:

 $ (function () {
$ ('# block-my-login. Title')
. Click (function (e)
{e.preventDefault ();
$ ('# button-green. content'). slideUp ('slow');
$ ('. Content', $ (this). ParentNode ()). SlideToggle ('slow');
return false;}
);
$ ('# user-login'). Submit (function () {
was url = Drupal.settings.basePath + 'user / login.json';
$. post (url, $ (this). serialize (), function (data) {
was Drupal.parseJson result = (data);
if (! result.error
{e.preventDefault ();
Drupal.settings.basePath + window.location.href = 'user / register';
return false;}
);
});


The script invokes the user action / login.json, defined in the module misc. Action





misc
The module for the user action / login.json:


/ ** * Implements hook_menu * / misc_menu function () { ...
$ items ['user / login.json'] = array (
'page callback' => 'misc_login_json'
'access callback' => 'user_is_anonymous'
); 
return $ items;}

...
misc_login_json function () {
if (! Isset ($ _POST ['name']) & &! Isset ($ _POST ['password'])) {echo
json_encode (array ('error' => t ('If requiere $ _POST [\\' name \\ '] and $ _POST [\\' password \\']')));
return;}

$ name = $ _POST ['name'], $ password = $
_POST ['password'];
if ($ msg = user_validate_name ($ name)) {echo
json_encode (array ('error' => 1, 'result' => $ msg));
return;}
$
account = User_load (array ('name' => $ name, 'pass' => $ password, 'status' => 1));
if ($ account) {
user_external_login ($ account);
echo json_encode (array ('result' => 'OK'));
return;
} else {echo
json_encode (array ('error' => 1, 'result' => t ('Please check your name username and password .')));
return;}

return;}





Friday, March 11, 2011

102.8 Fever In A 5 Year Old

Solving dl drush




came
using drush In Windows, I got an error like:
C: \\ bin \\ dev \\ xampp171 \\ htdocs \\> drush drupal-6.20 dl
Source directory [error]
 
C: \\ Users \\ compaq \\ AppData \\ Local \\ Temp/drush_tmp_1299865530/drupal
not is readable or does not exist. Project
drupal (6.20) not could be downloaded to [error]

 investigating, is due to an issue documented in 
http://drupal.org/node/1078318
.
Alli proveen también el parche
http://drupal.org/files/issues/drush-1078318.patch
:

diff --git a/commands/pm/pm.drush.inc b/commands/pm/pm.drush.inc index e39096a..18ec069 100644 --- a/commands/pm/pm.drush.inc
+++ b/commands/pm/pm.drush.inc @@ -1858,7 +1858,7 @@ function pm_parse_project_version($requests) { function pm_project_types() {
// Lookup the 'Project type' vocabulary to some standard strings.
$types = array(
 -     
'core' => 'Drupal project',
 
+
'core' => 'Drupal core ',

' profile '=>' Installation profiles',
'module' => 'Modules',
' theme '=>' Themes', is, has been a change in the value core field of
'Drupal project' to 'Drupal core'
, because, as I understand, to a change in the taxonomy used in the drupal project. The issue is March 2, but I've just noticed this week.

workaround, apply the patch to drush you have installed. You can manually. For example, in Windows, locate the pm.drush.inc

: C: \\ bin \\ dev \\ drush \\ commands \\ pm \\ pm.drush.inc:

pm_project_types function () { / / Lookup the 'Project type' vocabulary to Some standard strings. $ types = array (
'core' => 'Drupal project',
'profile' => 'Installation profiles', ' module '=>' Modules', 'theme' => 'Themes '
' theme engine '=>' Theme engines'
) 
return $ types;}





Tuesday, March 1, 2011

Gut Feeling On Roller Coasters

Audioplayer with rsync Solving





To make an audio file player (mp3, etc) audio plugin helps
This article does not intend to instruct on the best way to make an audio player. Simply speak the way I'm walking (it is a work in progress) in developing a solution. It may help someone somehow.

The idea The idea is to upload audio files (start with mp3) that can be organized into playlists, or playlists.

A user can upload as many files as you want and define their own lists.
preferably with software that has no restrictions on commercial use, just in case.

method

Start with the essentials, the least. Moving towards the next minimum and essential step. And so on. Applying the standard freely.


Outlining the solution


Upload . You can use the module FileField. Playlist
. I found a module for this, apart from audio. Searched plugins for jQuery. I want one that allows to stop running the play list. found drplayer and
flowplayer
, among others. Flowplayer looks very promising. Drplayer is simple to use. After many laps, I thought it was distracting me too much on the choice of player, which perhaps could be interchangeable. Exploring drPlayer I make a simple demo without using Drupal to check which requires:

\u0026lt;html> \u0026lt;head> \u0026lt;meta http-equiv = "content-type" content = "text / html; charset = utf-8" /> \u0026lt;link rel="stylesheet" href=" drplayer.css
" type="text/css" />
<script src="
jquery.js
 " type="text/javascript"></script> 
<script src="
drplayer.js
" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() {
$("#playlist").playlist( { playerurl: "swf/
drplayer.swf " }
);
});
</script>

</head> <body> <div id="
playlist
">
<div href="
mp3/cancion-01.mp3
" style="width: 400px;" class="
item
">
<div> <div class="fr duration
">03:00</div> <div class="btn play"></div> <div class=" title "><b>Artista 1</b> - Canción 01</div>
</div>
<div class="player inactive"></div>
</div>
<div class="clear"></div> <div href="
mp3/cancion-02.mp3
" style="width: 400px;" class=" item ">
<div>
<div class="fr
duration
">04:00</div> <div class="btn play"></div> <div class=" title "><b>Artista 2</b> - Canción 02</div>
</div>
<div class="player inactive"></div>
</div>
<div class="clear"></div> </div>
<div class="clear"></div>
\u0026lt;a href="javascript:void(0);" onClick="$('#playlist').playlist('prev');"> Prev \u0026lt;/ a> \u0026lt;a href = "javascript : void (0); "onClick ="$('# playlist). Playlist (next');"> Next \u0026lt;/ a>

\u0026lt;a href =" javascript: void (0); "onClick ="$('# playlist). Playlist ('pause Pause');"> \u0026lt;/ a>
\u0026lt;a href = "javascript: void (0);" onClick ="$('# playlist) . playlist ("Play Play');"> \u0026lt;/ a>


\u0026lt;/ body>
\u0026lt;/ html>


That is, the list is contained in a block
# playlist
. Each item is a block
.
item. The title field is a block
.
title and the duration is a block
.
duration. Later, I found it necessary to also consider a block . Player. inactive for each item. I think you could use the views module html to build this structure. Using



id3 module getid3
to allow for use getid3 obtain the metadata of a file.
The metadata of an audio file contains information such as title, artist name, duration, album name, year, etc. getid3 Once installed, the nodes containing a file upload field will have a $ node-> field_audiofile [0] containing the metadata (you can read a little more about that in Article FileField Solving Dynamic Field Goal and using
), which can be used to fill the structure required to drplayer. Cool.

Audio Content Type

Define the content type Audio (audio) with the File field (field_audio_file) File type. Indian
also will not use the field
Body (leaving blank the name of that field). To facilitate filling Title
field, it is useful auto_nodetitle

module that is configured in the same tab edit the content type. There, indicated that the title is generated automatically if left white (giving the user the option to put another thing, if desired). Having installed the module also token, I indicated that the pattern of auto titles were:

[field_audiofile-FileField-filename] is, the name of the uploaded file.

Audio list
 

Set view
audios, showing
type audio nodes and fields Node: Title , Content: File
. For the duration, I need some php code entry module using views_customfield allow to use php to generate the contents of a field. At first, I put aside the question of the duration and tried to continue with the file name only. tried using templates to create the structure required for drplayer. With View-xxx.tpl.php could give each block the id and class required. # Playlist containing
.
item containing
.
and title. duration. However, the structure requires that the file name is as href element. item and could not think of a way to achieve that with the templates as the template that allows me to customize the block . item has not available a variable with the file name. I guess there's any way to use template.php to publish the variable you need in that case, but the hooks do not command much of the hearing and made me more natural to imagine that you could use a CustomField: PHP to generate all the html that is required from $ data-> nid available:
\u0026lt;? php echo
misc_get_drplayer_html_audio ($ data-> nid); ?> misc_get_drplayer_html_audio function defined in the module misc:

 misc_get_drplayer_html_audio function ($ nid) {$ node = node_load 
($ nid);
$ audiofile = $ node-> field_audiofile [0];
$ filename = base_path (). $ audiofile ['filepath'];
$ duration = $ audiofile ['data'] ['duration'];
$ duration_h = sprintf ('% 02d:% 02d', $ Duration/60, $ duration% 60);
$ artist = $ audiofile ['data'] ['tags'] ['artist'];
$ title = $ audiofile ['data'] ['tags'] [ 'title'];
 $ html = '


'. $ duration_h. "




'. $ Artist. "
- '. $ Title. "
'; return $ html;}
good thing about using this method is that it allowed me more comfortable access to the metadata of the file, not directly available in the view.
With this, you can get a view that shows the structure of songs required by drplayer. Module


drPlayer


drPlayer To add to drupal, create the module drplayer, empty, just to hold the files of that library in the subdirectory
modules / drplayer / drplayer /
.
Then, in the view audios, in the display that shows the playlist files, Basic settings,
header, indicated the following contents php:
\u0026lt;? Php
drupal_add_css (drupal_get_path ('module' 'drplayer').'/ drplayer / drplayer.css', 'module'); drupal_add_js (drupal_get_path ('module', 'drplayer').'/ drplayer / drplayer.js' 'Module'); drupal_add_js ('$ (document). Ready (function () { $ ("# playlist"). Playlist ( {
playerurl: "'. Base_path (). Drupal_get_path ('module', ' ').'/ drplayer drplayer / swf / drplayer.swf "
}); 
});', 'inline');
?>

drplayer
This invokes the time to show the view.



Next step

User can define your own playlist. References





http://dryicons.com/free-icons/preview/colorful-stickers-icons-set/