Tag Archives: PHP
09
Mar

Geeking Out With Netbeans and PHPDoc

I’ve been playing with phpDoc and NetBeans a lot lately.  I’ve found that having well documented code using the phpDocumentor 2 format makes for a much more efficient coding environment.   For one thing, if you have NetBeans setup properly and are using PHP classes that are fully documented, writing a line of code is as [...]

Continue Reading →
20
Feb

Netbeans, phpDoc, and WordPress

A posting from our private “Tech List”, a list I share with select tech geeks mostly from the days at Cyber Sprocket Labs.   We tend to share high end tech tips that only geeks would find interesting.    I am posting here for easy reference for “The Tech List” groupies. My Intro To Netbeans [...]

Continue Reading →
27
Jan

PHP Pretty Print XML

I have been working on MoneyPress : Amazon Edition to get it updated for the latest API release and bring it into the Charleston Software Associates stable of products.  Along the way I found myself needing to debug the XML being returned from the Amazon Product API.   Here is a quick trick for doing that. [...]

Continue Reading →
11
Sep

Passing PHP Variables to JavaScript

One of the things we do fairly frequently in our WordPress plugins is pass PHP variables to JavaScript.   We use this methodology to send a number of dynamic elements to the JavaScript processor without having to do AJAX or JSONP calls after the script has loaded.  Pre-processing and passing variables into JavaScript when the [...]

Continue Reading →
10
Jun

WordPress Activation Hook

We recently discovered an issue in our commercial plugins related to a change in the WordPress API. It turns out that since WordPress 3.1 was released the register_activation_hook() function is no longer called during a plugin upgrade! This is a significant change in behavior from previous versions that called the WordPress activation hook on every [...]

Continue Reading →
03
May

Hailey Logan and Hailey

The Hailey Logan and Hailey project was brought to us by our creative design partner, Massive Creative Inc.   The original website was a pure flash site.   With the ever-expanding presence of Apple iPad tablets, it became readily apparent that Flash was no longer going to work for Hailey Logan and Hailey.   Hailey Logan [...]

Continue Reading →
23
Apr

Passing Variables To JavaScript In WordPress

We have touched on several complex subjects when it comes to writing plugins for WordPress that make use of JavaScript. In these articles we discuss built-in scripts, custom static scripts, and dynamic scripts. Dynamic scripts are the scripts that need access to information from the WordPress application environment in order to function properly, such as [...]

Continue Reading →
05
Apr

WordPress and JavaScript Part 2

This is our second article in a series about working efficiently with JavaScript in WordPress. There are a lot of sites and lots of examples on how to implement JavaScript in WordPress. Many of the articles we came across were incorrect or outdated. What was once the viable, or possibly the only available, method for implementing JavaScript hooks [...]

Continue Reading →
05
Apr

WordPress and JavaScript Part 1

Introduction For those that were not present, we had a discussion that was about wpCSL and using JavaScript in a WordPress plugin. The part of the discussion that would be of interest to the general public revolved around the use of wp_register_script and wp_enqueue_script and the best practices for implementing scripts. WordPress Plugin Tips & Tricks Mar [...]

Continue Reading →
23
Dec

PHP + PostgreSQL App Performance Example

One of our projects this week was to improve the performance in a payment processing system for a client. The system performed well under limited data sets, but as the data set grew larger the performance response time increased exponentially. In reviewing the application we found several design flaws that were significantly impacting performance. This [...]

Continue Reading →
24
May

Custom Field Pulldown Values, WooThemes Part 2.

This is a follow-on to the article related to custom fields in the WooThemes Listing theme. The second problem we had was that custom fields setup as a drop down were showing the selected index ordinal versus the text value of the selection. Here is how we got to the option value set in the admin panel. [...]

Continue Reading →
24
May

Custom Field Labels In Modified WooThemes Templates

We have recently been playing with WooThemes, in particular their Listing theme. It is a great starting point but, as usual, we want more from it. So we’ve started hacking together our own child theme based on the Listing Theme to drive our upcoming Premium WordPress Plugins website. During this process we learned that some things are easy [...]

Continue Reading →
02
May

Aidan Mattox

The Aidan Mattox project was brought to us by our creative design partner, Massive Creative Inc.   The original website was a pure flash site.   With the ever-expanding presence of Apple iPad tablets, it became readily apparent that Flash was no longer going to work for Aidan Mattox.   Aidan Mattox serves a sophisticated clientelle [...]

Continue Reading →
06
Apr

Adrianna Papell

The Adrianna Papell project was brought to us by our creative design partner, Massive Creative Inc.   The original website was a pure flash site.   With the ever-expanding presence of Apple iPad tablets, it became readily apparent that Flash was no longer going to work for Adrianna Papell.   Adrianna Papell serves a sophisticated [...]

Continue Reading →
21
Jan

Language string failed to load: tls

We recently ran into this error while trying to get a mail service working from within PHP.   Our email service provider requires TLS security to validate our account before we are allowed to send mail through their system.  This is a good practice as it keeps rogue email traffic from flooding the outbound network [...]

Continue Reading →