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
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
- Click button Open Files
- Navigate to the VIDEO_TS subfolder of the directory that holds the DVD’s decrypted VOB files.
- Click button Re-Author
- Drag titles from the right-hand pane to the left-hand pane.
- To trim: on left-hand pane items, right-click and click Set Start/End Frames…
- Set the beginning and ending frames of the segment that you want to keep.
- Click button Backup!
Flask MPEG
- File >> Open DVD. Find your IFO file made when you trimmed the VOBs
- Select the streams you want to include, click Flask this DVD!
- Options >> Global Project Options
- Video tab
- 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.
- Files tab – set the path and filename for output video.
- General Tab
- Compiling Time – you can compile the first n frames/seconds of the project, instead of the whole thing. Good for testing settings.
- Click OK
- Options >> Output Format Options
- Video Stream Settings tab – select MPEG-1 and leave the rest defaulted
- Program Stream Settings tab – select MPEG-1 and leave the rest defaulted
- Audio Stream Settings tab – lower Bit Rate to reduce final file size, and leave the rest defaulted
- Click OK
- Run… >> Start Conversion
- Click Start on the bbMPEG screen that pops
- When finished, click Ok on the bbMPEG screen
- Test your finished video (segment)
Posted under Freeware, Video Editing
This post was written by Content Curator on October 27, 2006