Showing posts with label web hosting. Show all posts
Showing posts with label web hosting. Show all posts

Dec 9, 2011

0

Worpress Plugin TimThumb To Your WordPress Theme

TimThumb PHP Script is a custom image-sizing script, that allows you to produce a cropped and sized version of an image. These are great to use along with a WordPress Magazine Theme. TimThumb has recently been released as open source, and here I will walk you through adding TimThumb to your WordPress theme.

Using TimThumb will require the use of WP Custom Fields.

01. Setting Up The Script

Lets grab the TimThumb.php source code, and save it to our theme directory.
To keep things organized, lets save it in a scripts directory in our theme.
yourdomain.com/wp-content/themes/your-theme/scripts/timthumb.php
Now create a new directory inside of scripts, and name it “cache”
yourdomain.com/wp-content/themes/your-theme/scripts/cache/
Make sure that both directories /scripts/ and /cache/ are set to 755 so they’re writable by the server.

02. Adding The Call To Our Theme Template

Depending on whether you use home.php or index.php, open the appropriate template file up, and lets find The Loop. Look for the calll to the post title, and lets insert the call somewhere below the title, or meta information.
I’m presenting you with 3 options for the call. You can pick which one might suit you best.
Option 01 – Show Image Only
<?php // This will show only the image. Alter the width and height (in both places) to your needs. ?>
 
<?php if ( get_post_meta($post->ID, 'thumb', true) ) { ?>
 <div class="postthumb">
  <img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=150&w=150&zc=1" alt="<?php the_title(); ?>" width="100" height="57" />
 </div>
<?php } ?>
Option 02 – Show image, and link image to post
<?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=150&w=150&zc=1" alt="<?php the_title(); ?>" width="150" height="150" /></a>
 </div>
<?php } ?>
Option 03 – Show image and link image to URL of your choice. Requires additional custom field of “imglink”. Could be used for outgoing links, or linking a thumb to a full version of the image. This option would work best inside of your single.php template.
<?php  // This will show the image and link it to anything you place into another custom field of "imglink".
  // Alter the width and height (in both places) to your needs.
  ?>
 
<?php if ( get_post_meta($post->ID, 'imglink', true) ) { ?>
 <div class="postthumb">
  <a href="<?php echo get_post_meta($post->ID, "imglink", $single = true); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php } ?><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=150&w=150&zc=1" alt="<?php the_title(); ?>"  /><?php if ( get_post_meta($post->ID, 'imglink', true) ) { ?></a><?php } ?>
 </div>
<?php } ?>

03. Making Use of Custom Fields

  1. In your post go ahead and upload your image.
  2. In the “LINK URL” input, highlight and copy the entire address of the image you just uploaded.
  3. Close the image manager, and open the Custom Fields box down below.
  4. For the key enter thumb.
  5. For the value, paste in full address of the image we just copied. ie: http://your-domain.com/wp-content/uploads/2008/02/my-image.jpg
More

Oct 18, 2011

6

HostMonster WordPress Hosting

HostMonster WordPress Hosting is like getting the best of both worlds when choosing to host your website with HostMonster. Then choosing to manage your website with WordPress is a great way create a professional website with HostMonster WordPress Hosting.
HostMonster WordPress Hosting is a combination of the best web hosting and the best blogging and content management system (CMS) around. There are tons of benefits of having access to HostMonster WordPress Hosting including extra features and a still-low monthly payment. WordPress is a CMS, which means you can create your entire website using the tools from WordPress. WordPress tools and features like themes, plugins and widgets work to help you design a website that is professional yet innovative. Another one of the best parts to HostMonster WordPress Hosting is that it can easily be updated whenever there is a desire or need to do so.

Getting Started with HostMonster WordPress Hosting:
After signing up with a HostMonster web hosting account, there are a few ways to control your website. You can use the free website design and website builder tools to design the entire look of your site. In addition, you can access the HostMonster Control Panel that allows you to access your WordPress tool. From inside the control panel, you can access the WordPress icon and begin the installation process using SimpleScripts, which makes the installation process only take a matter of a few clicks of the mouse. For those who are new to web hosting and have never used WordPress, this is a simple solution to begin combining the efforts of HostMonster and WordPress. After installation, users now have the opportunity to choose a theme that will dictate the overall look and design of the website. These themes are available via WordPress or through individual design companies. If you really want to have a different-looking theme, it is easy to have an individual web designer build a custom web design and theme if you don’t mind spending a little money for the project.

HostMonster WordPress Hosting Features:
In addition to the WordPress theme, users can also add in various WordPress plugins and widgets to enhance the look and functionality of their HostMonster WordPress hosted website. Choosing tools like the WordPress calendar widget and video and audio streaming plugins and tools are helpful because not only do they enhance the overall look and appearance of the website, but they also provide your web visitors with more options and tools to help them navigate your website. For many website owners, starting up a website to build an online business is a great way to attract more customers. Having access to not only the HostMonster web hosting tools and features like ecommerce and marketing services, users can also make a website using all of the design and functionality features that come with WordPress.
Having a blog in association with your website is also a good idea even if you choose not to use WordPress for the entire content management system. This is great because it can connect your website to other locations on the web, which can increase your chances of getting found online. This is the best way to increase business. The only way to generate a bigger clientele on the Internet is from exposure. By adding a blog using WordPress to your HostMonster website, it is helpful in that effort to get your business name out to more people online.
To learn more about HostMonster WordPress Hosting, take a few minutes to check out the HostMonster website for a complete listing of all of the tools and features for a great web hosting experience that WordPress has to offer.

HostMonster $3.95 WordPress Hosting

More