Categories
Orkut WebSites Wordpress

How To Add Orkut Share Button In WordPress Blogs

As most of you already aware about the thing that now a days Orkut allows a share button feature for websites and blogs. In this feature website owners can extend the functionality of sharing their content with visitor friends using Orkut. It is very easy to add the Orkut share button. Just follow the following simple steps and can add share this post on Orkut button.
Implenting Share Button In WordPress Blog

Step 1. Go to the theme folder of your wordpress blog. It will be like this /public_html/wp-content/themes/

Step 2. There will be a header.php file in your wordpress theme’s folder and you need to paste the following code above </head> tag

<script type=”text/javascript” src=”http://www.google.com/jsapi”></script>
<script type=”text/javascript”>
google.load(‘orkut.share’, ‘1’);
google.setOnLoadCallback(function() {
var params = {};
params[google.orkut.share.Field.TITLE] = ‘<?php the_title() ?>’;
params[google.orkut.share.Field.DESTINATION_URL] = ‘<?php the_permalink() ?>’;
var connection = new google.orkut.share.Connection(params);
document.getElementById(‘orkut-share’).onclick =
function(e) { connection.send(‘orkut.com’, {}); };
}, true);
</script>

Step 3. Now save the header.php file and go to Single.php file or wherever you want to put this button and paste the following code there.
<span id=”orkut-share” style=”cursor:pointer; border:0px solid black”>
<img src=”http://3.bp.blogspot.com/_eEuHGVw5WLg/SwpFfy4rMqI/AAAAAAAAAAk/jdm-zBiDdv8/s320/share.gif” alt=”Share Orkut” />
</span>

Save the file, upload it to your online server and you are done now.

Now whenever you open the post of your wordpress blog you will see the Share Button feature of Orkut.

Categories
Internet Tips

How to know the IP Address of any Computer

There are so many website which will tell you about the Ip Address(What is an IP Address) of your or other people computer.

Here are some of them

http://whatismyipaddress.com/

Categories
Hacking Internet Tips

What is an IP Address?

Every device connected to the public Internet is assigned a unique number known as an Internet Protocol (IP) address. IP addresses consist of four numbers separated by periods (also called a ‘dotted-quad’) and look something like 127.0.0.1.

Since these numbers are usually assigned to internet service providers within region-based blocks, an IP address can often be used to identify the region or country from which a computer is connecting to the Internet. An IP address can sometimes be used to show the user’s general location.

Because the numbers may be tedious to deal with, an IP address may also be assigned to a Host name, which is sometimes easier to remember. Hostnames may be looked up to find IP addresses, and vice-versa. At one time ISPs issued one IP address to each user. These are called static IP addresses. Because there is a limited number of IP addresses and with increased usage of the internet ISPs now issue IP addresses in a dynamic fashion out of a pool of IP addresses (Using DHCP). These are referred to as dynamic IP addresses. This also limits the ability of the user to host websites, mail servers, ftp servers, etc. In addition to users connecting to the internet, with virtual hosting, a single machine can act like multiple machines (with multiple domain names and IP addresses).

Source : whatismyipaddress.com

Categories
.htAccess Hacking Internet Tips

How to Block Or Restrict Hackers, Spammers From Visiting your Website

Sometimes the owners(administrators) of new websites gets so many spam comments on their websites.
Many peoples have a bad habit of harming the Websites by hacking spamming etc. If you are facing such type of problem then you can get rid from this by following steps:-

You can get rid from those hackers by blocking there IP (How to know the IP Address) by your web hosts control panel.You have to create .htaaccess file.In this file use these code with IP address

order deny,allow
deny from 203.23.116.11

( 203.23.116.11 is the ip-address of hacker )

Save this setting and you are done.

Now you will not face any more spam comments and your website will be safe from Hacking and unwanted unauthorized access of Hackers.

Categories
Programming Languages

Internet Explorer 9 Beta Released and Download for Fast Internet usage

internet explorer 9

Microsoft has released the beta for the newest version 9.0 of their ever-so-popular Internet Explorer browser. The beta has all the features that will be seen come release, but does not however have the updated version 9 UI. Microsoft development team said that this new internet explorer 9 will be the fastest browse ever and people who use social networking on this browser will have more fun using it. This new IE 9 will support CSS 3 also and will be more secure to handle online transactions and internet banking applications as well.

Version 9 has some important new things about it. For starters, there is support for HTML 5 and CSS 3, and a new JavaScript engine. IE9 also has an “Acid Test” feature that will let you test the compatibility and compliance of a website with IE9.

Additionally, this new browser is programmed to use your GPU much better: IE9 uses your computer’s GPU to enhance hardware scalable vector graphics (SVG), JavaScript performance, and HTML5 performance.

You can download the beta here.

Categories
.htAccess

CakePHP Tutorial: htaccess Redirecion Rules and modrewrite Tips

If you have a website or blog that was first developed in WordPress and then if you decided to convert it into some other platforms like cakephp, joomla, drupal website or else. Then you may want to install wordpress again in blog folder. Then the structure of your website will be like this

http://www.abc.com/ – inititally a wordpress blog, now a cakephp app

http://www.abc.com/blog/ – becomes the new wordpress blog’s address

Now the issue comes here is

How do I redirect visitors who arrive on the site through bookmarks or not-yet-updated search engine indexes so that they can land on the new wordpress blog address?

CakePHP’s htaccess

First thing you should know about CakePHP and htaccess: there are 3 htaccess files so we need to know which is the correct file to add our redirection rule.

But for this purpose, all we need to do is edit the .htaccess file in the cake app directory, the file which contains the following contents initially:

RewriteBase /
RewriteRule    ^$    webroot/    [L]
RewriteRule    (.*) webroot/$1    [L]

Since the wordpress blog has only a few posts, I added the following redirect rules at the top of the htaccess file. You might have to change the patterns depending on how your wordpress permalinks and tags were setup.

Redirect 301 /post-name-1/ /blog/post-name-1/
Redirect 301 /tag/tech/ /blog/tag/tech/

Final Result

Whenever someone types in or land at http://www.abc.com/post-name-1/, they will be now redirected to http://www.abc.com/blog/post-name-1/

I know this is not a robust and great solution but if you have Sitemap of all your blog posts then you can do the above trick very easily.

See my blog sitemap here www.vaseemansari.com/blog/sitemap.xml and you can see the url of all blog posts, now you need to copy the url and change it in .htaccess file and you are done with the trick. Have fun and feel free to ask me if you have any confusions in mind regarding the above tutorial of htaccess.

Thanks