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)

How to upgrade 4.7.4 Site

Hi-

I've inherited an actively-used Drupal site that has not been maintained since 2006. The current version is 4.7.4. I'd like to upgrade it to 6 or 7.

I see advice to make all minor upgrades, then the major ones. But I can't find where to get the 'latest' 4.x or any 5 versions.

Does anyone have advice about how to proceed? The site seems to be fairly stock, using core plus the following modules: captcha, ecommerce, event, flexinode, inline and simple_access. Given all the material that's online, I'd much rather upgrade than try to install from scratch!

Drupal 4.7.x with php 5.3?

Hi,
I am still lumbering with a site that is under 4.7.x and my provider has just updated to php 5.3
This has caused quite a few errors in user accounts, administration, and some other areas...
Are there any available patches for this version to run on php 5.3?
I wuold like to try and avoid upgrading if at all possible...
Thank you for your help and redirecting my if needed ;-)
Take care.

Drupal for mobile website?

My question is weird but I will try to be informative.
I start searching and research about cms open source which can manage mobile websites.
The cms have to be able to accept rulesets on which device to show what, to test the updates before publish to live and also users-editors to have rights to view and edit only their own texts and not others. Any suggestions?

Using Drupal for Medical DB Management

I need to take this from a stand-alone application to web application and want to use something pre-made to save time since it would be a massive enough project in itself converting it over.

Home Page Only

I'd like to have it so that only the home page of my website is running but the rest of the site is gone. I've backed up the site however I'm not sure if I should simply delete all of the other pages from the server or if that would cause Drupal to have problems running the home page. Does anyone have any insight or knowledge of this?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x