Skip to main content

Home/ Groups/ Drupal for Developers
Daniel Gregoire

Wiki Pages - drupal-chart-api - Project Hosting on Google Code - 2 views

  •  
    Chart API module documentation
Richard Sheppard

Drupal: Programmaticaly creating nodes | Unofficial, unsactioned stuff out of Byte Craft - 2 views

  •  
    A rough guide to drupal_execute() versus node_save() with a bit of node_submit() on the side.
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

Multi-step Forms in Drupal 6 using variable functions | pingVision - 1 views

  •  
    Unique method for handling multistep forms in Drupal.
Daniel Gregoire

Wrapper ID (form-item) not displayed for Checkboxes / Radio Buttons CCK Fields | drupal... - 1 views

  •   if (!empty($element['#id'])) {    $output .= ' id="'. $element['#id'] .'-wrapper"';  }  else { // if we can't get the #id from $element['#id'] just build it from $element['#name']    $id=explode("[value]", $element['#name']);    $output .= ' id="'. $id[0] .'-wrapper"';  }
  •  
    Small fix for giving radio/checkbox form elements a proper ID on their wrapper. By default in 6.16 and CCK, no proper CSS ID is given to the wrappers of radio buttons and checkboxes, making it impossible to theme the layout of those elements in the form (specifically for me, the node edit forms).
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

How To Create Users Programmatically In Drupal 6.x - 1 views

  • <?php $newUser = array( 'name' => 'username', 'pass' => 'password', // note: do not md5 the password 'mail' => 'email address', 'status' => 1, 'init' => 'email address' ); user_save(null, $newUser); ?>
  •  
    Create users programmatically. A bit less involved than creating nodes; you just need to populate an array with values, don't need to cast it into an object.
Daniel Gregoire

Programmatically Create, Insert, and Update CCK Nodes | doug | CivicActions - 2 views

  • Always use content_database_info to get the database info. For example:   $field1 = content_database_info(content_fields('yourfield1', 'yourtable'));  $table1 = $field1['table'];  $column1 = $field1['columns']['value']['column'];  $field2 = content_database_info(content_fields('yourfield2', 'yourtable'));  $table2 = $field2['table'];  $column2 = $field2['columns']['value']['column'];  if ($table1 == $table2) {    $sql = "SELECT n.*, t1.$column1, t1.$column2 FROM {node} n ";    $sql .= " INNER JOIN {$table1} t1 ON t1.nid = n.nid AND t1.vid = n.vid";  }  else {    $sql = "SELECT n.*, t1.$column1, t2.$column2 FROM {node} n ";    $sql .= " INNER JOIN {$table1} t1 ON t1.nid = n.nid AND t1.vid = n.vid";    $sql .= " INNER JOIN {$table2} t2 ON t2.nid = n.nid AND t2.vid = n.vid";  }  $sql .= " WHERE n.nid = %d";
  •  
    Important point: Using special functions to let CCK get the proper name of the field (allowing users to make CCK changes in the UI and let your code continue to work).
Daniel Gregoire

Load Testing Tools and Tips | Tag1 Consulting, Inc. - 1 views

  • ApacheBench (ab)
  • $ ab -n1000 -c10 http://localhost/
  • Links: Project's web page: http://httpd.apache.org/docs/trunk/programs/ab.html Benchmarking Drupal code with ab: http://drupal.org/node/79237
  • ...5 more annotations...
  • Siege
  • siege -c 10 -i -t 5m -d 3 -f url_list.txt
  • Links: Project's web page: http://www.joedog.org/JoeDog/Siege Sproxy project page: http://www.joedog.org/JoeDog/Sproxy
  • Apache JMeter
  • Links: Project's web page: http://jakarta.apache.org/jmeter/ Load testing Drupal with JMuery, part 1: http://www.johnandcailin.com/blog/john/load-test-your-drupal-application... Load testing Drupal with JMuery, part 2: http://www.johnandcailin.com/blog/john/load-test-your-drupal-application...
  •  
    Load testing tools. ab and siege are command-line, JMeter is graphical (and written in Java).
Scott Blackburn

Projects | pingVision Feature Server - 1 views

  •  
    Image gallery Feature for OpenAtrium
Daniel Gregoire

Handling File Uploads | drupal.org - 1 views

  •  
    Extra coding needed to handle file uploads outside of FAPI definitions.
Scott Blackburn

Drupal Performance and Scalability | Tag1 Consulting, Inc. - 0 views

  •  
    Obtaining Optimal Performance From Drupal And The LAMP Stack. This book is written by Jeremy Andrews and licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Unported License.
Scott Blackburn

How to have a content type use a different page layout? | drupal.org - 0 views

  • function newsflash_preprocess_page(&$variables) {  if ($variables['node']->type == "static") {       $variables['template_files'][] = 'page-node-static';  } elseif ($variables['node']->type == "news") {        $variables['template_files'][] = 'page-node-news';  } elseif ($variables['node']->type == "codes") {        $variables['template_files'][] = 'page-node-codes';  } elseif ($variables['node']->type == "jokes") {        $variables['template_files'][] = 'page-node-jokes';  } }
Daniel Gregoire

drupal_hash_base64 | Drupal API - 0 views

  •  
    Drupal 7 function for generating url-safe sha-2 hashes.
Scott Blackburn

Nick Sergeant :: My thoughts on small-scale Drupal development to production environmen... - 0 views

  •  
    Nick Sergeant comes through again by sharing his development and production environments.
Scott Blackburn

Introducing Spaces for Drupal | Development Seed - 0 views

  •  
    This looks like a module to watch if you develop intranets and use Organic Groups heavily.
Scott Blackburn

Content migration: options and strategies » Step Two Designs - 0 views

  •  
    Good article if you need to re-think site migration, especially from a content perspective. This isn't really about Drupal only.
« First ‹ Previous 41 - 60 Next › Last »
Showing 20 items per page