How to Add Thumbnails in WordPress

When a website user makes a search with WordPress,  the search results typically are shown using the search.php template file. If one chooses to do so, these results can incluse an automatically “grabbed” image thumbnail generated by the images contained in the image. Posts with no images can show a default generic image instead. And this can all be done using the Get-The-Image plugin and perhaps a bit of code tweaking.

<div style="clear: both; margin-bottom: 20px;">
<div style="float: left; width: 150px; height: 150px; margin: 0 10px 10px 0;"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php if ( function_exists( 'get_the_image' ) ) { get_the_image('width=150&height=150&image_scan=true&default_image=http://yoursite.com/default.jpg' ); } ?></a></div>
<div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php the_time('F jS, Y') ?> by <?php the_author_posts_link(); ?><br />
<p>Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
</div>

Insert this snippet, written by mercime ar wordpress.org into your loop, typically right after the beginning while-have-posts loop.

Posted under WebDev, WordPress

This post was written by Content Curator on November 16, 2009

Tags: , , , , , , , , , , , , , , , , , ,

Convert & Trim DVD video to MPEG-1, freeware style

Download DVD Shrink 3.2 and Flask MPEG 0.594

This procedure assumes: “Files”-type rip of DVD to decrypted VOB using DVD Decrypter

DVD Shrink

  1. Click button Open Files
  2. Navigate to the VIDEO_TS subfolder of the directory that holds the DVD’s decrypted VOB files.
  3. Click button Re-Author
  4. Drag titles from the right-hand pane to the left-hand pane.
  5. To trim: on left-hand pane items, right-click and click Set Start/End Frames…
  6. Set the beginning and ending frames of the segment that you want to keep.
  7. Click button Backup!

Flask MPEG

  1. File >> Open DVD. Find your IFO file made when you trimmed the VOBs
  2. Select the streams you want to include, click Flask this DVD!
  3. Options >> Global Project Options
    1. Video tab
      1. Frame Size – This dictated the output resolution of the video, as far as quality goes. It does not dictate the viewing size of the video, since this MPEG-1 video is locked in at 352 x 240 for viewing. What this means is that this setting controls video qulity only.
    2. Files tab – set the path and filename for output video.
    3. General Tab
      1. Compiling Time – you can compile the first n frames/seconds of the project, instead of the whole thing. Good for testing settings.
    4. Click OK
  4. Options >> Output Format Options
    1. Video Stream Settings tab – select MPEG-1 and leave the rest defaulted
    2. Program Stream Settings tab – select MPEG-1 and leave the rest defaulted
    3. Audio Stream Settings tab -lower Bit Rateto reduce final file size, and leave the rest defaulted
    4. Click OK
  5. Run… >> Start Conversion
  6. Click Start on the bbMPEG screen that pops
  7. When finished, click Ok on the bbMPEG screen
  8. Test your finished video (segment)

Posted under Freeware, Video Editing