Not sure how to work this.  I essentially want to call a variety of image sizes based on which stylesheet a user chooses from the administration backend of a wordpress theme.  The sizes of the images would be different depending on which stylesheet is selected.  My idea is to write an if/else statement to accomplish this, but don't know how.  
The script looks like this:
Code: <?php // This will show the image and link the image to the post. Alter the width and height (in both places) to your needs. ?>
         <?php if ( get_post_meta($post->ID, 'thumb', true) ) { ?>
         <div class="postthumb">
         <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
         <img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=180&w=200&zc=1" alt="<?php the_title(); ?>" width="200" height="180" /></a>
         </div>
         <?php } ?>
If the user selects a layout utilizing a 200px wide image this script would work, but if they choose a layout using a 300px width image the Tim Thumb script would have to be obviously different.  
Basically, I would like to offer a different Tim Thumb script based on whatever layout/stylesheet the user selects.  And I think the best way is to offer an if/else statement, but I don't know how to do this...
Any help would be greatly appreciated...
validating url
im trying to validate url's sent to me by a formthe url's im collecting are for placing banners on my site so the url's are the link to there site and url of where there banner isURL's ARE BROKEN INTO
help with image upload code
Hello,right now this code I have resizes images and then places them into the uploads folder is there a way to make this code upload the orignal file sizes into uploads and make it put the smaller
Insert to MySQL inside foreach
Hey.I am parsing some html, and putting inside an html db.I need to create a randomized integer to be a unique identifier, and i chose just to use time().But I foreach the results, and inside here i
Data Function is Its Not working IN IE8
This is my first time to use formums. I hope i can get solution for this problem.
dropdown menu
Hello everbody, I am php newbie. I need to develop a program that once click the drop down menu, the textarea will change the value base on the dropdown menu. I have problem changing the value of
Need a fuction to count entries in a field
HiI need a fuction to count how many times a email address is entered in to a field.I making a for wordpress that counts how many timesa user has made comments.Thanks
Values disappear from my array :( HELP!
hey all, I have a lil mysql/php/apache script that queries a databaseand pulls put 5 integers.These 5 integers are then displayed in an HTML tableCode: [Select]<?php$i=0;global $Val_Store;while
Preloading images
Posting this question here because I am not sure where this should belong.I am building an asp.net ajax web site with lots of media elements and I would like to make my image loading work smoother. I
What's wrong with my code
sobbing for many days, still don't know why please Help. Why my page isn't posted correctly. In a nutshell, I have two pages, 1) is just a form another contains php with answer and if and else
Reg Ex
Im trying to search for the string: srv_9 (Dead ???)I thought to use preg_match, however I dont know much about reg ex. Can anyone help? Thankks