Hello, my name is Aaron Winborn. I am a developer for Advomatic, the author of Drupal Multimedia, and a contributor and a co-maintainer of several Drupal modules, including the Media suite of modules.
Today, I will demonstrate a new feature of the Media: YouTube module: browsing and searching videos directly from YouTube, in the media browser itself. So first, let’s set up our environment.
We are assuming that you already know how to install Drupal. If not, you can find information at Drupal.org.
So right now we are at the modules administration page. We are interested in the modules under the Media package. You will need to install and enable the File Entity module (version 7.x-2.x), and the same version of the Media module.
We will not enable the included Media Field module; it is there for legacy purposes, and has been deprecated in favor of core’s File Field.
The Media Internet Sources module, included with the Media module, is a dependency of the Media: YouTube module, so we will enable that.
Next will be the Media: YouTube module, also version 7.x-2.x.
Finally, we will install the WYSIWYG module.
Let’s start by configuring WYSIWYG. We do that by going to Configuration > Content Authoring > WYSIWYG profiles. Note that I have also installed and enabled the Admin Menu module and the Admin Menu Toolbar module, which gives us the fancy drop-down menus for administration that you see here.
Now in order to use WYSIWYG, you need to have also installed a third-party WYSIWYG library, such as CKEditor or TinyMCE. You need to follow the instructions with the WYSIWYG module to install that, although it is quite simple actually. You just download and unpack the file into the sites/all/libraries folder. You can see that I am using CKEditor here.
The WYSIWYG module allows us to set up profiles for the various text formats on our site; in this demo, we will edit the Filtered HTML format.
Open up the buttons and plug-ins field set next. Then check the Media Browser check box. That will add the media browser button to our WYSIWYG editor, which we will see soon.
In order to use that however, we need to configure the filter in question. In fact, I believe that if we do not do this step 1st, we will get an error message, complete with a link to the format configuration page.
On this page, we need to check the box next to “Convert Media tags to markup”. That is the answer to the number 1 support question that we get in the Media queue, which is, “Why is there bracketed goobly gook instead of my images?”
So now, as we will see, everything should be working now. So let’s test it.
Here on the create article page, we see a fancy button on the body text area! Let’s click it.
And there we go.
These are thumbnails being pulled directly from YouTube. How about that?
And there is even a ghetto pager, or at least previous/next links.
And you can also search YouTube directly from our browser.
So now we will select a video and submit it. Add a title and save the node. And there we go.
And that’s it really. Well, almost.
There are some more settings, specifically here to control which tabs show up for WYSIWYG. Note that at the time of this demonstration, you will not have this functionality unless you install the patch over at node 1434118.
To complete the demo, we will also do the same for fields. Let’s add a field to hold YouTube videos. We will call it Media, and it will be a file field with a Media file selector widget.
Here, let’s reorder it as well for the demo.
We leave everything at their default settings.
Hold on, I forgot that we need to allow the YouTube URI scheme. And the video file type.
So now we will create a new article, and select the media.
And here we have all the tabs available to our browser, including the new and improved YouTube tab.
And also, let us look at another new feature of the media module: My files!
This has been a long-awaited feature for the Media module as well.
Now here comes the 2nd most asked question in the support queue: “How come there is a link to my file, rather than the file itself?”
Let’s just fix that now.
Now we are in the file type administration page, where we can configure the display for each of our file types. Note that we can also add fields to our files, although we are not going to do that in this demo.
We will jump to the video display...
No, we want to make sure that our large formatter is set up properly for YouTube. And it is, so let’s set up that as the formatter for our Media file field.
And there it is, as a generic file, which is simply a link to the file stream itself. We will change that to rendered file. And then we set the view mode to large.
While we are in there, we can do the same for our teasers. We will just set that to the preview view mode, which by default will display a thumbnail.
Whoops, I forgot to save it. Let’s just do that again.
Great information and well written.
Even a complete newbie like me understood it.
Keep up the good work.
very useful information. I will look forward to find out more.
Awesome article. You have some great insights. I love to read your blog while I’m at work to help pass time.
You have provided informative points. I will visit this blog often.
I found this article to be a very interesting!
Thank you for sharing with us!
Really great. You are absolutely welcome. And thank you for coming by! I really appreciate it.
In looking at this further, if you Google search on "ALS herbs" and "Gehrig Herbs", there are some links you may find interesting. An expert on herbs is Dr. Andrew Weil in Arizona Center for Integrative Medicine; he might have some suggestions to pursue in concert with your doctors. There are several herbs suggested to resist neural degeneration. Hard to know what to believe as some of the recommendations are on sites that sell herbs.
Search also on "gehrig fruit", to find a webpage about an Annals of Neurology study by Alberto Ascherio at Harvard, for an article with the text "Bright colored fruits and vegetables may hold the power to prevent or delay Lou Gehrig’s disease, also known as amyotrophic lateral sclerosis (ALS), a group of U.S. researchers found.". And you can ask yourself, from the name of a related book, "What Color is Your Diet"? Which may be hard, because if anyone has a "right" to unhealthy comfort food, it would seem to be you and your family.
One thing that surprised me also were discussions about mercury fillings (and other dental infection issues) and neural degeneration. Could there be some common toxin like that or something else related to ALS? Search on "Mercury ALS" for those discussions. Could people with ALS be sensitive, say, to some pesticides used in farming? Some pesticides work by destroying the nervous system of insects. Search on "ALS pesticides" for related discussions. Note that even if you have mercury fillings and eat foods with pesticides, it is possible that overall superior nutrition may better help your body to deal with related challenges even if you don't do anything about the challenges themselves. For example, the body does have biochemical pathways that excrete mercury, so the question might be, why are those pathways not working correctly in some people with ALS?
Still, I don't want to provide false hope, and likely all of these won't do much beyond perhaps slow the degeneration (if they work at all). Just making sure you have considered these options, even if they may not apply for you. There are multiple ways to approach diseases by trying to understand root causes, and mainstream medicine often ignores some of these basics, since there is no profit in telling people basic advice compared to selling drugs and procedures. As Dr. Joel Fuhrman says, we all have weak links (and strong ones) from genetics; whether those links get pulled on tends to be a function of diet and lifestyle.
About Joe Wions from his blog: "In 2003, I was forced into early retirement by ALS (aka Lou Gehrig’s Disease), from a successful career as a management consultant. Facing the nightmare that my life was about to end prematurely, I began to contemplate the horrors of a difficult demise, abandoning my family, financial ruin, and other emotionally crushing issues. It took about a month to shake off the depression, and get busy. Since traditional medicine offers no cure or effective treatment, and the expectation of certain death, I began exploring alternative medicine and healing practices. Along the way, I have experienced miracles of friendship, community, personal insight, courage, strength, and healing. As a result, I am now a member of an elite group – the less than 10% of PALS (persons with ALS) who have survived 10 years or more. I intend to keep exploring and learning until I heal completely, or until medical science finds a cure. I am currently seeking help to publish a book about my experiences. By sharing my story, I hope to inspire and motivate others with difficult challenges to find creative, productive and satisfying ways to persevere."
Even as he has passed on, maybe the information he left behind there may be of use to you?
A decade is a long time these days in medical research. Not saying that would work for you though. Just stuff to explore, the same way Joe Wions did.
It's ironic to think off all the knowledge about what works and what doesn't work to treat or prevent disease may be locked up in NSA computers if they indeed record all our conversations and emails with our doctors and relatives about medical issues (as well as anything else) -- but ironically that knowledge is not accessible for improving medical care because such organizations focus all that trillions of dollars of technology and innovation on preventing having historically thousands of US Americans killed by terrorism instead of preventing annually over a million US Americans killed by disease.
Anyway, I guess it may be hard to improve over Google these days for background medical research, if you kind of know what to look for in the first place from years of trial and error. And it is also hard to sift through the junk and scams from the gems -- very hard (why I think sensemaking tools could help with that). There is a funny Dilbert cartoon about "The Google Health Plan" somewhere. That is indeed where a caring competent medical professional may come in handy -- if your doctors listen and are always self-educating.
So, it looks like it is possible to at least manage the ALS disease for a decade, in some cases, with some combination of nutrition (including colorful organic fruits), herbs, perhaps removing toxins like mercury or pesticides, and similar approaches. Although, which is the right approach may be hard to figure out. Hopefully you have good doctors to help with that. MDs like Terry Wahls, Joel Fuhrman, Andrew Weil, or similar doctors may be able to help you in doing that.