PHP and WordPress Encryption and Decryption Tutorial
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- by Seth Carstens
- posted at 3:55 pm
- April 26, 2013
- 0Leave a comment
Downloading a PHP file using fopen (anywhere on the server)
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- by Seth Carstens
- posted at 12:10 pm
- March 3, 2013
- 0Leave a comment
Removing double line breaks from WordPress files
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- by Seth Carstens
- posted at 9:15 pm
- May 10, 2012
- 0Leave a comment
ClassiPress Hidden Map Tab and Redraw Google Map Canvas
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- by Seth Carstens
- posted at 12:32 pm
- May 7, 2012
- 2Leave a comment
ClassiPress or any CCT’s with Sticky on Top
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- by Seth Carstens
- posted at 8:49 pm
- April 15, 2012
- 5Leave a comment
WordPress Page Template Detection Script
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.
|
1 2 3 4 5 |
add_action('wp_head', 'show_template'); function show_template() { global $template; print_r($template); }<a href="http://sethmatics.com/wp-content/uploads/page-template-detection-promo-1.png"><img class="alignleft size-medium wp-image-1653" title="page-template-detection-promo-1" src="http://sethmatics.com/wp-content/uploads/page-template-detection-promo-1-625x198.png" alt="" width="625" height="198" /></a> |
- by Seth Carstens
- posted at 2:59 pm
- March 5, 2012
- 0Leave a comment
