Diberdayakan oleh Blogger.

Jumat, 16 Maret 2012

Install Wordpress


When you install wordpress blog, you will be asked to check “Allow my blog to appear in search engines like Google and Technorati.” at the WordPress Installation page. But if have unchecked it, Don’t worry, you can always change these settings later at the admin page. Here is how you cam make a blog visible to search engines like Google, Bing, Technorati, etc.,
wordpress-Installation-page.jpg
If you want to make your wordpress blog visible on search engines
In the wordpress admin area (wp-admin ) Go to Privacy Settings >> Blog Visibility; and set the Blog Visibility to
I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers
wordpress-privacy-settings.jpg
If you DON’T want to make your wordpress blog visible to search engines and allow normal visitors
In the wordpress admin area (wp-admin ) to Privacy Settings >> Blog Visibility; and set the Blog Visibility to
I would like to block search engines, but allow normal visitors
Like ThePicky, follow us on Twitter, or get daily updates via email.

How to make a blog page number navigation easily

How to make a blog page number navigation easily

Actually sometime hard to find working number navigation gadget for blogger.So this post will help you to add page number navigation easily. it will helpful to your visitors to keep watching your other post.so you can increase page-views.Its just  blogger widget . try it.

1.  Log in to blogger account > Go to Design >> Page Element

2. Click Add Gadget and select 'HTML/Javascript'

3. Paste below code.

How To Make Blog Page Number Navigation
<style type='text/css'>

.showpageArea a {
text-decoration:underline;
}
.showpageNum a {
border:1px solid #aeaeae;
margin:0 3px;
padding:3px 7px;
text-decoration:none;
}
.showpageNum a:hover {
background-color:#0a8be5;
border:1px solid #000000;

}
.showpagePoint {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:#aeaeae none repeat scroll 0 0;
border:1px solid #aeaeae;
color:#333333;
margin:0 3px;
padding:3px 7px;
text-decoration:none;
}
.showpageOf {
margin:0 3px 0 0;
padding:3px 7px;
text-decoration:none;
}
.showpage a {
border:1px solid #aeaeae;
padding:3px 7px;
text-decoration:none;
}
.showpage a:hover {
text-decoration:none;
}
.showpageNum a:link, .showpage a:link {
color:#333333;
text-decoration:none;
}

</style>


<script type='text/javascript'>

var home_page_url = location.href;

var pageCount=1;
var displayPageNum=3;
var upPageWord ='Previous';
var downPageWord ='Next';

function showpageCount(json) {
var thisUrl = home_page_url;
var htmlMap = new Array();
var thisNum = 1;
var postNum=1;
var itemCount = 0;
var fFlag = 0;
var eFlag = 0;
var html= '';
var upPageHtml ='';
var downPageHtml ='';

for(var i=0, post; post = json.feed.entry[i]; i++) {

var timestamp1 = post.published.$t.substring(0,19)+post.published.$t.substring(23,29);
timestamp = encodeURIComponent(timestamp1);

var title = post.title.$t;

if(title!=''){
if(itemCount==0 || (itemCount % pageCount ==(pageCount-1))){
if(thisUrl.indexOf(timestamp)!=-1 ){
  thisNum = postNum;
}

if(title!='') postNum++;
htmlMap[htmlMap.length] = '/search?updated-max='+timestamp+'&max-results='+pageCount;
}
}
itemCount++;

}

for(var p =0;p< htmlMap.length;p++){
if(p>=(thisNum-displayPageNum-1) && p<(thisNum+displayPageNum)){
if(fFlag ==0 && p == thisNum-2){
if(thisNum==2){
 upPageHtml = '<span class="showpage"><a href="/">'+ upPageWord +'</a></span>';
}else{
 upPageHtml = '<span class="showpage"><a href="'+htmlMap[p]+'">'+ upPageWord +'</a></span>';
}

fFlag++;
}

if(p==(thisNum-1)){
html += '<span class="showpagePoint">'+thisNum+'</span>';
}else{
if(p==0){
  html += '<span class="showpageNum"><a href="/">1</a></span>';

}else{
 html += '<span class="showpageNum"><a href="'+htmlMap[p]+'">'+ (p+1) +'</a></span>';
}
}

if(eFlag ==0 && p == thisNum){
downPageHtml = '<span class="showpage"> <a href="'+htmlMap[p]+'">'+ downPageWord +'</a></span>';
eFlag++;
}
}
}

if(thisNum>1){
html = ''+upPageHtml+' '+html +' ';
}

html = '<div class="showpageArea"><span  class="showpageOf"> Pages ('+(postNum-1)+')</span>'+html;

if(thisNum<(postNum-1)){
html += downPageHtml;
}

if(postNum==1) postNum++;
html += '</div>';

var pageArea = document.getElementsByName("pageArea");
var blogPager = document.getElementById("blog-pager");

if(postNum <= 2){
html ='';
}

for(var p =0;p< pageArea.length;p++){
pageArea[p].innerHTML = html;
}

if(pageArea&&pageArea.length>0){
html ='';
}

if(blogPager){
blogPager.innerHTML = html;
}

}

function showpageCount2(json) {

var thisUrl = home_page_url;
var htmlMap = new Array();
var isLablePage = thisUrl.indexOf("/search/label/")!=-1;
var thisLable = isLablePage ? thisUrl.substr(thisUrl.indexOf("/search/label/")+14,thisUrl.length) : "";
thisLable = thisLable.indexOf("?")!=-1 ? thisLable.substr(0,thisLable.indexOf("?")) : thisLable;
var thisNum = 1;
var postNum=1;
var itemCount = 0;
var fFlag = 0;
var eFlag = 0;
var html= '';
var upPageHtml ='';
var downPageHtml ='';

var labelHtml = '<span class="showpageNum"><a href="/search/label/'+thisLable+'?&max-results='+pageCount+'">';
var thisUrl = home_page_url;

for(var i=0, post; post = json.feed.entry[i]; i++) {

var timestamp1 = post.published.$t.substring(0,19)+post.published.$t.substring(23,29);
timestamp = encodeURIComponent(timestamp1);

var title = post.title.$t;

if(title!=''){
if(itemCount==0 || (itemCount % pageCount ==(pageCount-1))){
if(thisUrl.indexOf(timestamp)!=-1 ){
 thisNum = postNum;
}

if(title!='') postNum++;
htmlMap[htmlMap.length] = '/search/label/'+thisLable+'?updated-max='+timestamp+'&max-results='+pageCount;

}
}
itemCount++;
}

for(var p =0;p< htmlMap.length;p++){
if(p>=(thisNum-displayPageNum-1) && p<(thisNum+displayPageNum)){
if(fFlag ==0 && p == thisNum-2){
if(thisNum==2){
 upPageHtml = labelHtml + upPageWord +'</a></span>';
}else{
 upPageHtml = '<span class="showpage"><a href="'+htmlMap[p]+'">'+ upPageWord +'</a></span>';
}

fFlag++;
}

if(p==(thisNum-1)){
html += '<span class="showpagePoint">'+thisNum+'</span>';
}else{
if(p==0){
 html = labelHtml+'1</a></span>';
}else{
 html += '<span class="showpageNum"><a href="'+htmlMap[p]+'">'+ (p+1) +'</a></span>';
}
}

if(eFlag ==0 && p == thisNum){
downPageHtml = '<span class="showpage"> <a href="'+htmlMap[p]+'">'+ downPageWord +'</a></span>';
eFlag++;
}
}
}

if(thisNum>1){
if(!isLablePage){
html = ''+upPageHtml+' '+html +' ';
}else{
html = ''+upPageHtml+' '+html +' ';
}
}

html = '<div class="showpageArea"><span  class="showpageOf"> Pages ('+(postNum-1)+')</span>'+html;

if(thisNum<(postNum-1)){
html += downPageHtml;
}

if(postNum==1) postNum++;
html += '</div>';

var pageArea = document.getElementsByName("pageArea");
var blogPager = document.getElementById("blog-pager");

if(postNum <= 2){
html ='';
}

for(var p =0;p< pageArea.length;p++){
pageArea[p].innerHTML = html;
}

if(pageArea&&pageArea.length>0){
html ='';
}

if(blogPager){
blogPager.innerHTML = html;
}

}

</script>
<script type='text/javascript'>

var thisUrl = home_page_url;
if (thisUrl.indexOf("/search/label/")!=-1){
if (thisUrl.indexOf("?updated-max")!=-1){
var lblname1 = thisUrl.substring(thisUrl.indexOf("/search/label/")+14,thisUrl.indexOf("?updated-max"));
}else{
var lblname1 = thisUrl.substring(thisUrl.indexOf("/search/label/")+14,thisUrl.indexOf("?&max"));
}
}

var home_page = "/";
if (thisUrl.indexOf("?q=")==-1){
if (thisUrl.indexOf("/search/label/")==-1){
document.write('<script src="'+home_page+'feeds/posts/summary?alt=json-in-script&callback=showpageCount&max-results=99999" ><\/script>')
}else{document.write('<script src="'+home_page+'feeds/posts/full/-/'+lblname1+'?alt=json-in-script&callback=showpageCount2&max-results=99999" ><\/script>')
}
}
</script>

You can change 1 and 3 and color code as your like.get your color code here

4. Save HTML/Javascript. you are done. 

How to make your wordpress blog visible on search engines


When you install wordpress blog, you will be asked to check “Allow my blog to appear in search engines like Google and Technorati.” at the WordPress Installation page. But if have unchecked it, Don’t worry, you can always change these settings later at the admin page. Here is how you cam make a blog visible to search engines like Google, Bing, Technorati, etc.,
wordpress-Installation-page.jpg
If you want to make your wordpress blog visible on search engines
In the wordpress admin area (wp-admin ) Go to Privacy Settings >> Blog Visibility; and set the Blog Visibility to
I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers
wordpress-privacy-settings.jpg
If you DON’T want to make your wordpress blog visible to search engines and allow normal visitors
In the wordpress admin area (wp-admin ) to Privacy Settings >> Blog Visibility; and set the Blog Visibility to
I would like to block search engines, but allow normal visitors
Like ThePicky, follow us on Twitter, or get daily updates via email.

How to make a “multilingual” WordPress blog without multilingual plugins


Around October 2010 I migrated from Drupal to WordPress my bilingual websites Stop and Strider. Eighteen months later, WordPress has confirmed to be better than Drupal for my own needs, as far as those two websites are concerned (I still stick to Drupal for other websites).
There is, however, one part of those WordPress websites that has just become a big problem for me, and is how to keep them (looking) multilingual. I think I have found a solution for it and have explained it here for two reasons. First if I am right, this trick will be probably useful to many other WordPress users. The other is caution. I said I think I have a solution: I have done a little testing on a dummy installation (see below) and everything seems to work. However, before implementing it on the actual blogs, I’d really like to have some feedback from the community, just to make sure I am not forgetting something important (which I may have very well done).

When I started those two websites, I wanted them to have one name/base URL as simple and short as possible, so that I could just tell people “go to stop.zona-m.net” and then they would immediately find the version in their language, versus “go to {it,en}.stop.zona-m.net”. English content would have URLs like stop.zona-m.net/2010/11/article-title/, while all Italian content would have the /it/ suffix, as in stop.zona-m.net/it/2010/11/article-title/ and there would be automatic links from each version to the other. Drupal 6 does this, no problem.

Do you REALLY need a multilanguage blog?

When I moved to WordPress the best way to keep this architecture with one WordPress install seemed, and very likely is, the WPML plugin with English as primary language. After a while, however, I realized that WPML doesn’t seem to do all I need and had in Drupal. This may be my own fault but, for example, I found no way in WPML to:
  • use language-dependent widgets, ie how to tell WPML that a certain widget, e.g. an RSS feed, must be shown only in the English or Italian version of each page (update 2011/04/15: Amir, one of the WPML maintainers, points out in the comments to this post that this is now possible with WPML and it is explained here)
  • link to each other, as Drupal lets you do, the different names in each language of each category, in order to have automatic links between, for example, http://stop.zona-m.net/category/digiworld/ and its italian equivalent http://stop.zona-m.net/it/category/digimondo/, or to have automatic preselection of the right categories in the new target language when you translate an existing article.
In addition to this, I also realized something more important. Very likely, no matter how cool it looks, I don’t really need the links with the nice flags between english and italian versions of each page. By this I mean that my readers don’t really need it and almost never use it, because almost all of them only use the website in only one language.
Finally, at the beginning of 2011, WPML announced it would become a commercial/proprietary product. Putting all this together made me decide to find another solution.

Making two copies of WordPress look like one bilingual website

Those two websites run on a Virtual Private Server, on which I can add databases, change apache settings and so on as much as I want. This and all I explained in the previous section made me consider splitting each one of those websites in two independent, monolanguage WordPress installs. The result would be something a little bit less convenient to manage for me than it was with WPML, but nothing substantial, and almost transparent for all my readers.
As long, of course, as no URL changes in the migration! I want all the English URLs to remain the same (no problem) but I also do NOT want to “lose” or change the italian URLs. Here’s how I have achieved this on a test install, please tell me if there are weaknesses!
I have set up a test bilingual blog at bits.zona-m.net, with the same versions of WordPress and all the plugins as the real websites, in the /var/www/html/wp/tips directory, associated to the wp_tips MySql database and with this Apache server configuration:
  <VirtualHost *:80>
      ServerAdmin marco@digifreedom.net
      DocumentRoot /var/www/html/wp/tips
      ServerName tips.zona-m.net
      AccessFileName .htaccess
      CustomLog logs/tips.zona-m.net.access.log combined
      ErrorLog  logs/tips.zona-m.net.error.log
  </VirtualHost>
Then I created a few posts in it, both in English and Italian, with links to each other, to have something meaningful on which to test the following method.
In order to split that WordPress bilingual blog in two independent ones without breaking any URL already created, first I cloned its MySql database:
  # mysqldump -u root -p wp_tips > ~/dumb_wptips_bilingual.sql
  # mysql -u root -p
  > create database wptips_it;
  > use wptips_it;
  > source /root/dumb_wptips_bilingual.sql;
  > GRANT ALL PRIVILEGES ON wptips_it.* TO "sameuser_ofwptips"@"localhost" IDENTIFIED BY "password";
then I duplicated the whole, already working WordPress installation of tips.zona-m.net to another directory:
  cp -r -p /var/www/html/wp/tips /var/www/html/wp/tips_it
and modified the wp-config.php file in tips_it to point at the wptips_it database. Next, I modified the Apache configuration to “fetch” all and only the URLs starting withhttp://tips.zona-m.net/it from that second directory. In order to do this it is necessary to create an alias in the httpd.conf file:
  <VirtualHost *:80>
      ServerAdmin marco@digifreedom.net
      DocumentRoot /var/www/html/wp/tips
      ServerName tips.zona-m.net
      Alias /it /var/www/html/wp/tips_it
      AccessFileName .htaccess
      CustomLog logs/tips.zona-m.net.access.log combined
      ErrorLog  logs/tips.zona-m.net.error.log
  </VirtualHost>
and to modify the .htaccess files in the two folders as follows:
  # more /var/www/html/wp/tips/.htaccess
  <IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  </IfModule>
  # more /var/www/html/wp/tips_it/.htaccess
  <IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /it/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /it/index.php [L]
  </IfModule>
  #

At that point, “all” was left was to convince the cloned WordPress installation in tips_itand its MySql database wptips_it that they now live at another base URL with the it/ suffix, that is tips.zona-m.net/it. It seemed to me that the simplest/safest method in this case among those recommended in the official Change the WordPress URL page is the one called “Edit functions.php”. So I added these two lines to the functions.php file of the active theme:
  # cat /var/www/html/wp/tips_it/wp-content/themes/twentyten/functions.php
  <?php
  /*
  update_option('siteurl','http://tips.zona-m.net/it');
  update_option('home','http://tips.zona-m.net/it');
  */
  /**
   * TwentyTen functions and definitions
   *
then, as the WordPress page above recommends, I loaded the admin page a couple of times and immediately after I removed those two lines. Last but not least, I deactivated English in WPML in the “Italian” blog and Italian in the “English” one. Done! Apparently, everything works, as you can check by yourself by going to http://tips.zona-m.net andhttp://tips.zona-m.net/it. All the URL created when there was only one bilingual WPML/WordPress install are still valid with the same website URL: you can still visit bothhttp://tips.zona-m.net/2011/04/here-we-go-with-my-second-english-post/ andhttp://tips.zona-m.net/it/2011/04/versione-italiana-del-secondo-post/, even if they are now served by different copies of WordPress. The only thing that has been lost, but as I said I do wonder if I really needed it, are the links between the several versions of each page.
If this works, I will migrate the real websites to this structure, deactivate/remove WPML completely, then upgrade both of them to the last version of WordPress, customized their layout separately and go on. The only things I should lose are, I believe:
  • possibility to handle posts in both languages from the same browser window. Worth the hassle for me, if it both maintains the old URLs and lets me customize each language at will
  • clear signs for Italian visitors that there is also an English version of each website and vice-versa. I feel that just adding a link in the top menu bar to the home pages of each language should be enough, since I’m pretty confident that almost nobody so far actually used both two languages
  • (totally wild guess, not sure if this really is an existing issue) search engines temporarily pissed off and de-ranking each post because it doesn’t have links from the version in the other language???
What do you think? Have I missed something? Is there any security hole or other weakness that will come and bite me if I migrate the real website? Should I do something else? Please let me know!

How to Make a Blog With Joomla


Joomla is a free and open-sourced content management utility uses to publish content on the Internet. It is written in PHP and uses object-oriented programming. It also offers support for creating Web content in different languages. It is not designed solely for blog creation, but you can create a blog through Joomla. Additionally, Joomla gives you options for setting the layout of the blog as well as managing what is displayed to viewers.

Step 1

Launch the Joomla application from the location you have it saved in.

Step 2

Click "Content" and "Section Manager" from the main menu. Type a name for the section when prompted and click "Save" to apply the name. Click "Content" and "Category Manager." Enter the categories you wish to set up for the blog. Click "Save" to apply the categories.

Step 3

Click "Content" and "Article Manager." Type in an article you wish to publish on the blog. Click the "Read More" button to place a red line in the post. Everything you have written above the red line will be included as the introduction to the post in search engines.

Step 4

Click "Menu," "Main Menu," "New," "Articles" and "Section Blog Layout." Select the section you named previously. Click "Parameters." This will give you the ability to edit the sections of the blog including how many posts to display and where they will be displayed.

How To Make the best Blog Post Go Viral In StumbleUpon


StumbleUpon is one of the most efficient ways to drive traffic and get maximum referral visits. With just a few Thumbs-up you can get hundreds of visitors, but most Bloggers fail to get those first thumbs-ups to their sites or blog.
It is still a great source of traffic and links. It’s simply an incredible viral means to drive a large amount of sustainable traffic to any website over a period of time. Using it is crucial to your social marketing success


1. DON’T STUMBLE YOUR OWN CONTENT

You’ll need to sign up and stumble other member’s websites in return for other members thumbing and tagging your website/blog. If you only stumble your own content, then other users won’t feel you add any value to the StumbleUpon community aside from self-promotion.

2. BE AN ACTIVE STUMBLER

Don’t just submit your articles. Be active and stumble. Get out there and vote on other people’s sites as well. You need to recommend sites to your friends, you need to make friends, and provide well written reviews of relevant sites. Active users command more traffic and they’re more likely to take an action because they’re stumbling actively anyway. Don’t just add a friend then forget about them. The power of StumbleUpon grows the more you network.

3. BE CONSISTENT AND INVEST YOUR TIME IN YOUR NETWORK BUILDING

Take some time to get to know other members of the StumbleUpon community and befriend them. Your StumbleUpon presence will grow as you network with more users. Start doing all these steps mentioned here every day and you will soon find yourself in a network of people that are interested in the content of your blog, and that are active StumbleUpon users as they have recently submitted/reviewed/thumbed some relevant articles to your content.

4. ONSITE EXPOSURE

Include a Stumble Upon button on your webpage or blog post and encourage your users to use it. Like smartbloggerz has done here (in the bottom of every post). Don’t forget to link to your stumbleupon profile, in your about me page and your homepage.
Greet box or Referrer Detector, are great plugins to greet your StumbleUpon visitors with a welcome message and asking them to rate your post and subscribe to your feed or you can do it manually.

5. STUMBLEUPON ADVERTISING CAMPAIGN

StumbleUponAds allows you to submit a page on your blog to be shown to StumbleUpon users as they go Stumbling. The cost is 5 cents per impression, so for as little as $5 you can have 100 StumbleUpon users looking your page. If you place your campaign in a popular category and set your number of views to be high, you can rapidly expose your blog to a very new & large audience.

TRAFFIC IS LONG-TERM!

Every blogger know that traffic generated via StumbleUpon is long-term. StumbleUpon is different from a search engine, which offers very targeted/unique traffic that matches keyword searches with the content on your blog.
PS. If you’re not investing your time in StumbleUpon community, then also your blog will get high traffic but it will not stay for more than 30secs.. :D .

Although there are many ways to generate traffic via StumbleUpon but this post contain simple steps to generate traffic via StumbleUpon. If any of you have any tips or views regarding this post please do share it with us through comment section :)