Showing posts with label browsers. Show all posts
Showing posts with label browsers. Show all posts

Saturday, 14 April 2012

How To Set Up A Proper 404 Error Page On Your WordPress Blog

The humble 404 has been with us since the tubes that make up the internet were first plumbed in. Websites can actually return a whole smorgasboard of different error codes, but 404 is the most common and generally referred to as “not found“.
wordpress 404 error
Unfortunately, the default message is pretty much as unhelpful as you can get, so today I’m going to show you how to tweak your WordPress 404 error page to be a whole lot more useful.
DIY or Friendly 404 Messages
You may have noticed we have our own custom error page at MakeUseOf which is somewhat more
welcoming than the default message. To make your own custom error page, simply create a template called 404.php in your theme folder – if you don’t already have one that is. Duplicate the single page template if you like, and cut out the main content area. You can then either hand code an image like we have, or write your own simple message. Then you start adding some advanced functionality.
wordpress 404 error

Email You About the Error

Usually when someone hits a 404 error page, it’s because they’ve followed a bad link somewhere rather than typing a silly URL directly into the address bar (though, never underestimate their ability to do that too). In those cases, it would be helpful for you as the admin of the site to know about the error, and either correct your own bad link or to ask the site linking to you to correct it. Paste this code snippet in full to the very top of your shiny new404.php page:

<?php $message = "";
if(isset($_SERVER['HTTP_REFERER'])):
$message .= "User came from: ".$_SERVER['HTTP_REFERER']."\r\n";
endif;
$message.="Page URL they tried to access was: ".$_SERVER['REQUEST_URI']."\r\n";
$admin_email = get_option('admin_email');
@wp_mail($admin_email,"404 error",$message);
?>
The above code will send an email to the registered admin email address describing the URL they came from, if available, and the URL they tried to get to. On the user side, it does nothing – it only emails you, and doesn’t output anything onto the error page itself.

Add a search form

The user obviously came to your site looking for something, so rather than leave them frustrated, let them search for what it was they wanted instead. To do this, find a suitable place on your template, perhaps add a little note about “Why not try searching instead?”, and paste in this single line of code:
<?php include(TEMPLATEPATH . "/searchform.php"); ?>

Plugins to Enhance the Error Page

If custom coding a 404 page isn’t really your thing, then no worries because there’s a few plugins that can give you a better 404 experience too. Let’s take a look:

404 Redirected

This plugin monitors your site for 404 errors and records them so you can be alerted from the admin panel. Moreover, if you find some external site has linked to you with the wrong link, you can redirect it without having to contact them – just tell the plugin where that broken linkshould be going, and visitors will be sent right along with a search engine friendly 301 automated redirection.
wordpress 404 error

Smart 404

Even better than trying to fix the 404 errors as they popup would be to never show them in the first place. Smart 404 does exactly that – it looks at the URL, extracts keywords from it, and tries to figure out exactly what the user was trying to go to. There’s no screenshot to show you, because it doesn’t need any configuring and just works out of the box. The downside is of course that if the URL contains nonsense keywords, it’s unlikely to find any matches – so spelling mistakes are also out.
Anyway, I hope you decide to make a proper WordPress 404 page, either DIY style or with a plugin. Do you know of any other clever 404 related plugins you’d like to share, if so then let us know in the comments!

source:Here

Tuesday, 10 April 2012

How to protect yourself online in three easy steps


protect yourself online
 Sometimes it may seem safer to go back to the days of the Pony Express rather than deal with the multitude of online threats, but there are some simple steps you can take to minimize the risks you face.
First, get a security suite, although there are about a dozen good suites, free and paid, out there. Go with one that gets good ratings and that you trust, and make sure that you let it update and scan regularly.
Second, I strongly recommend using a password manager that's independent of your browser. Not
that the browser password managers are known to be risky, because they're not. But third-party managers allow you more options, such as mobile device support, that I find essential. LastPass (download) and RoboForm (download) are among the best cross-platform tools out there that will work on both Windows and Mac and have smartphone support.
Third, use two browsers. Do your mission-critical browsing, such as financial transactions, in a separate browser from your "casual Web surfing" browser. Personally, I use Firefox  and Chrome. It doesn't matter which you use for which, both are safe and regularly updated browsers. But it's the easiest way to prevent unexpected third-party exploits on otherwise safe sites from snagging your data. LastPass and RoboForm let you keep your passwords at your fingertips, no matter which browser you use.

Bonus tip: This isn't strictly security-related, but I strongly recommend setting up sync if you're using Firefox, Chrome, or Opera. A colleague's computer crashed and he lost, among other things, his browsing data. If he had had sync set up, he could've easily resurrected his tabs, preferences, add-ons, passwords, and bookmarks. Even if you only use one computer, it's worth having all that information backed up.
Obviously, there's no foolproof method for staying safe online, but these tips will help you stay significantly safer.

source:HereCredit:Seth Rosenblatt

Monday, 9 April 2012

How to create and share custom Chrome themes


Until recently, creating your own Chrome theme meant you either had to know some code, or you had to rely on a Web app. Google recently released a Chrome app called My Chrome Theme, that makes creating and sharing themes extremely easy and a lot of fun.
The app breaks down the theme creation process into three steps:
my chrome theme
  1. Import your image: Upload an image or take a photo with your webcam.
  2. Add some color: Select colors for the toolbar, background, background tab, and frame.
  3. Install & share: Install the new theme and share the unique URL with others.




my chrome theme

The next time you launch My Chrome Theme, thumbnails for your themes will appear in a list at the bottom of your browser. Clicking on them will allow you to install, delete, or share them.
That's it. Keep in mind that the size limit for photos is 5MB and that you should only upload photos you have rights to use. Images from completed themes are stored on Google's servers.


source:Here