Problème view slideshow ddblock - les images ne s'affichent pas dans le slideshow

Information importante

En raison d'un grand nombre d'inscriptions de spammers sur notre site, polluant sans relache notre forum, nous suspendons la création de compte via le formulaire de "sign up".

Il est néanmoins toujours possible de devenir adhérent•e en faisant la demande sur cette page, rubrique "Inscription" : https://www.drupal.fr/contact


De plus, le forum est désormais "interdit en écriture". Il n'est plus autorisé d'y écrire un sujet/billet/commentaire.

Pour contacter la communauté, merci de rejoindre le slack "drupalfrance".

Si vous voulez contacter le bureau de l'association, utilisez le formulaire disponible ici, ou envoyez-nous un DM sur twitter.

Bonjour,

Je viens d'installer views slideshow ddblock et je rencontre un problème. Les images ne s'affichent pas du tout. Peut-être quelqu'un aurait une solution ?

Voici une capture d'écran du résultat obtenu.

merci d'avance

Code source du template.php (garland)

<?php
// $Id: template.php,v 1.16.2.3 2010/05/11 09:41:22 goba Exp $

/**
* Sets the body-tag class attribute.
*
* Adds 'sidebar-left', 'sidebar-right' or 'sidebars' classes as needed.
*/
function phptemplate_body_class($left, $right) {
if ($left != '' && $right != '') {
$class = 'sidebars';
}
else {
if ($left != '') {
$class = 'sidebar-left';
}
if ($right != '') {
$class = 'sidebar-right';
}
}

if (isset($class)) {
print ' class="'. $class .'"';
}
}

/**
* Return a themed breadcrumb trail.
*
* @param $breadcrumb
* An array containing the breadcrumb links.
* @return a string containing the breadcrumb output.
*/
function phptemplate_breadcrumb($breadcrumb) {
if (!empty($breadcrumb)) {
return '

'. implode(' › ', $breadcrumb) .'

';
}
}

/**
* Override or insert PHPTemplate variables into the templates.
*/
function phptemplate_preprocess_page(&$vars) {
$vars['tabs2'] = menu_secondary_local_tasks();

// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
}

/**
* Add a "Comments" heading above comments except on forum pages.
*/
function garland_preprocess_comment_wrapper(&$vars) {
if ($vars['content'] && $vars['node']->type != 'forum') {
$vars['content'] = '

'. t('Comments') .'

'. $vars['content'];
}
}

/**
* Returns the rendered local tasks. The default implementation renders
* them as tabs. Overridden to split the secondary tasks.
*
* @ingroup themeable
*/
function phptemplate_menu_local_tasks() {
return menu_primary_local_tasks();
}

/**
* Returns the themed submitted-by string for the comment.
*/
function phptemplate_comment_submitted($comment) {
return t('!datetime — !username',
array(
'!username' => theme('username', $comment),
'!datetime' => format_date($comment->timestamp)
));
}

/**
* Returns the themed submitted-by string for the node.
*/
function phptemplate_node_submitted($node) {
return t('!datetime — !username',
array(
'!username' => theme('username', $node),
'!datetime' => format_date($node->created),
));
}

/**
* Generates IE CSS links for LTR and RTL languages.
*/
function phptemplate_get_ie_styles() {
global $language;

$iecss = '';
if ($language->direction == LANGUAGE_RTL) {
$iecss .= '@import "'. base_path() . path_to_theme() .'/fix-ie-rtl.css";';
}

return $iecss;
}
/*!
* Views Slideshow Dynamic display block preprocess functions
* Author P.P. Blaauw
* Version 1.3 (07-SEP-2009)
* Licenced under GPL license
* http://www.gnu.org/licenses/gpl.html
*/

/**
* Override or insert variables into the views_slideshow_ddblock_cycle_block_content templates.
* Used to convert variables from view_fields to slider_items template variables
*
* @param $vars
* An array of variables to pass to the theme template.
*
*/
function garland_preprocess_views_slideshow_ddblock(&$vars) {
drupal_rebuild_theme_registry();
$settings = $vars['views_slideshow_ddblock_slider_settings'];
// for showing debug info
views_slideshow_ddblock_show_content_debug_info($vars);
if ($settings['output_type'] == 'view_fields') {
if ($settings['view_name'] == 'news_items' && $settings['view_display_id'] == 'block_1') {
if (!empty($vars['views_slideshow_ddblock_content'])) {
foreach ($vars['views_slideshow_ddblock_content'] as $key1 => $result) {
// add slide image variable
$slider_items[$key1]['slide_image'] = views_slideshow_ddblock_add_image(
$vars,
// determines which imagcache preset to use, leave to 'slider_item_image'
'slider_item_image',
// name of CCK generated image field, change if needed.
$result->node_data_field_pager_item_text_field_image_fid,
// alt attribute of image or NULL
$result->node_title,
// cck content type for default image or NULL, change if needed
NULL, //'ddblock_news_item',
// cck fieldname for default image or NULL, change if needed
NULL, //'field_image',
// to link the image to or NULL, change if needed
NULL // base_path() . 'node/' . $result->nid
);
// add slide_text variable
if (isset($result->node_data_field_pager_item_text_field_slide_text_value)) {
$slider_items[$key1]['slide_text'] = check_markup($result->node_data_field_pager_item_text_field_slide_text_value);
}
// add slide_title variable
if (isset($result->node_title)) {
$slider_items[$key1]['slide_title'] = check_plain($result->node_title);
}
// add slide_read_more variable and slide_node variable
if (isset($result->nid)) {
$slider_items[$key1]['slide_read_more'] = '' . t('Read more') . '';
$slider_items[$key1]['slide_node'] = base_path() . 'node/' . $result->nid;
}
}
}
}
$vars['views_slideshow_ddblock_slider_items'] = $slider_items;
}
}
/**
* Override or insert variables into the views_slideshow_ddblock_cycle_pager_content templates.
* Used to convert variables from view_fields to pager_items template variables
* Only used for custom pager items
*
* @param $vars
* An array of variables to pass to the theme template.
*
*/
function garland_preprocess_views_slideshow_ddblock_pager_content(&$vars) {
$settings = $vars['views_slideshow_ddblock_pager_settings'];
// for showing debug info
views_slideshow_ddblock_show_pager_debug_info($vars);
if (($settings['output_type'] == 'view_fields') &&
($settings['pager'] == 'number-pager' ||
$settings['pager'] == 'custom-pager' ||
$settings['pager'] == 'scrollable-pager' )) {
if ($settings['view_name'] == 'news_items' && $settings['view_display_id'] == 'block_1') {
if (!empty($vars['views_slideshow_ddblock_content'])) {
foreach ($vars['views_slideshow_ddblock_content'] as $key1 => $result) {
// add pager_item_image variable
$pager_items[$key1]['image'] = views_slideshow_ddblock_add_image(
$vars,
// determines which imagcache preset to use, leave to 'pager_item_image'
'pager_item_image',
// name of CCK generated image field, change if needed.
$result->node_data_field_pager_item_text_field_image_fid,
// alt attribute of image or NULL
$result->node_data_field_pager_item_text_field_pager_item_text_value,
// cck content type for default image or NULL, change if needed
NULL, //'ddblock_news_item',
// cck fieldname for default image or NULL, change if needed
NULL, //'field_image',
// to link the image to or NULL, change if needed
NULL // base_path() . 'node/' . $result->nid
);
// add pager_item _text variable
if (isset($result->node_data_field_pager_item_text_field_pager_item_text_value)) {
$pager_items[$key1]['text'] = check_plain($result->node_data_field_pager_item_text_field_pager_item_text_value);
}
}
}
}
$vars['views_slideshow_ddblock_pager_items'] = $pager_items;
}
}

Fichier attachéTaille
Icône image views_slideshow.jpg13.92 Ko
Forum :