Archive

Archive for the ‘Blogging’ Category

Will tweeting kill blogging ?

January 7th, 2010

I keep hearing people say that tweeting is not letting them blog or that tweeting is going to kill blogging eventually .This is somewhat a trend now and more and more people are saying this and trying to be fashionable . Let us take that question up and try to deliberate on this in this post . After all it is the New Year and reflection is in order .So I will take this as my debating point for 2010 . Let us go in detail

Read more…

Shakthi Blogging, Social Media, Twitter , , , ,

Wordpress Archives with content

November 20th, 2009

A Page Template that shows the Page’s content at the top, and then displays a list of archive months and categories below it. This is designed to work with WordPress’s Default theme (aka Kubrick), but will probably work with many other themes with a little modification.

Save this to arc-cont.php:

<?php
/*
Template Name: Archives with Content
*/
?>

<?php get_header(); ?>

<div id="content" class="widecolumn">

 <?php if (have_posts()) : while (have_posts()) : the_post();?>
 <div class="post">
  <h2 id="post-<?php the_ID(); ?>"><?php the_title();?></h2>
  <div class="entrytext">
   <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
  </div>
 </div>
 <?php endwhile; endif; ?>
 <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

</div>
<div id="main">

<?php include (TEMPLATEPATH . '/searchform.php'); ?>

<h2>Archives by Month:</h2>
  <ul>
    <?php wp_get_archives('type=monthly'); ?>
  </ul>

<h2>Archives by Subject:</h2>
  <ul>
     <?php wp_list_cats(); ?>
  </ul>

</div>
<?php get_footer(); ?>

Technorati : ,
Del.icio.us : ,

Shakthi Blogging ,

Listing pages in your Wordpress site

November 7th, 2009

WordPress is able to automatically generate a list of Pages on your site, for example within the sidebar, using a Template Tag called wp_list_pages(). See the wp_list_pages page for information on how to do the following:

  • Sort the list of Pages (to fully customize the order in which the Pages are listed, you might find the “Page Order” section on the Write > Page administration panel useful),
  • exclude (or ‘hide’) a Page from the list,
  • Control which Pages are displayed (i.e., all Pages or just certain SubPages), and
  • Control how deep into your Page hierarchy the list goes.

Naturally, you can also link to Pages manually with an HTML link. For example, if you want your Copyright Page listed in your footer, that link might read as below:
If you do not have Permalinks set up

<a title="Copyright information" href="wordpress/?page_id=14">Copyright 1996-2006</a>

If you do have Permalinks set up

<a title="Copyright information" href="wordpress/copyright/">Copyright 1996-2006</a>

Note: Your .htaccess file must be writeable for Page Permalinks to work, otherwise you must update your .htaccess file every time you create a Page.

Technorati : , ,
Del.icio.us : , ,

Shakthi Blogging , ,

Installing Wordpress in 5 minutes

November 3rd, 2009

Things to Know Before Installing WordPress

Before you begin the install, there are few things you need to have and do.

You need access to your site and its directory and software to proceed with the installation. These are:

Things You Need to Do to Install WordPress

Begin your installation by:

  1. Checking to ensure that you and your web host have the minimum requirements to run WordPress.
  2. Download the latest release of WordPress.
  3. Unzip the downloaded file to a folder on your hard drive.
  4. Be prepared with a secure password for your Secret Key
  5. Print this page out so you have it handy during the installation.

5-Minute Install

Here’s the quick version of the instructions, for those that are already comfortable with performing such installations. More detailed instructions follow.

  1. Download and unzip the WordPress package, if you haven’t already.
  2. Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
  3. Rename the wp-config-sample.php file to wp-config.php.
  4. Open wp-config.php in your favorite text editor and fill in your database details as explained in Editing wp-config.php to generate and use your secret key password.
  5. Place the WordPress files in the desired location on your web server:
    • If you want to integrate WordPress into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.
    • If you want to have your WordPress installation in its own subdirectory on your web site (e.g. http://example.com/blog/), rename the directory wordpress to the name you’d like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called “blog”, you should rename the directory called “wordpress” to “blog” and upload it to the root directory of your web server.Hint: If your FTP transfer is too slow read how to avoid FTPing at : Step 1: Download and Extract.
  6. Run the WordPress installation script by accessing wp-admin/install.php in your favorite web browser.
    • If you installed WordPress in the root directory, you should visit: http://example.com/wp-admin/install.php
    • If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php

That’s it! WordPress should now be installed.

Technorati : , ,
Del.icio.us : , ,

Shakthi Blogging , ,

A cron script for php and apache errors

October 30th, 2009

I run 3 sites and have been bugged a lot by php errors and apache errors . So I wanted to figure out an automated and scheduled way to do this . I sat down and wrote a bash script which I now run on cron and relax . It is not perfect , but saves the headache and heartache . In this post I wanted to share this script with you hoping that it might be useful . Here is the script

Read more…

Shakthi Blogging, General , , ,

Importing to a wordpress blog from other platforms

October 26th, 2009

WordPress currently supports importing data in the form of posts (articles) and most of the details or features supported by the content publishing platform.

Most of the following Content Import scripts can be found under the “Import” tab of your WordPress administration interface.

If you run into specific problems, a search on the WordPress Support Forum will likely lead to a solution or try the Codex FAQ. Users of a blogging system not listed here who wish to switch to WordPress are invited to ask for help in the WordPress Support Forum as well.

Read more…

Shakthi Blogging , ,

A little more into wordpress templates

August 26th, 2009


Template files are the building blocks of your WordPress site. They fit together like the pieces of a puzzle to generate the web pages on your site. Some templates (the header and footer template files for example) are used on all the web pages, while others are used only under specific conditions.

A traditional web page consists of two files:

  • The XHTML page to hold the structure and content of the page and
  • the CSS Style Sheet which holds the presentation styles of the page.

In WordPress, the (X)HTML structure and the CSS style sheet are present but the content is generated “behind the scenes” by various template files. The template files and the style sheet are stored together as a WordPress Theme. To learn more about creating Themes, read Theme Development.

The WordPress Page Structure

A simple WordPress web page structure is made up of three basic building “blocks”: a header, the content, and a footer. Each of these blocks is generated by a template file in your current WordPress Theme.

Header

Content

Footer

  • The header contains all the information that needs to be at the top – i.e. inside the <head> tag – of your XHTML web page, such as the <doctype>, <meta> tags and links to style sheets. It also includes the opening <body> tag and the visible header of your blog (which typically includes the title of your site, and may also include navigation menus, a logo bar, the description of your site, etc.).
  • The content block contains the posts and pages of your blog, i.e. the “meat” of your site.
  • The footer contains the information that goes at the bottom of your page, such as links to other Pages or categories on your site in a navigation menu, copyright and contact information, and other details.

(Source ; wordpress documentation)

Technorati : ,
Del.icio.us : ,

Shakthi Blogging, General ,

Wordpress : A Page of Posts

August 20th, 2009

A Page Template that displays posts from a specific category depending on what Page is being displayed. This is designed to work with the WordPress Default theme (aka Kubrick), but may work with other themes with a little modification.

Save this to pageofposts.php:
<?php
/*
Template Name: PageOfPosts
*/

get_header(); ?>

<div id="content" class="narrowcolumn">

<?php
// page id 21 will get category ID 12 posts, page 16 will get category 32 posts, page 28 will get category 17 posts
if (is_page('21') ) {
$cat = array(12);
} elseif ( is_page('16') ) {
$cat = array(32);
} elseif ( is_page('28') ) {
$cat = array(17);
} else {
$cat = '';
}

$showposts = -1; // -1 shows all posts
$do_not_show_stickies = 1; // 0 to show stickies
$args=array(
'category__in' => $cat,
'showposts' => $showposts,
'caller_get_posts' => $do_not_show_stickies
);
$my_query = new WP_Query($args);

?>

<?php if( $my_query->have_posts() ) : ?>

<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<?php
//necessary to show the tags
global $wp_query;
$wp_query->in_the_loop = true;
?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>

<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>

<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>

<?php endwhile; ?>

<?php else : ?>

<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php get_search_form(); ?>

<?php endif; ?>

</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

Technorati : ,
Del.icio.us : ,

Shakthi Blogging ,

Wordpress Archives with Content

August 18th, 2009

A Page Template that shows the Page’s content at the top, and then displays a list of archive months and categories below it. This is designed to work with WordPress’s Default theme (aka Kubrick), but will probably work with many other themes with a little modification.

Save this to arc-cont.php:

<?php
/*
Template Name: Archives with Content
*/
?>

<?php get_header(); ?>

<div id="content" class="widecolumn">

 <?php if (have_posts()) : while (have_posts()) : the_post();?>
 <div class="post">
  <h2 id="post-<?php the_ID(); ?>"><?php the_title();?></h2>
  <div class="entrytext">
   <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
  </div>
 </div>
 <?php endwhile; endif; ?>
 <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

</div>
<div id="main">

<?php include (TEMPLATEPATH . '/searchform.php'); ?>

<h2>Archives by Month:</h2>
  <ul>
    <?php wp_get_archives('type=monthly'); ?>
  </ul>

<h2>Archives by Subject:</h2>
  <ul>
     <?php wp_list_cats(); ?>
  </ul>

</div>
<?php get_footer(); ?>

Technorati : ,
Del.icio.us : ,

Shakthi Blogging ,

Organizing Your Wordpress Pages

August 17th, 2009

Just as you can have Subcategories within your Categories, you can also have SubPages within your Pages, creating a hierarchy of pages.

For example, suppose you are creating a WordPress site for a travel agent and would like to create an individual Page for each continent and country to which the agency can make travel arrangements. You would begin by creating a Page called “Africa” on which you could describe general information about travel to Africa. Then you would create a series of Pages which would be SubPages to “Africa” and might include “Lesotho”, “Cameroon”, “Togo”, and “Swaziland”. Another individual Page is made for “South America” and would feature SubPages of “Brazil”, “Argentina”, and “Chile”. Your site would then list:

  • Africa
    • Cameroon
    • Lesotho
    • Swaziland
    • Togo
  • South America
    • Argentina
    • Brazil
    • Chile

To begin the process, go to Administration > Write > Write Page panel, in the upper right corner of the panel and click the “Page Parent” drop-down menu. The drop-down menu contains a list of all the Pages already created for your site. To turn your current Page into a SubPage, or “Child” of the “Parent” Page, select the appropriate Page from the drop-down menu. If you specify a Parent other than “Main Page (no parent)” from the list, the Page you are now editing will be made a Child of that selected Page. When your Pages are listed, the Child Page will be nested under the Parent Page. The Permalinks of your Pages will also reflect this Page hierarchy.

In the above example, the Permalink for the Cameroon Page would be:

http://example.com/africa/cameroon/

Technorati : ,
Del.icio.us : ,

Shakthi Blogging ,