Custom Block: Programmatic Google Video Search Results

Here's the code to create a custom block in drupal that will display the results of a Google Video search based on a specific search term. I had to dig around a bit to find out how to do this, so I'm posting it here.

NOTE: You'll most likely want to turn on the PHP Filter module and use that input format setting for this code, so that none of it gets taken out when the block is displayed.

google.load('search', '1'); function OnLoad() { // Create a search control var searchControl = new google.search.SearchControl(); // So the results are expanded by default options = new google.search.SearcherOptions(); options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN); // Create a video searcher var videoSearch = new google.search.VideoSearch(); // Set the result order of the search - check docs for other orders videoSearch.setResultOrder(google.search.Search.ORDER_BY_DATE); // Set the size of the search results // OPTIONS: // LARGE_RESULTSET - request a large number of results (typically 8 results)

Ubercart USPS shipping

I am trying to set up my USPS shipping (Ubercart) online and instead of showing me the prices, etc it spits the xml on the page. i am connected to the production server and the data seems to be coming but being displayed raw. Any help?

wysiwyg module stopped working

i can't recall making any changes to the wysiwyg module settings but it stopped working. once i noticed the error i completed the latest update for drupal and for wysiwyg but it still doesn't function. any thoughts?
thanks!
shane

Registration and Moderation Modules

A client of mine wants a website that he will have back end functionality with, which is why I chose a CMS script to work with. While Drupal fulfills those needs, there are two specific needs that he requested that I need some help with—or module/profile suggestions. While not going into too much detail about it, here are the specs:

How do I install "Services"?

I downloaded the package here: http://drupal.org/project/Services but can't find any installation instructions. Anyone know where

to look?

D8: Drupal 8 suggestions (deprecating nodes)

Hope I'm not jumping the gun, or pre-empting any official discussion, but I'd like to offer my (non-wish list) suggestions for Drupal 8, which is aimed at making it more consistent and more flexible.

Deprecate nodes

The problem I have with nodes, is that they come with a lot of baggage and inflexibility. I don't run a blog, and have never needed "posts" to have an author, revision dates, option for comments etc. And consequently there are a thousand modules required to "override" their inflexibility.

Replace nodes with "records" based on CCK, Views, Rules, Theme template engine

I'd like to see Drupal 8 based on core Fields, Views and Rules, and modules based around them. The huge advantage of this, is flexibility. For example, a node title is special text field that must appear first on a page. If a node title was a a standard CCK field, it could appear in a different order on a page, or even be a date field. I see Drupal 8 to be more like a standard relational database.

Extending CCK

I envisage CCK fields being a bit more flexible, so that I don't need new CCK modules. I should be able to define my own CCK data field formats, specifying how the data is verified, formatted and displayed. All we're really doing is displaying collections of data objects.

Modules

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x