imagefield

Fix for Using jquery cycle and lightbox in node tempalte using image field images

  1. <?php
  2.  drupal_add_js(path_to_theme() .'/jquery.cycle.js', 'theme');
  3.  drupal_add_js("
  4.   $(document).ready(function(){
  5.     $('#photos').cycle({
  6.      fx:     'fade',
  7.      speed:  2500,
  8.      t

Fix for teaser thumbnail function for imagefield

  1. <?php
  2. //put in template.php
  3. function theme_get_node_image($node, $field = 'field_images', $preset = '150x150_scaled', $float='right', $width="150"){
  4.   if(!$node->$field){
  5.     return false;
  6.   }
  7.  

Code

  1. /**
  2.  * shadowbox.module
  3.  * How to display image title in separate div after the image
  4.  *
  5.  * Change line 287:
  6.  */
  7.  
  8.   return '<div class="' . $wrapper_classes . '">' . $output .

Fix for Image to imagefield converter

  1. php
  2. /**
  3. * @file
  4. * Migrate all image.module nodes to imagefields in Drupal 6.
  5. *
  6. * PREREQUISITES
  7. * -------------
  8. * - You must create a single imagefield field to which all your images will be mig

Fix for Image Field Import

  1. file_copy($path, $dest, FILE_EXISTS_REPLACE);
  2.     $node->field_foto[0]['list'] = 1;
  3.     $node->field_foto[0]['data'] = array('description' => '', 'alt' => '', 'title' => '');
  4.     $node->field_foto[

Fix for Image Field Import

  1. function cp_field_file_save_file($filepath, $validators = array(), $dest = FALSE, $account = NULL) {
  2.  
  3.   // Add in our check of the the file name length.
  4.   $validators['file_validate_name_length'] =

Fix for Fix for Image Field Import

  1. // get the field and its validators
  2.  
  3. $field = content_fields('field_bilder', 'INHALTSTYP');
  4.  
  5. $validators = filefield_widget_upload_validators($field);
  6.  
  7.  
  8. // make sure that the directory exists

Fix for Fix for Image Field Import

  1. if ($row['avatar']) {
  2.         $path = 'files/old/joomla/images/comprofiler/' .

Fix for Image Field Import

  1. if ($row['avatar']) {
  2.         $path = 'files/old/joomla/images/comprofiler/' .

Fix for Image Field Import

  1.   // get the field and its validators
  2.  
  3.   $field = content_fields('field_bilder', 'modell');
  4.  
  5.   $validators = filefield_widget_upload_validators($field);
  6.  
  7.   // make sure that the directory exists
Syndicate content