In PHP the ternary operator can really help clean up your code, especially for short conditional assignments. The ternary operator can help improve the readability of your code as well. Someone recently enlightened me and showed me the Elvis operator and it’s usage for simple assignments. more…
Reset Password for Users in Drupal Using Drush
A lost password can be a real headache, especially if it’s the admin account for an installation. It is possible to login without credentials or reset a password for any user from the command line using drush. more…
Change the Git Remote Repository URL
I recently moved one of my Git repositories to a new location and needed to change the URL of my local checkout. There are a few ways to go about this, the easy way and the hard way. more…
Scroll Back to Top WordPress Plugin
Scroll Back to Top is a WordPress plugin to add a button that appears only when users scroll down the page allowing them to scroll to the top of the page. The plugin comes pre-configured and is fully functional on activation. The plugin offers a number of webmaster-friendly features to completely customize the look, position, and animation. more…
Scroll Back to Top WordPress Plugin Button Designs
The WordPress Scroll Back to Top plugin is extremely flexible and can accommodate nearly any design to match an existing website. By adjusting a few simple configuration options you can easily adapt the plugin to your site in minutes. To give you some inspiration for different scroll to top button ideas and to illustrate how simple it is to change the design I have a few screenshots of the button in action along with the settings needed to execute the design. more…
Managing WordPress Roles and Capabilities
The WordPress permissions system is pretty straight forward, each task a user performs on a WordPress installation requires the capability to perform that task. These capabilities are how a WordPress installation can allow authors to write articles but not edit plugins, or allow editors to manipulate content but not change a theme. more…
Adding a Scroll to Top Button to a Website
Adding a scroll to top button to your website can be a great way to allow your users to navigate, especially if you have long-scrolling pages. A scroll button should be subtle and it has become expected to see one on the lower right of the page. more…
Configure PHPStorm and Xdebug to Use Advanced Debugging Features and Techniques
Using a PHP debugger such as Xdebug along with an IDE such as PHPStorm can simplify troubleshooting complex problems. Xdebug offers a helpful stacktrace and can integrate with an IDE allowing you to set up breakpoints and evaluate the application state within the IDE. more…
Scrabble Word Finder Review
As an avid Scrabble® and Words with Friends® I often try to make unique and challenging words. There are many helpful resources to study up on words that can be made using challenging sets of letters. Some of these sites are used for cheating, but often they are a great tool to simply learn new words that you may not know exist. My favorite site for finding new Scrabble words is a lexical Scrabble word finder tool that I wrote called Word Finder Cheat. more…
Exclude Custom Post Type From Search in WordPress
I ran into an issue the other day where I had custom post types showing up in WordPress search results. If you are manually registering your post types simply add the ‘exclude_from_search’ argument before registering. more…