My website is missing the 'read more' block in IE and Safari, and I can't figure out why. It shows up properly in other browsers. I'm not sure what information is necessary to diagnose this; following is the CSS code I'm using (lightly customized) with the block. The primary change, for now, is simply to turn the background transparent (gets rid of an ugly white box at the bottom of the block -- caused by setting the pagers to display to the right, which caused them to vanish, which was a desired change) and center the block. I tried removing these, and it didn't change the problem.

/*!
 * Dynamic display block module template: upright40 - Cascading Style Sheet 
 * Copyright(c) 2008 - 2009 P. Blaauw All rights reserved. 
 * Version 1.1 (11-FEB-2009) 
 * Licenced under GPL license 
 * http://www.gnu.org/licenses/gpl.html 
 */
div.ddblock-cycle-upright40 div.container{background: transparent;width:475px;margin-left:auto; margin-right:auto;}
div.ddblock-cycle-upright40 div.container-inner{height:358px;position:relative;}
div.ddblock-cycle-upright40 div.slider{float:left;width:475px;}
div.ddblock-cycle-upright40 div.slider-inner{background:transparent url(../images/transparent_bg.png) repeat scroll 0 0!important;height:303px;overflow:hidden;position:relative;visibility:hidden;}
div.ddblock-cycle-upright40 div.slide{display:none;height:100%;left:0;position:absolute;top:0;}
div.ddblock-cycle-upright40 div.slide-inner img{height:303px;margin:0 !important;padding:0 !important;width:475px;}
div.ddblock-cycle-upright40 div.slide-text{background:transparent url(../images/transparent_bg.png) repeat scroll 0 0!important;position:absolute;}
div.ddblock-cycle-upright40 div.slide-text-horizontal{height:85px;left:0;width:475px;}
div.ddblock-cycle-upright40 div.slide-text-vertical{height:303px;width:140px;}
div.ddblock-cycle-upright40 div.slide-text-top{top:7px;}
div.ddblock-cycle-upright40 div.slide-text-right{bottom:0;right:30px;}
div.ddblock-cycle-upright40 div.slide-text-bottom{bottom:7px;}
div.ddblock-cycle-upright40 div.slide-text-left{bottom:0;left:30px;}
div.ddblock-cycle-upright40 div.slide-text-inner{padding:10px;}
div.ddblock-cycle-upright40 div.slide-title{float:left;}
div.ddblock-cycle-upright40 div.slide-title-vertical{width:130px;}
div.ddblock-cycle-upright40 div.slide-title-horizontal{float:left;width:158px;}
div.ddblock-cycle-upright40 div.slide-title h2{margin:-5px 0 0 0;padding:0;}
div.ddblock-cycle-upright40 div.slide-title-inner{color:white;font-weight:bold;}
div.ddblock-cycle-upright40 div.slide-body-vertical{width:132px;}
div.ddblock-cycle-upright40 div.slide-body-horizontal{float:left;width:290px;}
div.ddblock-cycle-upright40 div.slide-body-inner{color:white;}
div.ddblock-cycle-upright40 div.slide-body-inner p{margin:0 8px 0 0;padding:0;}
div.ddblock-cycle-upright40 div.slide-read-more{width:110px;}
div.ddblock-cycle-upright40 div.slide-read-more p{padding:0;margin:0;}
div.ddblock-cycle-upright40 div.slide-read-more a{background:url(../images/readmore.png) no-repeat;border:none;bottom:5px;color:#fff;font-size:14px;font-family:times New Roman;margin:0;padding:4px 0 4px 19px;position:absolute;text-decoration:none;text-align:left;width:100px;}
div.ddblock-cycle-upright40 div.slide-read-more-horizontal a{right:-17px;}
div.ddblock-cycle-upright40 div.slide-read-more-vertical a{right:5px;}
div.ddblock-cycle-upright40 div.slide-read-more a:hover{background:url(../images/readmore-hover.png) no-repeat;text-decoration:underline;}
div.ddblock-cycle-upright40 div.slide-read-more-horizontal a:hover{right:-17px;}
div.ddblock-cycle-upright40 div.slide-read-more-vertical a:hover{right:5px;}
div.ddblock-cycle-upright40 div.custom-pager{width:475px;}
div.ddblock-cycle-upright40 div.custom-pager-inner{height:50px;}
div.ddblock-cycle-upright40 div.custom-pager .custom-pager-item{float:left;}
div.ddblock-cycle-upright40 div.custom-pager .custom-pager-item-inner{width:75px;}
div.ddblock-cycle-upright40 div.custom-pager a{background-color:#fff;color:#000;display:block;float:left;font-family:Tahoma,Arial,sans-serif;font-size:.9em;font-weight:bold;height:50px;line-height:46px;opacity:0.7;text-align:center;text-decoration:none;width:75px;}
div.ddblock-cycle-upright40 div.custom-pager a.activeSlide{background-color:#000;color:#fff;opacity:1;}
div.ddblock-cycle-upright40 div.custom-pager a:hover{background:#111;color:#f00;opacity:1;}
div.ddblock-cycle-upright40 div.custom-pager a:focus{outline:none;}
div.ddblock-cycle-upright40 div.custom-pager img{border:none;height:40px;margin:0 !important;padding:0 !important;vertical-align:middle;width:60px;}
div.ddblock-cycle-upright40 div.spacer-vertical{display:block;float:left;height:50px;width:5px;background-color:#ccc;}
div.ddblock-cycle-upright40 div.spacer-horizontal{clear:both;height:5px;background-color:#ccc;}

Comments

ppblaauw’s picture

Status: Active » Closed (won't fix)

Due to lack of time I can't support CSS customizations of slideshow themes.
I same issue is there with not customized slideshow theme please reopen the issue

RLugge’s picture

Status: Closed (won't fix) » Active

Reopening issue; issue exists even with original slideshow files.

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have a link to the slideshow on your Internet site?

RLugge’s picture

Here it is. It's Upright40 with the pagers set to appear to the right (which causes them to disappear)

ppblaauw’s picture

There is no readmore link in the slideshow, also not in FF or chrome.
You probably changed the code for the readmore button in the preprocess function.

RLugge’s picture

Strangely, it does show up in Firefox 4.

Anyway, here are the preprocess functions; what would I need to change?

/*!
 * Dynamic display block preprocess functions
 * Copyright (c) 2008 - 2009 P. Blaauw All rights reserved.
 * Version 1.6 (01-OCT-2009)
 * Licenced under GPL license
 * http://www.gnu.org/licenses/gpl.html
 */

 /**
 * Override or insert variables into the 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 zen_thottheme_preprocess_ddblock_cycle_block_content(&$vars) {
  if ($vars['output_type'] == 'view_fields') {
    $content = array();
    // Add slider_items for the template 
    // If you use the devel module uncomment the following line to see the theme variables
    // dsm($vars['settings']['view_name']);  
    // dsm($vars['content'][0]);
    // If you don't use the devel module uncomment the following line to see the theme variables
    // drupal_set_message('<pre>' . var_export($vars['settings']['view_name'], true) . '</pre>');
    // drupal_set_message('<pre>' . var_export($vars['content'][0], true) . '</pre>');
    if ($vars['settings']['view_name'] == 'ddblock_news_item') {
      if (!empty($vars['content'])) {
        foreach ($vars['content'] as $key1 => $result) {
          // add slide_image variable 
          if (isset($result->node_data_field_pager_item_text_field_image_fid)) {
            // get image id
            $fid = $result->node_data_field_pager_item_text_field_image_fid;
            // get path to image
            $filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid));
            //  use imagecache (imagecache, preset_name, file_path, alt, title, array of attributes)
            if (module_exists('imagecache') && is_array(imagecache_presets()) && $vars['imgcache_slide'] <> '<none>'){
              $slider_items[$key1]['slide_image'] = 
              theme('imagecache', 
                    $vars['imgcache_slide'], 
                    $filepath,
                    check_plain($result->node_title));
            }
            else {          
              $slider_items[$key1]['slide_image'] = 
                '<img src="' . base_path() . $filepath . 
                '" alt="' . check_plain($result->node_title) . 
                '"/>';     
            }          
          }
          // 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
          // add slide_read_more variable and slide_node variable
			if (isset($result->node_data_field_pager_item_text_field_url_value)) {
				$slider_items[$key1]['slide_read_more'] =  l('Read more...', $result->node_data_field_pager_item_text_field_url_value);
			}
        }
      }
    }    
    $vars['slider_items'] = $slider_items;
  }
}  
/**
 * Override or insert variables into the 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 zen_thottheme_preprocess_ddblock_cycle_pager_content(&$vars) {
  if (($vars['output_type'] == 'view_fields') && ($vars['pager_settings']['pager'] == 'custom-pager')){
    $content = array();
    // Add pager_items for the template 
    // If you use the devel module uncomment the following lines to see the theme variables
    // dsm($vars['pager_settings']['view_name']);     
    // dsm($vars['content'][0]);     
    // If you don't use the devel module uncomment the following lines to see the theme variables
    // drupal_set_message('<pre>' . var_export($vars['pager_settings'], true) . '</pre>');
    // drupal_set_message('<pre>' . var_export($vars['content'][0], true) . '</pre>');
    if ($vars['pager_settings']['view_name'] == 'ddblock_news_item') {
      if (!empty($vars['content'])) {
        foreach ($vars['content'] as $key1 => $result) {
          // add pager_item_image variable
          if (isset($result->node_data_field_pager_item_text_field_image_fid)) {
            $fid = $result->node_data_field_pager_item_text_field_image_fid;
            $filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid));
            //  use imagecache (imagecache, preset_name, file_path, alt, title, array of attributes)
            if (module_exists('imagecache') && 
                is_array(imagecache_presets()) && 
                $vars['imgcache_pager_item'] <> '<none>'){
              $pager_items[$key1]['image'] = 
                theme('imagecache', 
                      $vars['pager_settings']['imgcache_pager_item'],              
                      $filepath,
                      check_plain($result->node_data_field_pager_item_text_field_pager_item_text_value));
            }
            else {          
              $pager_items[$key1]['image'] = 
                '<img src="' . base_path() . $filepath . 
                '" alt="' . check_plain($result->node_data_field_pager_item_text_field_pager_item_text_value) . 
                '"/>';     
            }          
          }
          // 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['pager_items'] = $pager_items;
  }    
}
ppblaauw’s picture

Can you also attach the result of the drupal_set_message debug lines when you uncomment them in the preprocess functions so I can see which field names are generated by cck.

RLugge’s picture

Here is the result.

    'ddblock_news_item'

    stdClass::__set_state(array(
       'nid' => '22',
       'node_title' => 'iPlace Pro',
       'node_data_field_pager_item_text_field_pager_item_text_value' => 'Location Sharing',
       'node_type' => 'ddblock_news_item',
       'node_vid' => '22',
       'node_data_field_pager_item_text_field_slide_text_value' => 'Share your location with your friends!',
       'node_data_field_pager_item_text_field_image_fid' => '45',
       'node_data_field_pager_item_text_field_image_list' => '1',
       'node_data_field_pager_item_text_field_image_data' => 'a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
       'node_revisions_body' => 'This is just a file.',
       'node_revisions_format' => '1',
       'node_data_field_pager_item_text_field_url_value' => 'products/iplace',
       'node_created' => '1298081858',
    ))

ppblaauw’s picture

I still don't see the read more button in FF and Chrome.
I am an anonymous user.
Maybe you also don't see the read more button when you are not logged in other browsers and you see the readmore button when you are logged in as administrator (user 1)

Probably you have the content permissions module (submodule of CCK) enabled and did not give permissions to anonymous users for the URL field. (In the permissions configuration page)

Hope this helps you further, please let me know.

RLugge’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

That... would be correct.

Thanks for the help.