Follow Me at Twitter

I search for twitter follow me icons. I found a web site which is listed 31 logos for this. I hope you’ll enjoy..

http://www.vincentabry.com/31-logos-et-boutons-pour-twitter-2480

BBPress is Forum of WordPress

I create a new web site about “The Martial Arts” with Wordpress. I want to create a forum work with WordPress together. I remember WordPress team works on forum software. They called “BBPress“. I install BBPress and it is asked me some WordPress questions about config file, i set them and i have got forum integrated with WordPress. Users are same in forum and WordPress. I suggest you BBPress if you are using Wordpress and want basic forum. BBPress is better in SEO. It is always come with its own seo system like wordpress. Here is my forum >

Read Config File to install BB Press

define('AUTH_KEY', 'aaaaa');

define('SECURE_AUTH_KEY', 'bbbbb');

define('LOGGED_IN_KEY', 'ccccc');

define('NONCE_KEY', 'ddddd');
define(‘AUTH_KEY’, ‘Martial1′);
define(‘SECURE_AUTH_KEY’, ‘Martial2′);
define(‘LOGGED_IN_KEY’, ‘Martial3′);
define(‘NONCE_KEY’, ‘Martial4′);

Watermark All Uploaded Images in Wordpress

Water MarkI need a code for watermarked all uploaded images in wordpress. I google it, and i find a solution in WP Glamour. You only add this codes and all of your upload images are watermarked. This very easy solution for watermark your images. Because if you try to add watermark with PhotoShop or another image program, it will be so hard for you.

Firstly create a file with name “watermark.php”, after you will add a rule to .htaccess file.

watermark.php


<?
$src = $_GET['src'];

header('Content-type: image/jpeg');

//this will prevent the watermark from showing up in the thumbnail images
if (eregi("150x150", $src)) {
 $watermark = imagecreatefrompng('empty.png');
} else {
 $watermark = imagecreatefrompng('watermark.png');
}
$watermark_width = imagesx($watermark);
$watermark_height = imagesy($watermark);
$image = imagecreatetruecolor($watermark_width, $watermark_height);
if(eregi('.gif',$src)) {
$image = imagecreatefromgif($src);
}
elseif(eregi('.jpeg',$src)||eregi('.jpg',$src)) {
$image = imagecreatefromjpeg($src);
}
elseif(eregi('.png',$src)) {
$image = imagecreatefrompng($src);
}
else {
exit("Your image is not a gif, jpeg or png image. Sorry.");
}
$size = getimagesize($src);
$dest_x = $size[0] - $watermark_width - 0;
$dest_y = $size[1] - $watermark_height - 0;
imagecolortransparent($watermark,imagecolorat($watermark,0,0));
imagecopyresampled($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, $watermark_width, $watermark_height);

imagejpeg($image, "", 95);
imagedestroy($image);
imagedestroy($watermark);
?>

.htaccess file

RewriteRule ^(.*)wp-content/uploads/(.*) $1watermark.php?src=wp-content/uploads/$2

Download Source Codes >

Full description of script >

Wordpress Watermark Plugin >

Protect Image From Other Sites

Sometimes other sites use our images, but there is no link us. Only it is fill our bandwidth limit. We can ban that users or we can show another image for that sites. You can write that image “This images can download in www.domain.com”. You have to add this codes to .htaccess

Change domain with your domain name and sucks.jpe is your image to show

<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteCond %{HTTP_REFERER} !^$
 RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com/.*$ [NC]
 RewriteRule .*\.(gif|jpg)$ http://www.domain.com/sucks.jpe [R,NC,L]
</ifModule>

If you want to serve a standard 403 forbidden error page

RewriteRule .*\.(gif|jpg)$ - [F,L]

If you want to add your friends sites to allow link

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

WordPress 2.8 is Ready for Download

wordpress 2.8The latest and greatest version of WordPress, version 2.8 “Baker,” is immediately available for download. 2.8 represents a nice fit and finish release for WordPress with improvements to themes, widgets, taxonomies, and overall speed. They also fixed over 790 bugs. This release is named in honor of noted trumpeter and vocalist Chet Baker.

Download WordPress 2.8 >

First and foremost, 2.8 is way faster to use. We’ve changed the way WordPress does style and scripting.

The core and plugin updaters in previous versions of WordPress have been such a success we decided to bring the same to themes. You can now browse the entire theme directory and install a theme with one click from the comfort of your WordPress dashboard.

If you make edits or tweaks to themes or plugins from your dashboard, you’ll appreciate the new CodePress editor which gives syntax highlighting to the previously-plain editor. Also there is now contextual documentation for the functions in the file you’re editing linked right below the editor.

If you were ever frustrated with widgets before, this release should be your savior. We’ve completely redesigned the widgets interface (which we didn’t have time to in 2.7) to allow you to do things like edit widgets on the fly, have multiple copies of the same widget, drag and drop widgets between sidebars, and save inactive widgets so you don’t lose all their settings. Developers now have access to a much cleaner and robust API for creating widgets as well.

Finally you should explore the new Screen Options on every page. It’s the tab in the top right. Now, for example, if you have a wide monitor you could set up your dashboard to have four columns of widgets instead of the two it has by default. On other pages you can change how many items show per page.

How to Listing Blog Authors on Wordpress

When you are running a multi-user blog you have want to list authors. Than here is the code to do it.

<ul>
<?php wp_list_authors('exclude_admin=0&optioncount=1&show_fullname=1&hide_empty=1'); ?>
</ul>

Parametres :

exclude_admin:
0 : Include the admin’s name in the authors
1 : Exclude the admin’s name from the list

optioncount :
0 :
 No post count against the author’s name
1 : Display post count against the author’s name

show_fullname :
0 : Display first name only
1 : Display full name of the author

hide_empty
0 :
Display authors with no posts
1 : Display authors who have one or more posts

What is Canonical Link Element?

Google, Yahoo, Ask and Microsoft announced support for a new link element to clean up duplicate urls on sites. We add HEAD part of document, its syntax is pretty simple

<link rel="canonical" href="http://www.webmastersucks.com/pages.html" />

This syntax is telling search engines that the preferred location of this url is http://www.webmastersucks.com/pages.html instead of http://www.webmastersucks.com/pages.html?PHPSESSID=293JA434MFNs

yoast.com has already produced several plugins for WordPress, Magento and Drupal. You can find plugins in Yoast.

If we used “canonical”, then our content is not dublicated. These are same, and search engines see the same content. Make all the non-canonical urls do a permanent (301) HTTP redirect to the canonical/preferred url.

www.example.com
example.com
www.example.com/
example.com/
www.example.com/index.html
example.com/index.html

Links About Canonical Link Element

Matt Cutts’s Slide Show >
Google’s Blog Post >
Yahoo’s Blog Post >
Bing’s Blog Post >
Ask.com’s Blog Post >

FeedBurner HtAccess Redirect for WordPress Feeds

Firstly, we burn our wordpress feeds to FeedBurner. You can burn in www.feedburner.com , we get a feedburner link like “http://feeds2.feedburner.com/WebmasterSucks“. I also burned comments feed. We redirect our WordPress feed to FeedBurner. Its help us to track our feed and add adsense code to our feeds.

<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteCond %{REQUEST_URI}      ^/?(feed.*|comments.*)        [NC]
 RewriteCond %{HTTP_USER_AGENT} !^.*(feedburner|feedvalidator) [NC]
 RewriteRule ^feed/?.*$ http://feeds2.feedburner.com/WebmasterSucks         [L,NC,R=302]
 RewriteRule ^comments/?.*$ http://feeds2.feedburner.com/WebmasterSucksComments [L,NC,R=302]
</IfModule>

For more information :
http://perishablepress.com/press/2008/10/13/wordpress-feedburner-htaccess-redirect-default-feeds/

Forgot WordPress Admin Password

Firstly; you need access to your MySQL Server and maybe access to your wp-config.php file in the root of your site.

  1. Go www.md5-creator.com and type in a password you want to use.Example type “123″ then copy. “123 in MD5 :” ’s result is “202cb962ac59075b964b07152d234b70″
  2. Than open your MySQL database, and click the wp_users table
  3. Change “user_pass” value to copied value. In our example “202cb962ac59075b964b07152d234b70″
  4. Now go to your blog and log in :)