Tag Archives: Array(

WordPress 3.0 and add_action

It seems as though, with WordPress 3.0, the add_action function (in some cases) has become a little more strict. Tag Grouping has a call to save_post that worked perfectly in WordPress 2.9 and up but broke completely once WordPress 3.0 … Continue reading

Posted in HTML, MS-SQL, MySQL, PHP, Tag Group Plug-in, Wordpress | Leave a comment

Adding AJAX to your WordPress plug-in

AJAX is a great way to add some ease of use functionality to your plugin by updating part of a page based on user input. I use it for updating a list of checkboxes in the example below when a … Continue reading

Posted in Wordpress | 2 Comments

Recursive Link Checker (or Web Crawler)

At a previous company where I worked in QA, there was a need to quickly identify problems with deployments and page changes. The department only had 2 people in it, myself and someone else so doing this quickly ate up alot of our time and also left unknown gaps that would be missed. Since we had SilkTest and Silk Performer, I developed a small script that would recursively loop through each link in our site. Ths script does this by looking at the raw HTML and finding all of the links present on the page. It loads up an array and starts at link 1 by clicking it. It finds all the links on that page and adds them to the array and so forth.

I simply provided it with a starting point and excluded some links (such as loging the user out) from the test and away it went. The script will log each link it visits along with the Page Title on a successful hit. It will also log any errors it encounters along with the link it attempting to visit. Very simple and this script still yields results for every release. Continue reading

Posted in Silk Performer | Leave a comment