Drupal
Empty title always returned when using displays
Posted June 16th, 2008 by douggreen_panels_page_get_title returns an empty title when you use a panels display. Use use empty() instead of isset().
Look at hook_search_preprocess
Posted June 12th, 2008 by douggreenRather than hook_form_alter, you should look at hook_search_preprocess.
Block visibility not working with non-numeric block delta's
Posted June 6th, 2008 by douggreenThe block delta is a string, and not a number, so this query needs to use %s instead of %d.
The column definition from system.install is:
delta varchar(32) NOT NULL default '0',
Ajax on initial "bookmark this" doesn't work
Posted May 29th, 2008 by douggreenWhen the link says "bookmark this" after page refresh (not after any ajax), if you click on the link, the ajax properly updates the database, but the jquery doesn't properly update the text such that the link still says "bookmark this". If you refresh the page at this point, everything is OK. But if you don't refresh the page, this link says the wrong thing.
Make hook_delicious match LIKE terms
Posted May 22nd, 2008 by douggreenI have a need for hook_delicious to sometimes support exact matches and other times to support LIKE matches. To support this, the array returned by hook_delicious can now defined an array element named 'like' => TRUE, which tells delicious to use SQL LIKE. I've implemented this in the 5.x branch, but this needs to be ported forward to the 6.x branch.
Support Hierarchical Taxonomies
Posted May 13th, 2008 by douggreenThanks for the module!!! What was the reasoning behind disallowing hierarchical taxonomies?
Performance Issue during Indexing - more optimal search totals calculation
Posted May 13th, 2008 by douggreenNot LIVE FROM THE MINNESOTA SEARCH SPRINT, but found on the plane ride home...
Performance Issue during Indexing - extra unused query
Posted May 13th, 2008 by douggreenNot LIVE FROM THE MINNESOTA SEARCH SPRINT, but found on the plane ride home...
Performance Issue during Indexing - search_dataset.sid_type unique key should be an Index
Posted May 13th, 2008 by douggreenNot LIVE FROM THE MINNESOTA SEARCH SPRINT, but found on the plane ride home...
The {search_dataset} has a unique key named "sid_type". Because of the query in search_wipe, which is called on every single sid that gets indexed, this unique key should be an index.
Search indexing should Ignore javascript in tags
Posted May 11th, 2008 by douggreenThe search engine is indexing javascript inside of <SCRIPT> tags. See #257076.
The solution is to put script javascript inside an HTML comment. This is what we had to do in the 1990's when some browsers didn't support script. And I think it's still good practice.