Skip to main content

Posts

How to add a WordPress shortcode outside of the post editor or PHP templates

Shortcodes were introduced back in WordPress 2.5. Shortcodes are for creating macros to be use in a posts. For instance, the following shortcode (in the post/page content) would add a photo gallery into the page: [  gallery  ] If you want to use that shortcode outside of the WordPress post or page editor or PHP templates , you can use this snippet to output from the shortcode’s handler(s): // Use shortcode in a PHP file (outside the post editor). echo do_shortcode('[ gallery ]'); sources:  WordPress codex

How to get Administrator access back in WordPress?

Your role was Administrator. Suddenly, someone has changed your role in WordPress. You login to WordPress admin as a subscriber,you see  Profile page instead getting fully-functional Admin page.   How to get your role as an Administrator back? 1. Get help from another Administrator You can ask another Administrator to switch your current role back to Administrator. Login to WordPress Admin.  Go to Users section on the left sidebar of WordPress Dashboard page. Click Users.  Edit your username. Change your current role from Subscriber to Administrator. Click Update Profile button. Logout from WordPress Admin. Login again with your username. 2. PhpMyAdmin Most Control Panel has PhpMyAdmin feature in it. Open PhpMyAdmin. Find wp_usermeta table in the left sidebar of PhpMyAdmin. Click it. Click Browse tab, you’ll get all content of the table. See your nickname, there’s meta_key name wp_capabilities under that nickname. Change meta_value from Code Blo...

How to remove watermark from an image or picture

A watermark is any recognizable text, logo or pattern that appears over an image to identify the owner of the image and generally used to prevent unauthorized reuse of the image. Watermarks are usually transparent and can be difficult to remove. The difficulty or ease of removal depends on the content of the image and the position, color, size etc of the watermark. There are several resources out there that teaches you how to remove watermark from pictures, but most of them are old. Although these guides are still relevant, in light of some new tools that has recently become available in our hands, I decided a new guide was necessary. Hence this tutorial. Removing water mark using Photoshop CS5 The new iteration of Photoshop, Creative Suite 5 or CS5 in short, includes some handy tools that really helps in such tasks as removing watermarks. You must have already heard because  we wrote about this tool  on Instant Fundas. It’s called Content Aware Fill. For our exampl...

Take Screenshots of Webpages Bigger Than Your Screen with wpic

Capturing screenshots is easy – there is already a dedicated key on your keyboard for this purpose. Then, there are plenty of screen capture programs that automatically saves captured images, or loads them on an image editor for editing. But screen capturing programs only grabs the visible region of the screen. If the page is too large to be displayed in full on your monitor than the task becomes a bit more challenging. Previously , Firefox users could take screenshots of the entire page using the addon Screengrab. But this is no longer compatible with newer versions of Firefox. There is another standalone tool called  Webshots  that uses Internet Explorer to render the pages. Anybody who is aware of IE’s history knows that it isn’t the most desirable and reliable rendering engine in the world. wpic   is a command based screen capturing program that is based on the Chromium project. The program's command-line nature means it can easily be automated using scripts. A...

How to use a fake webcam video on Chatroulette

If you are a space buff, you must have heard of  Celestia , a three-dimensional space simulation program that allows users to travel through an extensive universe exploring planets, stars and galaxies. You can zip through space, visit planets, orbit stars and go forward or backward in time. For more than a decade, Celestia was pretty much the only thing we had. Now we have a new entrant –  SpaceEngine . SpaceEngine is another free space simulation software that lets you explore the universe in three dimensions, starting from planet Earth to the most distant galaxies. Users can fly through the SpaceEngine universe using keyboard controls at any speed from meters per second to hundreds of light years per seconds. The direction of travel is controlled by the arrow keys and the speed of travel by the mouse wheel. You can pan the view or rotate around an object using the mouse. To search an object, press F3 and type the location, or press F2 to bring up the solar system browse...

6 Windows Command prompt tricks that make life easier

Post Windows 2000 and Windows XP, the use of the Windows Command prompt has been on the decline. Everything that is done on Windows today is done through the graphical user interface. There are still some tasks that are done through the Command prompt, but we aren’t going to discuss about commands available for the Command line. There are plenty of  references  for that. Rather, we are going to find out those tricks that make working on the prompt easier. 1. Copy and Paste Text If you have ever tried to copy and paste stuff into the command prompt window, you must have discovered that Ctrl+C and Ctrl+V doesn’t work. You can however copy text from other applications, right click on the command prompt windows and click Paste. But how do you copy text from the command prompt? There is a strange way to do it. First right-click inside the command prompt window and click on  Mark . The title bar of the window should read Mark Command Prompt.     Now drag ...

How to use a fake webcam video on Chatroulette

Lately a website called Chatroulette is creating a lot of buzz in the blogosphere, and unless you just emerged from under a rock you have probably heard and used it too. Those who are truly clueless, here is an extract from Wikipedia: Chatroulette is a website which pairs random strangers for webcam-based conversations. Visitors to the website randomly begin an online stranger chat (video and text) with another visitor. At any point, either user may leave the current chat by initiating another random connection. When you go to  Chatroulette  (could be NSFW, be warned) you face a random stranger on webcam and he faces you through your webcam. A webcam is essential to chatting on Chatroulette. What if you don’t have a webcam or you don’t want to show yourself to random people on the Internet? Can you use Chatroulette without a webcam? Of course you can, thanks to virtual webcam software. Using a virtual webcam software you can use a pre-recorded webcam video, or any...