If you want to check if a WordPress plugin is active, just use the is_plugin_active() function. The function takes a single parameter, which is the path to the plugin, as shown in the example below:
Clearing the default value of text input with Javascript
Often in a web form you will put a default value into a text box which explains what the box is for and when the user clicks into the box clear the value. An example of this is a sidewide search box where you might want to put the instructions (e.g. “enter your keywords here”) [...]
Useful PHP Regular Expression
In computing, regular expressions, also referred to as regex or regexp, provide a concise and flexible means for matching strings of text, such as particular characters, words, or patterns of characters. A regular expression is written in a formal language that can be interpreted by a regular expression processor, a program that either serves as [...]
Showing custom post types on your home/blog page
By default, WordPress shows only the “post” post type on your home/blog page. If you want to display your custom post types you have to add a filter (pre_get_posts). So let’s suppose we have created the post types “portfolio and gallery” in addition. To add these, open your theme’s functions.php file and paste the following [...]
How popular is your site?
Popuri.us Popuri is a tool to check at-a-glance the link popularity of any site based on its ranking (Google PageRank, Alexa Rank, Technorati etc.), social bookmarks (del.icio.us, etc), subscribers (Bloglines, etc) and more!
Email Address Verification with PHP
This PHP email verification Class lets you verify if an email address is valid and really exists. It works as SMTP Server: MX-Records are extracted from a DNS Server, then the Script connects to SMTP servers and simulates the sending of a message. Unfortunately For some domains you can’t verify whether the address is good [...]
Best PPC Advertising Networks
Pay Per Click (PPC) is an Internet advertising model used on websites, in which advertisers pay their host only when their ad is clicked. With search engines, advertisers typically bid on keyword phrases relevant to their target market. Content sites commonly charge a fixed price per click rather than use a bidding system. Cost per [...]
JQuery Version abfragen
Manchmal muss man die Version von JQuery kennen, mit der das Script ausgeführt wird, um z.B. versionsspezifische Funktionen zu schreiben. Das kann z.B. der Fall sein, wenn man ein JQuery Plugin erstellt, dass in unterschiedlichen Umgebungen läuft.
jQuery autocomplete
Auto-completion of search terms is an AJAX feature popularized by Google that reduces typing by listing possible keywords as the user types. This article will show you the steps of building a auto suggestion box with PHP and jQuery (No autocomplete Plugin or any other components are needed). We’re going to check what a user [...]