Image slider problems

4 replies
On the site in my signature, I recently installed a new theme. Unfortunately the image slider on the page is causing problems and I can't figure out which piece of code is doing it.


Code:
<div class="fullbox_excerpt">
	<div class="fullbox_content">
		<h3>Featured Posts</h3>
		<div class="smooth_gallery">
			<div id="myGallery">
				
				<?php
				for($i = 1; $i <=5; $i++)
				{
					$current_post_id = get_option('techified_featured_post'.$i);
					$saved_post_excerpt = get_option('techified_featured_description'.$i);

					if(strlen($current_post_id) > 0)
					{
						$current_post_meta = @get_post($current_post_id);
						$current_post_excerpt = (strlen($saved_post_excerpt) == 0) ? $current_post_meta->post_content : $saved_post_excerpt;
						$techified_featured_bigimg = (strlen(get_option('techified_featured_bigimg'.$i)) == 0) ? bloginfo('template_directory').'/slide/'.$i.'.jpg' : get_option('techified_featured_bigimg'.$i);
						$techified_featured_smallimg = (strlen(get_option('techified_featured_smallimg'.$i)) == 0) ? bloginfo('template_directory').'/slide/'.$i.'-small.jpg' : get_option('techified_featured_smallimg'.$i);
						?>
							<div class="imageElement">
								<h3><a href="<?php echo get_permalink($current_post_id); ?>" title="<?php echo $current_post_meta->post_title; ?>"><?php echo $current_post_meta->post_title; ?></a></h3>
								<p><?php Fd3e1201f($current_post_excerpt, 550); ?></p>
								<a href="<?php echo get_permalink($current_post_id); ?>" title="<?php echo $current_post_meta->post_title; ?>" class="open"></a> 
								<img src="<?php echo $techified_featured_bigimg; ?>" class="full" alt="" /> 
								<img src="<?php echo $techified_featured_smallimg; ?>" class="thumbnail" alt="" /> 
							</div>
						<?php
					}
					else
					{
						?>
							<div class="imageElement">
								<h3>This is featured post <?php echo $i; ?> title</h3>
								<p>To set this post. Please proceed to Techified theme options.</p>
								<a href="#" title="poat title here" class="open"></a> 
								<img src="<?php bloginfo('template_directory'); ?>/slide/<?php echo $i; ?>.jpg" class="full" alt="" /> 
								<img src="<?php bloginfo('template_directory'); ?>/slide/<?php echo $i; ?>-small.jpg" class="thumbnail" alt="" /> 
							</div>
						<?php
					}
				}
				?>
			</div>
		</div>
	</div>
</div>
Could someone help me?
#image #problems #slider
  • Profile picture of the author Theory5
    I really need help on this one. I think I located the problem in firebug, but I cant figure out how the HTML in firebug corresponds to the php files in WP.
    {{ DiscussionBoard.errors[3382269].message }}
  • Profile picture of the author Patrick
    Since you are using Wordpress, why dont you use some plugin which does the same thing. There are many plugins out there for this.
    {{ DiscussionBoard.errors[3382308].message }}
  • Profile picture of the author Theory5
    I would like to try and fix this first, because its already positioned and came with the theme. If I can't fix it in a few days I will give another slider a shot.
    {{ DiscussionBoard.errors[3382458].message }}
  • Profile picture of the author Theory5
    There must be some way to fix this...
    {{ DiscussionBoard.errors[3394161].message }}

Trending Topics