Ich denke mal, es ist eine kleine Codasache.
Folgendes Problem. Auf meiner Indexseite werden die Artikelbilder von einer externen Quelle verlinkt, geh ich aber in den Artikel, werden sie vom localen Server angezeigt.
Wie bekomm ich es nun hin, dass sie auch auf der Index, von der localen Quelle verlinkt werden?
Hier mal beide Codestellen:
index.php
PHP
<div class="post-content">
<?php $values = get_post_custom_values("post-img"); if (isset($values[0])) : ?>
<?php $timthumb_activate = get_theme_option('timthumb_activate'); if($timthumb_activate == 'no') { ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php $values = get_post_custom_values("post-img"); echo $values[0]; ?>&w=<?php $thumbwidth = get_theme_option('thumb_width'); if($thumbwidth == '') { ?>250<?php } else { ?><?php echo stripcslashes($thumbwidth); ?><?php } ?>&h=<?php $thumbheight = get_theme_option('thumb_height'); if($thumbheight == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbheight); ?><?php } ?>&zc=1&q=100&cropfrom=<?php $thumbcrop = get_theme_option('timthumb_cropping'); if($thumbcrop == '') { ?>topcenter<?php } else { ?><?php echo stripcslashes($thumbcrop); ?><?php } ?>" alt="<?php the_title(); ?>" class="alignleft" /></a>
<?php } else { ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("post-img"); echo $values[0]; ?>" alt="<?php the_title(); ?>" width="<?php $thumbwidth = get_theme_option('thumb_width'); if($thumbwidth == '') { ?>250<?php } else { ?><?php echo stripcslashes($thumbwidth); ?><?php } ?>" height="<?php $thumbheight = get_theme_option('thumb_height'); if($thumbheight == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbheight); ?><?php } ?>" class="alignleft" /></a>
<?php } ?>
<?php else: ?>
<?php $timthumb_activate = get_theme_option('timthumb_activate'); if($timthumb_activate == 'no') { ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_post_image(); ?>&w=<?php $thumbwidth = get_theme_option('thumb_width'); if($thumbwidth == '') { ?>250<?php } else { ?><?php echo stripcslashes($thumbwidth); ?><?php } ?>&h=<?php $thumbheight = get_theme_option('thumb_height'); if($thumbheight == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbheight); ?><?php } ?>&zc=1&q=100&cropfrom=<?php $thumbcrop = get_theme_option('timthumb_cropping'); if($thumbcrop == '') { ?>topcenter<?php } else { ?><?php echo stripcslashes($thumbcrop); ?><?php } ?>" alt="<?php the_title(); ?>" class="alignleft" /></a>
<?php } else { ?>
<?php } ?>
<?php endif; ?>
<?php the_post_excerpt(); ?>
<br><br>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><u>Show more ...</u></a>
</div>
Alles anzeigen
und hier single.php