" Open Source "

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…)

How to obtain root, install and run XBMC on D-Link Boxee Box

If you happened to be one of the ones (like me) who jumped on board with purchasing the first generation Boxee Box manufactured by D-Link, you probably ended up being just as disapointed as I was.  I originally purchased the Boxee Box because I was using, and liked, the Boxee fork of XBMC…unfortunately the support from Boxee was horrible, and they basically in my opinion didn’t care about their customers.  What few updates were released had problems they refused to fix, and eventually they ended up just dropping all support for the Boxee Box to focus on their newer release with the Boxee Cloud as those customers are now left high and dry after Samsung purchased Boxee Box and basically gave the middle finger to existing customers.  Not to mention the fact that Boxee and D-Link violated the GPL and would not provide root access to the device even though they were using Open Source code from XBMC.  Well luckily someone found an exploit and was able to gain root, which has now enabled us to be able to root the Boxee Box, and install XBMC. (more…)

Generate an inode report (file count) for Debian, CentOS, cPanel, RHEL, with INODES shell/bash script

If you have every used shared hosting, or are involved with the hosting business in any way, you should already know what an inode is. Each time a file is created, uploaded, and so on, an inode is created. This inode stores information like ownership, permissions, etc … basically all the metadata about the file. What is the purpose of limiting the amount of files/inodes? Because each shared host will have many customers on the same server, customers that have excessive amounts of inodes (anywhere from 100,000 to 500,000 and up), can cause a heavy load on the server during backups, general operation, and can be taxing on hard drives. Most of the time excessive amounts of inodes is due to cache scripts installed by the user, catchall email accounts, and normally the customer/user doesn’t even know they exist. Well fear no more, I have created a shell/bash script that will help generate reports, and soon notify you about inode usage… (more…)