[How-To] Disable Adsene Ads from Showing Up for Logged In Users in WordPress

As a Adsense Publisher, You are strictly not allowed to click on your ads and Google definitely has a way to make out if you clicked on your Ads. The way out to prevent that from happening is by disabling the ads from showing up for any of the logged in users of the website. 

In order to ensure that Adsense Ads are not shown to logged in users of your WordPress blog, add the following lines of code into your WordPress theme. Add these lines of code within the theme files referencing Adsense ads.
if (!is_user_logged_in()) {
// Insert your adsense code here
}

Adsense Earnings

Image: Adsense Earnings

The above code makes use of the boolean function is_user_logged_in() which returns true if the user is logged in. The above code insertion into your theme files will ensure that the Adsense Ads are displayed only for user’s which are not logged into the WordPress system.

 

Therefore in short, after inserting this code,  if you are the author of your blog and logged in, you wont get to see the ads.

Via

You can follow me on Twitter at http://twitter.com/vaibhav1981

Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. You can subscribe to Technofriends feed by clicking here.

WordPress 2.7 is now available for Download.

Interestingly though nothing is mentioned on the Official WordPress Blog, but seems like WordPress 2.7 is finally released. You can download WordPress 2.7 from the Official WordPress Download Page.

 

Wordpress 2.7 has made it to the world.

Wordpress 2.7 has made it to the world.

This has come pretty soon given the fact that WordPress released RC2 for WordPress 2.7 two days back.

[Update] WordPress.org homepage has the information about the release. I was indeed referring to the WordPress Official Blog which somehow didnt have the information while i was typing the post. The info is now up on the wordpress blog.

WordPress 2.7 RC2 available for download

Seems like WordPress 2.7 is not yet ready for the world. WordPress has now released the WordPress 2.7 RC2 after it released WordPress 2.7 RC1 few days back.

You can download WordPress 2.7 RC 2 by clicking here.

WordPress 2.7 is coming live for WordPress.com users tomorrow

Seems like WordPress is on a roll. Yesterday they released the WordPress 2.7 Release Candidate 1 and now they have another news for us. Wordress.com users will get the WordPress 2.7 version rolled out tomorrow. i.e. Thursday.

Jane Wells says,

As promised, here is the advance notice that WordPress 2.7 is coming to WordPress.com, and will go live on Thursday, December 4, 2008 at 8pm Eastern Time.

For those of you who use WordPress, do go through the Browser Recommendation part which clearly insists users to switch to Firefox 3, Google Chrome or Safari 3

A note on browser capabilities: WordPress 2.7 makes extensive use of JavaScript to create the user experience outlined here. If you have JavaScript turned off in your browser, some features may not be available or may work a bit differently than described here. In addition, using a recent standards-compliant browser will ensure that you have an optimal experience. Older browsers that are not supported by their manufacturers any longer may not look as expected; we recommend Firefox 3Google Chrome, and Safari 3.

WordPress 2.7 Release Candidate 1 is now available for Download

WordPress has released the Candidate 1 release for WordPress 2.7. Seems like wordpress is moving real fast with the release of 2.7 which is scheduled to happen soon.
 

 

Wordpress 2.7 release candidate 1 is up for grabs

Wordpress 2.7 release candidate 1 is up for grabs

WordPress says

With the release of RC1, we’re in the final leg of development before the release of 2.7.  280 commits since beta 3 have polished the new admin UI (including new menu icons created by the winners of our icon design contest) and fixed all known blocker bugs.

We think RC1 is ready for everyone to try out.  Please download RC1 and help us make the final release the best it can be.  As always, back up your blog before upgrading.

Download WordPress 2.7 Release Candidate 1

Also, if you are still on the older WordPress 2.x.x , its time you get a copy of WordPress 2.6.5 which was released a few days back.

WordPress 2.6.5 is up for grabs now

WordPress has released the latest version to the existing 2.6.3 version. The latest release has fixes for a couple of security issues which only affects IP-based virtual servers running on Apache 2.x.

 

Wordpress releases 2.6.5 version.

Wordpress releases 2.6.5 version.

The security issue is an XSS exploit discovered by Jeremias Reith that fortunately only affects IP-based virtual servers running on Apache 2.x. If you are interested only in the security fix, copy wp-includes/feed.php andwp-includes/version.php from the 2.6.5 release package.

2.6.5 contains three other small fixes in addition to the XSS fix. The first prevents accidentally saving post meta information to a revision. The second prevents XML-RPC from fetching incorrect post types. The third adds some user ID sanitization during bulk delete requests. For a list of changed files, consult the full changeset between 2.6.3 and 2.6.5.

Also, interestingly WordPress has deliberately not released the WordPress 2.6.4 release to avoid confusion with a fake 2.6.4 release that made the rounds a few days back. 

Please note WordPress doesn’t have a 2.6.4 version and if you happen to be running one of that, you better abandon it as soon as possible. WordPress also says, there is no 2.6.4 version and there will never be a WordPress 2.6.4 version.

Download WordPress 2.6.5

Also Read30+ Tools to Turn WordPress into a Personal Hub

Automattic has an interesting way of Hiring the Right Candidates

 

You can follow me on Twitter at http://twitter.com/vaibhav1981

Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. You can subscribe to Technofriends feed by clicking here.

Cheers

Vaibhav Pandey

Automattic has an interesting way of Hiring the Right Candidates

All companies agree to the fact that finding and recruiting the right talent is one of the best things a company can do in order to grow and increase shareholder value. However, its not always that easy. But, Automattic, the company behind WordPress, has definitely an interesting and impressive way of finding and recruiting the “Right Candidates”.

While checking out some stuff over the internet on a wordpress blog, i figured out that the company infact sends out a Special Custom Response header called X-Hacker which asks the candidate/user to apply for job with Automattic if he/she is looking at the header and is ofcourse interested. It also asks the reader to mention the header details. Check out the image below from Fiddler which contains the Request and Response HTTP headers.

Request Headers

Request Headers

 

 

Custom Response Header X-Hacker is sent back by the wordpress server asking the user to apply for a job with Automattic.

Custom Response Header X-Hacker is sent back by the wordpress server asking the user to apply for a job with Automattic.

If you are thinking how to checkout the HTTP Headers exchanged between the browser and the webserver, follow the below mentioned steps

1.) I recommend downloading Fiddler as it can be configured to run with any browser. By Default it will run with Internet Explorer and Google Chrome or any browser which uses WINInet. If you use Firefox, you can consider downloading Firefox Ad-On Live HTTP Headers.

2.) Open your browser and also open the software you just installed, Fiddler or Live HTTP Header. Ensure that the tool is capturing traffic. 

3.) Live HTTP Header should be able to show you the headers exchanged right away. In Fiddler, select the URL and then click on the tab which says “Session Inspector” to check the response headers.

Do you also know of any other innovative ideas about Hiring being implemented by any company?

Also Read: HTTP Response Status Codes

Understanding HTTP Cookies

How does Google knows if you are a Adsense client and clicking on your own ads?

You can follow me on Twitter at http://twitter.com/vaibhav1981

Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. You can subscribe to Technofriends feed by clicking here.

Cheers

Vaibhav Pandey