" Any "

Using Grunt with grunt-replace to replace handlebars/mustache with package.json variables

Recently while testing out some Node.js modules for Grunt I came across grunt-replace, and my first though was, this would be great for setting up boilerplate PHP files for my WordPress plugins.  Because I already set the name, slug, version, and other details in the  package.json file, it would be great to use a template I could create for PHP files and just use Grunt to take the details from   package.json  and setup my base plugin files using a template syntax like Handlebars or Mustache.  Luckily for me it worked out perfectly, but did require a little bit of troubleshooting and head scratching, but here’s how to make it work … (more…)

How to setup a WordPress PHP site with Nginx, PHP5-FPM, and MySQL using Ajenti V with working Permalinks

While beta testing Ajenti-V and attempting to setup a simple WordPress site, I ran into enough problems to warrant creating this tutorial.  Mainly because the way Ajenti-V sets up Nginx, there was a good hour of troubleshooting and testing that I had to do before getting a fully functioning site that had working permalinks.  Below I will describe exactly what needs to be done to get a full WordPress site up and running with Nginx, MySQL, PHP5, and Ajenti-V.


How to use dynamic tags in PHP with Caldera Engine (My Shortcodes) for WordPress

I recently found a plugin that has become one of my newest favorite (besides pods), that allows you to create your own shortcodes, widgets, posts, and more.  This plugin is called My Shortcodes for the free version, or Caldera Engine for the paid version (which you should get and support the dev).

So when you create a widget, you can create “attributes” that are field inputs (text box, dropdown, etc) that show up when you use the widget…well what happens when you need to use that attribute inside some of your PHP code (it also has a template engine built in)…unfortunately because of how new Caldera is there isn’t much documentation online, but there’s actually a very easy way to access these attributes and use them in your PHP code. (more…)

Allow customers/clients to use promo codes instead of affiliate links in WHMCS

If you’ve ever joined an affiliate program with an online retailer, or some type of company, you already know the most common way used by these sites to track the people you refer to them is normally with some ugly URL link that specifically tells the person it’s an affiliate link (http://somedomain.com/affiliate.php?affid=2838).  Well what happens if you send a person to their site, and then they come back a week later but don’t use your link?  What if they just don’t even sign up because they think the only reason you’re sending them to that site is because you’re an affiliate?  Well, if you have WHMCS, you’re in luck. (more…)