Author: Timothy Russell

Post Edit Show Most Used Tags Tab

When editing a post, did you ever want to view the most used Tags tab and not the Tags listing tab. Well here’s the trick. Add this to your themes function.php file.     Most used tags add_action( 'admin_footer-post-new.php', 'rone_mostused_tags_default_script' ); add_action( 'admin_footer-post.php', 'rone_mostused_tags_default_script' ); function rone_mostused_tags_default_script() { $expand_for = array( 'post_tag' ); // add taxonomy names here // build a nice jQuery query foreach ( $expand_for as &$tax_name ) $tax_name = '#link-'.$tax_name; $expand_for = implode( ',', $expand_for ); ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('<?php echo $expand_for; ?>').click(); }) </script> <?php } 1234567891011121314151617181920 add_action( 'admin_footer-post-new.php', 'rone_mostused_tags_default_script' );add_action( 'admin_footer-post.php', 'rone_mostused_tags_default_script'...

Read More

Digital Noise: Revisited

Over a year ago I got on my soapbox about the digital noise I had created for myself. As I approach mid 2017 I have significantly have reduced the amount of the digital noise in my life. Work related digital noise will always be there and worth the time spent. It’s not been easy (it’s just who I am), but worth the wild ride.  Once I got down to actually ‘consolidating, pairing-down and reducing my digital noise’ the realization of how far I let the get out hand was absurd!   By stop running my own hosting services was...

Read More

Whats My IP From Command Line

Lots of times you need to determine your public IP address, if you are using Linux operating system to power your PC, you may use some good console commands to guess your public IP address. Most of these methods will return you the local IP and not the public IP of your proxy if you are behind one. dig dig +short 1 dig +short Will return public IP. wget wget -q -O -|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' 1 wget -q -O -|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' That...

Read More

Rotate logfiles for MAMP Pro

Rotating  logfiles for MAMP Pro is pretty simple. Under the “Extended” tab for the Hosts setup add this to “Additional parameters for <VirtualHost>”.   Shell CustomLog "|/Applications/MAMP/bin/apache2/bin/rotatelogs /Users/Shared/example_com_www/logs/example_com_www_access_%Y-%m-%d.log 86400" combined ErrorLog "|/Applications/MAMP/bin/apache2/bin/rotatelogs /Users/Shared/example_com_www/logs/example_com_www_errors_%Y-%m-%d.log 86400" 123 CustomLog "|/Applications/MAMP/bin/apache2/bin/rotatelogs /Users/Shared/example_com_www/logs/example_com_www_access_%Y-%m-%d.log 86400" combined ErrorLog "|/Applications/MAMP/bin/apache2/bin/rotatelogs /Users/Shared/example_com_www/logs/example_com_www_errors_%Y-%m-%d.log 86400" Don’t forget to edit the path…...

Read More

Smart Collection – What images are not in collection

The solution that you seek lies in creating a Smart Collection. The search filter on the Smart Collection should read {Collection}{does not contain}{a e i o u} This assumes that any collection name will need to contain at least one vowel (note that there is a space between each letter). The images in Smart Collections are treated differently from Static Collections and I believe Smart Collections are ignored in this search. It would be nice if you could say something as simple as ‘not in a collection’,...

Read More

How to install SmartGit on Ubuntu 14.04

How to install SmartGit on Ubuntu-14.04 Open terminal and use following commands. Add Repo: Shell sudo add-apt-repository ppa:eugenesan/ppa 1 sudo add-apt-repository ppa:eugenesan/ppa Then we want to update the Repos: Shell sudo apt-get update 1 sudo apt-get update Now lets install SmartGit: Shell sudo apt-get install smartgithg 1 sudo apt-get install smartgithg Now click on the find software and search for SmartGit.  Click the SmartGit icon and then go through the SmartGit setup.    ...

Read More

Check User Account Status

You need to use the chage command. It can display password expiry information as well as changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his/her password. # chage -l bob Last password change : Apr 14, 2014 Password expires : never Password inactive : never Account expires : never Minimum number of days between password change : 0 Maximum number of days between password change : 99999 Number of days of warning before password expires : 7...

Read More

Create WordPress User

Add new Admin user to WordPress. USE AT YOUR OWN RISK! 1. Put this file in your WordPress root directory and run it from your browser. 2. Delete it when your done. DO NOT forget this step. Thanks to: PHP <?php // ADD NEW ADMIN USER TO WORDPRESS // ---------------------------------- // Put this file in your Wordpress root directory and run it from your browser. // Delete it when you're done. require_once('wp-blog-header.php'); require_once('wp-includes/registration.php'); // ---------------------------------------------------- // CONFIG VARIABLES // Make sure that you set these before running the file. $newusername = 'YOURUSERNAME'; $newpassword = 'YOURPASSWORD'; $newemail = ''; //...

Read More

How to Put Your WordPress Website in Maintenance Mode

If you use WordPress as a publishing tool and platform, I am sure you know that you occasionally can or need to put your WordPress site into maintenance mode. Perhaps you are re-building your website, changing the theme, or test new functionalities or other maintenance of your website. Then it’s great to be able to quickly put your website into maintenance mode and let your visitors and readers know what is going on on your website. There are different ways to use the Maintenance Mode. There are a lot of plugins, both free and premium which includes features that can...

Read More
  • 1
  • 2