Category Archives: Technical Aids

This section provides a place for issues I run across in various situations. It’s more of a misc are to house these solutions

WordPress: Adding a 2nd Menu Navigation (or 3rd) to Your Twenty Ten Theme Easily!

WordpressPlease note: This technique should also work across any theme (not tested on other themes, but the logic is pretty straight forward)

It was the other day that I was searching for “this” particular need on the Internet and came across several articles. While the articles were informative, each of them seemed to be missing basic steps and/or were listing code that produced errors on my site. So for the sake of simplicity and straight forward information, I am listing the procedure in very basic steps so that anyone can add a 2nd, 3rd, 4th……menu to your theme. This lesson does not take into account child themes, it is simply the way to modify your theme as is, right out of the box

(This tutorial assumes you have a basic understanding on how to edit and save your theme files) Really there is only 3 steps, though I’ve taken the time to explain everything to walk you thru it. Continue reading WordPress: Adding a 2nd Menu Navigation (or 3rd) to Your Twenty Ten Theme Easily!

WordPress: Protect your WordPress site from BAD BOTS

WordpressHow to block bots from seeing your website

After dealing with a recent issue of BAD bots hogging up my server resources, I began to look into solutions for keeping these nasty critters out. At one point my web site was even shut down BY my ISP because it reported close to 414K hits from bots that were hogging the resources (on a shared server, that is)

I did give the solution “Black Hole” a whirl, however after following instructions, my site wouldn’t come up due to errors.
So instead of trying to figure out why a recommendation that was actually quite old (2010) wasn’t working I went a different direction.
(Note: if “Black Hole” is still working, then “perishablepress” might want to update their notes to current rather than adding on a addendum that seemed to confuse. Continue reading WordPress: Protect your WordPress site from BAD BOTS

PHP Script to Delete Files on Server (from a folder)

PHP SCRIPT TO DELETE FILES ON SERVER?
(OR how to set up a script that ONLY deletes the contents of a folder and NOT the folder itself)

Objective: You need to create a PHP script and place it in your ROOT directory

Disclaimer: Read directions and MAKE SURE your path is correct or you could end up deleting stuff you didn’t want to
(in other words run a test after you’ve backed up your site)

———————————-
You need to create a PHP script and place it in your ROOT directory

1- to do this, create a text document and paste in the following code: Continue reading PHP Script to Delete Files on Server (from a folder)

WordPress: How to Add Descriptions to your TAGS (on your Tag Pages)

Wordpress– WordPress – getting TAG descriptions to show up at the top of the page
– TAG descriptions in WordPress – Adding to your TAG pages
– HTML descriptions on TAG pages

Did you know that you can have your TAG descriptions visible on your WordPress pages? So you want TAG “descriptions” to show at the top of the page as well? Maybe you want to delete that ugly default that says

Example:  “Tag Archives: Custom Font”

Why would you need this? Maybe you don’t want to have a category for everything in your blog. Maybe you have a special need to tag a few articles that have common categories but a specific tag (and you want that TAG to have a description showing that helps in SEO!!!) For instance, your articles might be categorized under “News”, but you want your tag page for tag “2012” to have “it’s own header description. Continue reading WordPress: How to Add Descriptions to your TAGS (on your Tag Pages)

WordPress: ‘exceeded max_questions’ Database Error Solution | Array

WordpressThis solution does work however, your ISP database managers don’t want you to know it!
(your welcome, by the way)

Why is that?
– They like to keep you at your limit (usually 75K Queries per hour, or worse 50K)
– They’ll charge you $ if you want to increase that to 150K (per month for that matter)
– This solution actually gives you the equivalent of 225K per hour (that is a shit load!)
and best of all, YOUR IN CONTROL

What is this exactly?
Good Question, it is a way to swap user logins when you exceed the 75K queries (automatically behind the scenes – set it and forget it), thus enabling your site to keep functioning rather than getting that nasty error codes (500, or ‘exceeded max_questions’ or database can not connect) when you’ve used too man database resources. It is called a 3 User Array (for inquiring minds)

How does it work?
Instead of the default of 1 login (in your config.php file), it can choose between 3 (or more if you’d like)

Will it get me in trouble?
Not sure, but so far so good!

What should I be aware of?
All 3 database logins must use the same password, or it won’t work

How do I start?
– Log into your SQL Database menu located usually in your account on your ISP
– Create 2 more logins using the same password first!
– write each down, the login names and the 1 password Continue reading WordPress: ‘exceeded max_questions’ Database Error Solution | Array