Skip to main content

Home/ Drupal for Developers/ Contents contributed and discussions participated by Daniel Gregoire

Contents contributed and discussions participated by Daniel Gregoire

Daniel Gregoire

Setup of /sites directory for multi-site | drupal.org - 0 views

  •  
    Good overview of directory structure for setting up Drupal multisite installations.
Daniel Gregoire

On RHEL and CentOS. | drupal.org - 0 views

  •  
    Script and explanation of getting Solr setup as a service in RHEL/CentOS.
Daniel Gregoire

Securing file permissions and ownership | drupal.org - 3 views

  •  
    Security pre-flight checklist. Files.
Daniel Gregoire

Reducing server resource utilization for busy sites by implementing fast 404s in Drupal... - 3 views

  • // List of extensions for static files $exts = 'txt|png|gif|jpe?g|shtml?|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp|xml'; // It is not an imagecache path, which we allow to go through Drupal if (!strpos($_SERVER['QUERY_STRING'], 'imagecache')) { // It is not our main feed page if ($_SERVER['QUERY_STRING'] != 'rss.xml') { // Is it a static file? if (preg_match('/\.(' . $exts . ')$/', $_SERVER['QUERY_STRING'])) // Just send a 404 right now ... { header('HTTP/1.0 404 Not Found'); print '<html>'; print '<head><title>404 Not Found</title></head>'; print '<body><h1>Not Found</h1>'; print '<p>The requested URL was not found on this server.</p>'; print '</body></html>'; exit(); } } }
  •  
    Fast Drupal 404 handling for static files.
Daniel Gregoire

Searchlight: A Views-driven Approach to Pluggable Search in Drupal | Development Seed - 5 views

  •  
    Write-up and video on Development Seed's new "Searchlight" module, which brings the power of Solr or Sphinx as Views backends. A la Views 3.x, but with some differences. Also nice demo of Health Market Innovation's site which Dev. Seed did.
Daniel Gregoire

Ubuntu 10.04 and Drupal | fen | CivicActions - 4 views

  •  
    Good instructions for getting rid of php5.3 and installing php5.2 under Ubuntu 10.04 (Lucid Lynx)
Daniel Gregoire

Module Development - Schema Won't Install | drupal.org - 0 views

  • I had similar symptoms ... a simple install file that wouldn't create a table. However, I got it to work by going into the Drupal system table and deleting the record for my module. Then the next time that I enabled my module, Drupal freshly discovered it and ran the .install file to successfully create the table. Summary. When you have a module already in use (and so it appears in the system table), and *then* as a developer you create its .install file, it doesn't look like a *new* installation to Drupal (since the module name was already in the system table), so hook_install never gets called.
  •  
    Trick for schema's that won't install. If you have a custom module that you _had_ installed before making a .install file and including a schema, you need to: (1) Disable your module (2) Uninstall your module (3) Delete your module's row in the 'system' table in your Drupal database. Then you can re-introduce your module, and all its files will be recognized.
Daniel Gregoire

How many RSS subscribers? | VenturaCottage.com - 2 views

  •  
    Quick snippet for adding number of subscribers to RSS feed by looking at accesslog. See comments for (better) alternatives.
Daniel Gregoire

20 APIs in 20 Days: Remember to Bring Your Tokens | Trellon - 3 views

  •  
    One of a series in 20 api's, Token module.
Daniel Gregoire

Views Slideshow Theming | Drupal Video Podcast - 3 views

  •  
    Video about views_slideshow and theming
Daniel Gregoire

Example Varnish VCL for a Drupal / Pressflow site | Drupal - 1 views

  •  
    Example Varnish configuration, used for optimizing site performance with file and database caching.
Daniel Gregoire

3 Tips For Using External Libraries With Drupal | Engineered Web - 4 views

  •  
    Good tips for using external libraries with Drupal.
Daniel Gregoire

How to define page callbacks that you don't want to render using page template in Drupa... - 1 views

  • Method 1 : Printing your stuff and exit
  • Method 2 : Printing your stuff and returning NULL
  •  
    Callbacks, and how to get just the output (without template calls, etc.).
Daniel Gregoire

PHP 5.2.10 .debs for Ubuntu 10.4 (Lucid) | The Jibe Multimedia, Inc. - Business Solutions - 0 views

  •  
    Resource for .deb file for PHP 5.2 on Lucid Lynx (Ubuntu 10.04), since we only have deb's for 5.3 by default, which makes Drupal contributed modules unhappy.
Daniel Gregoire

drupal_hash_base64 | Drupal API - 0 views

  •  
    Drupal 7 function for generating url-safe sha-2 hashes.
Daniel Gregoire

The New Way To Generate Hashes In Drupal 7 | Engineered Web - 0 views

  •  
    Explanation of shift away from md5 to sha-2. See links to Drupal 7 api for (really easy) functions for generating url-safe sha-2 hashes.
Daniel Gregoire

Drush Make and PressFlow | Lullabot - 4 views

  •  
    "Drush make" in the spirit of *nix 'make' command, allows developers to create make files that will automatically download project files (Drupal.org and external).
1 - 20 of 70 Next › Last »
Showing 20 items per page