Showing posts with label quicktip. Show all posts

Qicktips : How To Detect Visitor Browser Type ( WordPress )



Sometimes we need to serve specific content or tweak to certain Web browsers. There are several ways to do so. For example, we can use the JavaScript BrowserDetect.browser function. We can also use the following comment tags to exclusively target Internet Explorer.

 

Modernizr is useful for feature detection of the browsers, so that we are able to patch the functionalities that are not supported. We can also use CSS3 media query, though it is not designed to retrieve browser information, it is useful to address the website presentation particularly in mobile browsers.



PHP Browser Detection

However, all of those methods are only altering the front side, while the actual content in the document’s markup remain unaffected. Say, we have two <div> elements one for Internet Explorer, and one for the other. These two elements will actually remain on the document regardless of the browsers.

In some cases, these methods might not be the ideal solution. So, the only viable option would be to use the server-side language, like PHP. If you are using WordPress, there is an easy to do so with a plugin called PHP Browser Detection.


Conditional Functions

When this plugin has been activated, it will give you nothing in the Dashboard. Instead, it provides several conditional functions to use in your theme files – such as page.php, index.php and others. It allows detection in all popular desktop and mobile devices – such as iPad and iPhone.


Basic Usage

Let’s see some usage examples. Say, we want to show notification only to Internet Explorer users. We can write something like this inside the header.php under the <body>.


With a few style adjustment in the stylesheet, Internet Explorer users will see the following.


But, when we see it in other browsers – Firefox, Opera, Safari and Chrome– the notification markup is not generated.


As mentioned, we can also target for mobile devices, which is very useful to optimize your WordPress site on the mobile platform. Assuming that you have enabled the post thumbnail support in your theme, we can add the following function to your index.php to serve lower image resolutions in mobile device, and higher resolutions for desktop browsers.


Those are only a few examples, head over to the WordPress.org page to see about this plugin in more detail.









Quicktip Recover Deleted IPhone Data Easily With MobiSaver



The advice to always backup, backup, backup maybe lost on some poor souls who prefer to learn it the hard way. But even then, backups can only work if you do it regularly. Ironically, it’s not something one can fall back on during an emergency, e.g. when you deleted an important message, a vacation photo or a contact profile with no way to retrieve that information.

Well, here is a solution for you.


 
Mobisaver is a free Windows desktop tool to help you recover deleted data from your iPhone, iPad and iPod Touch. It works from iOS 4 onwards and can recover among others, contacts, messages, notes, videos, etc. Let’s take a look at how it works using the iPhone as an example.



Recover Deleted Data With MobiSaver

Click here to download MobiSaver. MobiSaver is free to use for personal usage and is activated with a key. Upon installation you will be directed to a website to obtain your activation key.

The app can recover the following forms of deleted data:

  • Supporting Camera Roll (photos & videos)
  • Message Attachments (photos, videos, contacts)
  • Contacts
  • Messages
  • Call History
  • Calendar
  • Notes & Reminders
  • Safari Bookmarks



 
Once the device is connected to the computer, MobiSaver will automatically start scanning your device for deleted data, either from the device itself or from previous iTunes backups. With the iTunes backup, you can pick a point of backup to recover data from.

To help you narrow down your search for the deleted info you want, the items carry the date and time of when the deletion occurred. You can use this information to reduce the amount of data you need to sift through. There is also the option to display only deleted info.


 

From the displayed items, just tick the item you want recovered, and the destination you want to recover it to, and click OK to confirm.



Limitations

Note that MobiSaver can only help you recover deleted data back to your computer. It cannot recover the deleted data straight back into the iPhone. To restore them back into your iPhone, you can use iTunes or programs such as CopyTrans.

We also found (during the testing period) that photo recovery was a little buggy. When we tried to recover deleted photos, it only displays the existing photos in our iPhone and not the ones that we have deleted (do let us know if this happens when you tried it as well). Aside from that, the app serves its purpose as a great tool to easily recover deleted data.

Export And Backup Your Instagram Photos [Quicktip]



Instagram is the hottest photo-sharing camera app that’s available on the market today, and you may be among its million users worldwide, taking amazing photos and sharing them online. What’s lacking in Instagram though is a storage option – you don’t get to store your photos locally in your phone.


Of course, you can keep those amazing photos on your computer by manually copying the files over from the Instagram website and saving them locally, or you could export all of your amazing Instagram photos at once and keep them safe on your computer with Instaport, a simple web application that will backup all your Instagram photos in a single zipped file.
Export Instagram Photos

To export your Instagram photos and save them locally, go to the Instaport website, sign in with your Instagram ID and click ‘Yes’ to authorize Instaport’s access to Instagram to look for your photos.




Once access is granted, select ‘Download .zip file’ and choose to download all photos, and then click the ‘Start Export’ button.



Instaport will process your request; this may take some time depending on the number of files in your collection. Once completed, Instaport will provide the download link, click on that link to download all of your Instagram photos into a zip file.




Conclusion

I managed to download my collection without any issue and now I get to store my Instagram photos locally on my computer and access them anytime I want even without access to the Internet.Instaport makes it simpler to transfer all your photos and memories for safekeeping.
Related Posts Plugin for WordPress, Blogger...

- Copyright © 2013 All Ping