Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,
    This link explains some issues regarding wp-cron.php:
    https://comox.textdrive.com/pipermail/wp-hackers/2008-September/021592.html

    Especially this part might be of interest to you:
    “For whatever reason, a
    surprising amount of webservers are not configured to be able to
    resolve their own addresses, or they have some kind of routing issue
    with hitting themselves this way, or there’s a security rule blocking
    it, or one of half a dozen other things.”

    Thanks a lot! This looks much better. I have made one alteration.
    This code still uses the width style property but when set to zero it does not.

    Change this:
    $out .= '<img src="'.nggallery::get_thumbnail_url($image->pid).'" style="width:'.$options[$number]['width'].'px;height:'.$options[$number]['height'].'px;" title="'.$image->alttext.'" alt="'.$image->alttext.'" />';

    to this:

    $zerowidth = ($options[$number]['width']=='0') ? '' : 'width:'.$options[$number]['width'].'px;';
    $out .= '<img src="'.nggallery::get_thumbnail_url($image->pid).'" style="'.$zerowidth.'height:'.$options[$number]['height'].'px;" title="'.$image->alttext.'" alt="'.$image->alttext.'" />';

Viewing 2 replies - 1 through 2 (of 2 total)