Drupal modules api site - 2 views
Example Varnish VCL for a Drupal / Pressflow site | Drupal - 1 views
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
openscholar - 3 views
Usage as a Web Service | Art of Solving - 3 views
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...
Projects | pingVision Feature Server - 1 views
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";
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); ?>
Handling File Uploads | drupal.org - 1 views
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"'; }
Improving Drupal's Performance with the Boost Module for the UN's Millennium Campaign |... - 0 views
Web Development Company - The Need of The Hour - 0 views
Restrict specific folders from public download (via .htaccess) | drupal.org - 0 views
-
If you set "public" as the download method, you can still protect some of your folders by settings in your .htaccess file, if you have mod_rewrite enabled. For instance, if your files live in sites/default/files, and you want to protect everything in sites/default/files/protected_download_dir, then you can add the following line to your central .htaccess file: RewriteRule ^sites\/default\/files\/(protected_download_dir\/.*)$ index.php?q=system/files/$1 The files in this folder (or, all files that match the regular expression) will not be served directly by apache, but by a full drupal request using the file_download() callback. The routing for system/files is defined in system_menu(). Access Checking for File Downloads Modules can do access checking on files downloaded through file_download(), by implementing hook_file_download(). For instance, the filefield module will do access checking for all files that you upload via filefield. It will only give access to people who are allowed to see the node and the field the file belongs to. In addition, you can look for modules that restrict file downloads based on the folder name or other criteria. Access Checking built-in with Filefield The filefield module has access checking built-in. To make use of this, please Make sure to use the latest dev version of filefield (for now). The current offical release (08/2009) has a bug in access checking. Have a look into filefield issue 516104. Configure the filefield you want to protect. Use the filefield path module, to define where the files for the filefield should be stored by default. Add a line to your .htaccess to protect this folder (see above). Use whatever modules to restrict node or field access.
« First
‹ Previous
41 - 60
Next ›
Last »
Showing 20▼ items per page