Archive for code

PHP and WordPress Encryption and Decryption Tutorial

sethmatics-learn-php-encryption-banner

This is the example I built while learning how to properly protect password before they are stored in the database. I’ve seen dozens of plugins simply take in API paramters like “username and password” and just store those values in the database for use. How horrible is that! We decided to do the right thing and learn about encryption security…

read more

Downloading a PHP file using fopen (anywhere on the server)

capture-php-code-with-butterfly-net

While migrating a website today, we ran into some issues. This issue was caused by the previous developers trying to “hide code” from the end users so that they could not move the website away from the marketing agency (very shady). Below is the PHP code we used to download a working copy of the “hidden” file. As you can…

read more

Removing double line breaks from WordPress files

fix-double-line-breaks-tutorial-2

Have you uploaded a theme or plugin, and then attempted to edit the files to find out there are “double line breaks” every place there should be single line breaks? It makes the files look REALLY messy huh? We have been battling this for years. Finally we decided to look closer and find a solution. The solution is actually VERY…

read more

ClassiPress Hidden Map Tab and Redraw Google Map Canvas

google-map-canvas-refresh

We have been running into this issue for a bunch of website that have no desire to show the Google map first in the sidebar. In fact, a better portion of the community wants the ad details in the sidebar! Sometimes developing websites is funny. You can spend hours of time in research and testing to come up with only…

read more

ClassiPress or any CCT’s with Sticky on Top

classipress-feautred-posts-on-top-example

We made an attempt to build a new function for ClassiPress over the last couple of weeks. This is the first time we have had to stop and say “its impossible to do this way”. Disappointing I know, but the real issue is simply they way WordPress stores the “sticky posts” into an array in the wp_options table. Instead of…

read more

WordPress Page Template Detection Script

page-template-detection-promo-1

Ever got stuck wondering which page wordpress is actually loading? Wonder no more! Simply add this text to your functions file, save, upload and refresh. Viola, it will print the page template WordPress is trying to load so you know exactly which file to modify and bend to your every whim.

read more

previous posts
//don't enter GA code in footer anymore