Thursday, February 23, 2012
canli tv izle saglik bilgisi

Speedup Wordpress

Posted by admin On April - 27 - 2010 ADD COMMENTS

In this post we’ll explore ten ways to speed up your site, with tricks ranging from easy to even easier; none of the stuff in this post is difficult, so there’s no excuse for a slow-loading blog after reading this!

1. Delete Any Unwanted Plugins

If your site is loading slowly, look at how many plugins you’re using. If the answer is more than ten, look at the plugins you’re using and ask yourself whether you can integrate them directly into your theme.

While you’re at it, also ask yourself whether you really need the plugin. If you can do without it, do.

2. Remove Unnecessary PHP Tags

If you’re using a theme that you didn’t make yourself, then chances are it’s full of php that doesn’t need to be there. For example, your header could have something like this:

This is telling WordPress to get the stylesheet url every single time someone loads your page. You can very easily replace this with something like this: (Remember to replaceyoursite.com with your address).

This is just one example – there are many many more times you can do this – have a hunt round your header.php and other theme files and you’ll be amazed at the number of unnecessary queries you can eliminate. We have a list of 13 of the most commonun-needed tags here.

3. Use WP Super Cache

One of the better known techniques for speeding up WordPress is to install the WP Super Cache plugin. It caches your site for super-quick loading. It’s as simple as that.Install it and forget about it (and then promptly remember it when you wonder why your design changes aren’t showing next time you edit your theme files!).

4. Optimise Your Database

You’d be surprised how much you can increase your load time simply by optimising your database. As always, you could do it manually or just get a plugin that does it for you!

The manual way. This is super easy, as I explained on my blog: login to cPanel, find phpMyAdmin, select your database, click ‘check all’ at the bottom of the page and then in the drop down box in the middle of the page (see the image below), select ‘Optimize database’. And you’re done.

The other option is to use a plugin: the Optimize DB plugin from yoast.com does what it says on the box.

5. Optimise Your Images

If images aren’t optimised, both your blog’s bandwidth and load time will be affected. Both are bad. The solution? Optimise your images. It’s easier than you may think; in Photoshop click ’save for web’ under the file menu or in the free GIMP, save the file as a .jpg and you’ll automatically be given the option to compress your image.

As a benchmark, although obviously depending on what the image is, on my blog I aim for in-post images to be 40kb or less (although don’t sacrifice quality too much!).

If for whatever reason you can’t use an image editor, all is not lost! Yahoo have a free service called smush.it that you can point at a web page and it’ll optimise the images.

6. Compress your CSS and JavaScript

Again, something that is very easy to do: compress your CSS and put your JavaScriptinto a single file.

To compress your CSS, you can use an online tool, such as styleneat.com (see the image below), which will get rid of the white spacing and neaten everything up. You might not notice any difference to start off with , but it will make a difference to your blog’s load speed; these things all add up.

Something else do is to put all of your JavaScript into a single file and then load it at the bottom of the page (in the footer.php file). This ensures that the styling is loaded first, then any fancy JavaScript you’ve got loads last.

7. Disable Hotlinking

As I said earlier, if your images aren’t optimised then your using up bandwidth unnecessarily. It’s bad enough having to keep images optimised for your own server’s sake, but say someone else copied and pasted the url of the image, putting your images on their site?!

That’s called hotlinking, and via the .htaccess file (which you’ll find in your root directory), disabling hotlinking is easy.

First, backup your .htaccess file. I can’t stress how important that is! Next, add the lines of code below, changing the appropriate lines to suit your blog. The last line is an image that will display instead – how about an advert for your site?

1.#disable hotlinking of images with forbidden or custom image option

2.RewriteEngine on

3.RewriteCond %{HTTP_REFERER} !^$

4.RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC]

5.#RewriteRule \.(gif|jpg)$ – [F]

6.RewriteRule \.(gif|jpg)$ http://www.yourdomain.com/stealingisbad.gif [R,L]

Source – A to Z of WordPress .htaccess hacks.

8. Keep Spammers Away

The .htaccess file is a very useful tool (e.g. here’s some of the best htaccess tricks); it won’t just stop hotlinking, but it can also be used to keep spammers away by blocking referrers from certain sites. At this point, you’re probably thinking “great, pity it’d be impractical to implement this.”

Well, yes, it would be. The good news is that over at Perishable Press, Jeff has complied a list of over 8000 of the web’s spammiest referrers, which you can download here and just copy and paste into your .htaccess file.

How will this help your site load faster? If spammers aren’t getting onto your site then they aren’t using up your resources, freeing them up for everyone else to use, so the site loads faster. It will stop spammers from baraging your server with hundreds of requests. You can read the full explanation on the post at Perishable Press.

9. Turn Off Post Revisions

Post revisions, introduced in WordPress 2.6, haven’t been a big hit with everyone, especially those with single-author blogs. Why do they slow down your site?

Every single time you save a post, a new row is created in your wp_posts table, so if you save your post ten times, that’s ten new rows created.

Thankfully, as Lester Chan points out, it’s easy to turn off post revisions – add the following line to your wp-config.php file:

10. Your Thoughts and Additional Reading

A couple of other articles around the net to check out -

AndBreak.com: Guide to Speeding Up WordPress

WPCandy: 4 Simple Ways To Speed Up WordPress

Lorelle on WordPress: The 3 Easiest Ways to Speed Up WordPress

Yoast.com: Speed up WordPress, and clean it up too!Speed up Wordpress, Increase Wordpress Performance

Noupe.com: 13 Great WordPress Speed Tips and Tricks for MAX Performance

Everyone’s got their own ideas: what’s your favourite way to speed up WordPress?

Article taken from: http://www.problogdesign.com/

Popularity: 14% [?]

Wordpress Photo Gallery Plugins

Posted by admin On April - 25 - 2010 ADD COMMENTS

1. Flickr Photo Album - This Wordpress Photo Gallery plugin is my all time favorite, as it allows for the integration of your Flickr photos into your own blog. What’s wonderful about this plugin is that it allows for seamless automation of photo gallery creation. As long as your blog is hooked up to your Flickr account- when you post photos to Flickr, new images are added to your blog’s photo gallery. Flickr is a powerful social imaging medium, and using it as a connection tool will bring great benefits to your blog.

2. WP Photo Album - The WP Photo Album plugin is an easy-to-use, simplephoto gallery plugin. It gives you the option to setup albums and categories – and upload photos via the Wordpress backend.

3. NextGEN Gallery - Known for being powerful and all-inclusive, the NextGEN Gallery plugin for Wordpress aides in creating great photo galleries within any blog. Along with its many great features is the ability to use a Flash Slideshow option.

4. Fotobook - The Fotobook plugin uses Facebook’s API model to bring your Facebook photos into your blog. This plugin also has the ability to pull images from multiple Facebook accounts – which is helpful for blogs maintained by more than one individual.

5. WP-Gallery-Remote - Throughout the photo gallery industry, Gallery is amongst the best. This plugin allows your Wordpress blog to pull images from a remote Gallery installation. Using this plugin will enable any blog owner to harness the great power of Gallery – while still using a Wordpressbased blog.

6. Picasa Photos - This plugin pulls images from a Picasa image account, and displays the images in a Widget within your Wordpress installation. Great plugin for low maintenance photo integration.

7. Flash Photo Gallery - The Flash Photo Gallery creates image galleries much like the one in Adobe Photoshop CS2, and it even allows forintegration within Wordpress MU installations. Flash Galleries can be inserted into any page within your blog with a simple code tag.

Popularity: 31% [?]

How to make wordpress Templates

Posted by admin On April - 24 - 2010 ADD COMMENTS

When we talk about the wordpress templates  its to customize the look of  wordpress themes , if we want to make the page looks  different from the   regular pages  then we assign  a page  templates  for a particular  page .page  templates are needed to give   professional look of the  web site and  , page   templates allow easy customization of pages  and  a look totally  on our wish .its   good way to make  custom pages.well  templates is good way to make professional look.. lets learn  here  how to  make it

to make a  template we need  to assign a name of the   templates as that wordpress recognize it

<?php

/*

Template Name:forum

*/

<div id=”casing”>

get_header();

if(have_posts())while(have_posts()){the_post();the_content();}

</div>

get_footer();

?>

this is simple  page template   named  forum.php

if we  want to make page template from  the  default page  template   then  open –> page.php file  of  wordpress theme

put the template name  on the top of the  code  after php tag

<?php

/*

Template Name:forum

*/

rest of the code………

?>

now  save it as   as   the name of the  template here use   forum.php

Now giving example   of existing  code    page.php

<?php get_header(); ?>

<div id=”foxmenucontainer”>

<div id=”menu”>

<ul>

<?php wp_list_categories(’sort_column=name&title_li=&depth=4′); ?>

</ul>

</div>

</div>

<div id=”casing”>

<div id=”content”>

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<div id=”post-<?php the_ID(); ?>”>

<div>

<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></a></h2>

</div>

<div>

<div>

<?php the_content(‘Read the rest of this entry &raquo;’); ?>

<div></div>

<?php wp_link_pages(array(‘before’ => ‘<p><strong>Pages: </strong> ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

</div>

</div>

</div>

<?php endwhile; endif; ?>

</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

now we  make it as page  templates   test.php  by editing  code and  removing the code that we not want on the   to see   in the page  .


<?php

/*

Template Name:test

*/

get_header(); ?>

<div id=”foxmenucontainer”>

<div id=”menu”>

<ul>

<?php wp_list_categories(’sort_column=name&title_li=&depth=4′); ?>

</ul>

</div>

</div>

<div id=”casing”>

<div id=”content1″>

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<div>

<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></a></h2>

</div>

<div>

<div>

<?php the_content(‘Read the rest of this entry &raquo;’); ?>

<div></div>

<?php wp_link_pages(array(‘before’ => ‘<p><strong>Pages: </strong> ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

</div>

</div>

<?php endwhile; endif; ?>

</div>

<?php get_footer(); ?>

upload in the theme directory  and  assign the page template for  any page we wish .

<?php

/*

Template Name:forum

*/

<div id=”casing”>

get_header();

if(have_posts())while(have_posts()){the_post();the_content();}

</div>

get_footer();

?>

this is simple  page template   named  forum.php

if we  want to make page template from  the  default page  template   then  open –> page.php file  of  wordpress theme

put the template name  on the top of the  code  after php tag

<?php

/*

Template Name:forum

*/

rest of the code………

?>

now  save it as   as   the name of the  template here use   forum.php

Now giving example   of existing  code    page.php

<?php get_header(); ?>

<div id=”foxmenucontainer”>

<div id=”menu”>

<ul>

<?php wp_list_categories(’sort_column=name&title_li=&depth=4′); ?>

</ul>

</div>

</div>

<div id=”casing”>

<div id=”content”>

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<div id=”post-<?php the_ID(); ?>”>

<div>

<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></a></h2>

</div>

<div>

<div>

<?php the_content(‘Read the rest of this entry &raquo;’); ?>

<div></div>

<?php wp_link_pages(array(‘before’ => ‘<p><strong>Pages: </strong> ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

</div>

</div>

</div>

<?php endwhile; endif; ?>

</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

now we  make it as page  templates   test.php  by editing  code and  removing the code that we not want on the   to see   in the page  .


<?php

/*

Template Name:test

*/

get_header(); ?>

<div id=”foxmenucontainer”>

<div id=”menu”>

<ul>

<?php wp_list_categories(’sort_column=name&title_li=&depth=4′); ?>

</ul>

</div>

</div>

<div id=”casing”>

<div id=”content1″>

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<div>

<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></a></h2>

</div>

<div>

<div>

<?php the_content(‘Read the rest of this entry &raquo;’); ?>

<div></div>

<?php wp_link_pages(array(‘before’ => ‘<p><strong>Pages: </strong> ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

</div>

</div>

<?php endwhile; endif; ?>

</div>

<?php get_footer(); ?>

upload in the theme directory  and  assign the page template for  any page we wish .

Popularity: 18% [?]

The Best cms wordpress

Posted by admin On April - 24 - 2010 ADD COMMENTS

when  we talk abou the best cms ( content management system )  for websites , then many   cms  under gpl comes  like wordpress, drupal, joomla, frog and many more and  still developing ,   now the question comes  out of many cms  which one is the best cms  , its totally based on the   uses ,  what type of  site  you want to build , i worked in many cms  but the easy  and  powerful cms  i saw is wordpress .

the best thing of  wordpress  is  its  having  a good coding standard , themes can be easily customized  and  you will  get  many plugins  from wordpress  website: www.wordpress.org also you  will get  many themes  form wordpress  website and even the support you need  to build the website

today  i will discuss on  wordpress website   from  installation  to set up:

1. download the  wordpress  latest version of wordpress  from the worpress website  www.wordpress.org

2.  download the zip format   yet  i am  not going for tar.gz  files  , unzip the  it

3. via ftp  upload the files  into  www folder  if you  using cpanel   and if using  parallel pro  use  public_html  folder  both are  same ,  ie we need to upload it to the root folder  if we  want it to visible as    www.yoursite.com  ,  you can even install it on subfolder based   on your need  .the  the access url will be  www.yoursite.com/foldername , even you can install it on sub domain  set the subdomain from the  cpanel  and  when u create the sub domain a folder is  automatically  formed   and  only  you need to upload the files to it.

4. now  login to your  cpanel   and  make  database for it , click on databases –> create new data base –>a nd  after doing this  –> create new  user its on the same  page –> now  associate the user and   database its on the  lower end of the same page (remmeber the password).

now   here is four things need  to rememeber

a. database name

b database  user  name

c password

d host ( mostly its localhost)

5. now   open the wordpress folder  there  you can see  the  wp-config-sample.php file –> edit this  file you can open in a text editor  like  notepad

// ** MySQL settings – You can get this info from your web host ** //

/** The name of the database for WordPress */

define(‘DB_NAME’, ‘putyourdbnamehere’);     — >  put the databasename  in place of   putyourdbnamehere

/** MySQL database username */

define(‘DB_USER’, ‘usernamehere’);   –> put the  database username   in  place of  usernamehere

/** MySQL database password */

define(‘DB_PASSWORD’, ‘yourpasswordhere’);    –>  put the database  user  password  in place  of  yourpasswordhere

/** MySQL hostname */

define(‘DB_HOST’, ‘localhost’);

edit this  section  to set the configuration   for  success database connectivity  put the required  fields ,

There is also    some other  fields

Here  i am giving the  fields  only replace the  authentication  values   with the key generated from the wordpress site

http://api.wordpress.org/secret-key/1.1/

* Authentication Unique Keys.

define(‘AUTH_KEY’, ‘put your unique phrase here’);

define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’);

define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’);

define(‘NONCE_KEY’, ‘put your unique phrase here’);

Now upload the  wp-config.php   via ftp to  www folder  .

Now  access the domain   www. your sitename.com   , and  now setup will  come   if any error in wp-config.php found then it will show error  in database connectivity else the setup will start and  you need to give the name of the blog  and email in case if you forget your website  , well we can make it any way to blog  and even modify to any  good site   based on our skill.

Now  copy the password  and access the  site   after you access it  come to USER section and  click on profile and  change the  password  of  what you like.

The installation is done  and now  you need to  put themes  you like(www.web2feel.com is  place where  you will get good themes )  in   www/contents/themes/   folder  and activate the theme via the admin panel and  similary  if like any plugins  you want to add  put it in side www/contents/plugins  folder and activate  via wordpress admin panel. now its  done  and   configure the  site based on your   need  .

Popularity: 9% [?]

Wordpress User Role Explained

Posted by admin On April - 24 - 2010 ADD COMMENTS

You have a role of doing something wherever you are at or at whichever position you are, those roles are pre-defined and involve certain things that you can do and cannot do, some times we do break rules, however with software we usually cannot.

Likewise with WordPress there are some roles that are pre-defined and have certain capabilities that you can use to assign to members of your site, in this post we will look at those roles and know what each of them mean.

Subscriber Role

What is Subscriber Role?

A subscriber role is the most basic and default role that is assigned to any user that registers to the site, unless you of course change that by tweaking the settings.

A subscriber can comment on your blog without having to enter their details and also modify your database by setting up their profiles.

Best Practices for Subscriber Role?

Subscriber role is suited best for users whom you want to register to your site and comment without having to enter their details everytime, in addition to that you can also use this role to promote special offers and more, but it may require additional coding or plugins.

Subscriber Role in WordPress;

  • Modify their Profiles
  • Comment on the blog (when logged in) without having to provide name and email, unless you change that in the settings.

Who Should You Assign Subscriber Role to?

Subscriber Role can be open to everyone who wants to save sometime while entering their details over and over again while commenting and various other things you reserve for subscribers, however they need to be logged in, this role is best suited for every user on your site, and every other roles on your site has all the capabilities that this user has.

Contributor Role

Who is a Contributor?

A Contributor to your site has a bigger role than a regular subscriber in the sense that they can compose articles unlike subscribers, however they cannot publish or schedule the articles.

Any article written by a contributor can be saved as draft or under pending review which we will look at when we deal with “Types of Posts a WordPress site can have and what it means”.

A contributor can only contribute towards the site, however they do not have rights to publish a article.

Best Practices for Contributor Role?

A contributor role is best given to someone who wants to contribute to your site by adding new articles, but which you would like to go over before publishing.

Contributor Role In WordPress;

  • All of the Subscribers privileges+
  • View comments in the administrator panel.
  • Add new posts to drafts or to pending review.
  • Edit their own posts.
  • View posts added by others in post listing section, however they cannot view drafts and scheduled post, but they can see the titles.

Who Should You Assign Contributor Role to?

Contributor roles should be assigned to those users who want to post articles to your site, however you still need to go over them before you publish them, this means that everything they write will go through you before it hits your site.

Author Role

Who is a Author?

Author is a well known term and it has the same meaning in WordPress, a author can write articles, add it up as pending review, save it under drafts but more importantly they can publish what they write.

Yes publish it, which means, whoever you assign an author role can publish articles to the site without having your consent.

Best Practices for Author Role

You can give the role of an author to people who can add and publish articles to the site without having to ask for your review, once you give a role of a author they do not have to go through the pending preview cycle to publish, so you might not have a control over what gets published.

This role requires a bit of trust as they can publish anything (not explained) to your site without your knowledge.

Author Role in WordPress;

  • All of the Contributor privileges+
  • View posts added by others in post listing section, however they cannot view drafts and scheduled post, but they can see the titles.

Who Should You Assign Author Roles To?

In a hierarchy you would always want to go through top level, however once you assign a role of a author to someone, it bypasses that and it does not require checks, so you should only assign this role to people who you trust can write good articles for your site, if you feel otherwise you should always put them in the contributor role.

Editor Role

The Editor role can do all of the above, but in addition to that, they can edit other’s post (which is what a editor does) and change anything in anyone else’s post, however WordPress logs who edited which post and when (if you have post reviews on), so you need to turn post revision onwhich we will look at in future posts.

However when you assign the role of an editor to someone, you virtually give control over everything that is published on your blog to them, so do this very carefully and thoughtfully.

WordPress does not have a role between an author and a editor which is really wanted, but you can actually restrict roles by using several plugins.

Who Should You Assign Editor Roles To?

If an author can write and publish articles, an editor can write articles, publish them, edit them, they can do the same for any other author or editor on the site, this means that the person whom you assign as a editor has all the rights except for administrative which we will see next.

This role should only be assigned when you are entirely sure you want to do it and except for administrative privileges it has every other privileges a newspaper or magazine editor has.

Administrator Role

I have a key to your house and I can do anything with it, virtually a administrative role is just like that, once you assign a role of a admin to someone, they can do as they like, so this role should *NEVER* be assigned to anyone other than yourself, if you do need to do that, make sure you assign it to someone who you trust.

An administrator account can DELETE your entire blog, they can DELETE all comments, in short they can ruin everything you created in couple of clicks.

That aside an admin user on a WordPress blog is responsible for upgrading the blog, upgrading plugins, moderating comments among other things that all of the above roles add up to, so this is a role you should never assign to anyone (not explained) unless you are certain of what you are doing.

Who Should You Assign Admin Roles To?

No one, unless you are really sure what you want to do with your blog.

Which Role Can Be Used and When In Simple Words

  • A subscriber role should be used when you want people who comment on your blog to not enter their information over and over again.
  • A contributor role should be used when you want your subscribers to contribute to your site, but don’t want to directly publish articles to your site.
  • An author role should be used when you trust a contributor or someone you think will write the best, without you having to go through what they wrote.
  • An editor role should only be given to people who you trust to write, edit and publish not just their own articles but those of other’s too.
  • An administrator role should never be given to anyone other than yourself, this is the most critical role and can rule the roost, and it does, but only if you hold it yourself.

Popularity: 6% [?]

improve your SEO potential

For most people the upcoming holiday season will be one for relaxing and spending quality time with the family. But, [...]

Open source CMS

nomey
Cross-platform
Anomey is a small but effective framework and CMS for developing and maintaining web sites. (GPL)
BIGACE
Cross-platform
BIGACE is a multi-site, multi-language and [...]

Web Development / Frameworks

Bitweaver
Cross-platform
Bitweaver is a free and open source web application framework and content management system. (LGPL)
CakePHP
Cross-platform
CakePHP is a rapid development framework for [...]

Web Development Utilities

CKeditor
Cross-platform
This HTML text editor brings to the web much of the power of desktop editors like MS Word. It’s lightweight [...]

TAG CLOUD