kieranbarnes Independent PHP, WordPress & CubeCart Programmer

Not your usual WordPress IO Error

Posted on March 3, 2011

Today I noticed I was getting the dreaded WordPress IO Error when uploading media. I've fixed this before, for me and other clients but this wasn't the usual error.

Not  file permissions, not an anally retentive PHP install, not user error. Besides, media uploads worked via the HTTP uploader, just not the Flash uploader.

How Do I Change The Way Public Numbers Are Displayed In Interface?

Posted on February 28, 2011

When using the 4PSA VoIPNow interface there was nothing more annoying and confusing that it displaying phone numbers in a funky American format that none of us could read without squinting.

Its also confusing for customers who are viewing their reports online.

Multiple loops or making your own loop in WP-Ecommerce

Posted on February 28, 2011

A client of mine needed a feature that could only be solved with a second WP-Ecommerce loop and another feature that required looping WP-Ecommerce out of it's comfort zone (index.php)

You could use this code for custom loops, for example newest products, top selling products, newest products in a category.

Tagged as: Continue reading

Using WP-Ecommerce Product Downloads without checking out

Posted on February 23, 2011

I've used WP-Ecommerce for a few clients who required an online catalogue, rather than an online store.

One client required a  custom product display and wanted to print out the product downloads in the single_product.php file. Apparently its not possible as we're using Product Downloads for something other than what it was designed for.

It was originally designed for electronic products, you add to basket, pay and you can download the product downloads.

Truncate a string to the nearest word

Posted on February 18, 2011

Truncating a string in PHP is easy, substr($start,$finish), but its annoying when it truncates the string mid-word isn't it? Here's how I overcame the issue to truncate the string to the nearest word.

This is a modified function found on the PHP site.

Tagged as: Continue reading

Yealink T22/T24/T28 Logo Customisation

Posted on February 11, 2011
IMG00011-20110210-2229

There is a little known feature in the latest firmware release for Yealink T22/T24/T28 phones. Sure you can do this already with Cisco phones, ask your local brain surgeon.

Yealink have made it super simple to change the logo displayed on their T22/T24/T28 handsets, well almost.

STUN Session Traversal Utilities for NAT

Posted on February 1, 2011

STUN might well save your VoIP ass. We've been experiencing more and more issues with our VoIP solution with regards to one-way audio. We were convinced it was  NAT issue, in that cheap, crappy twenty pound routers couldn't do NAT traversal correctly. Installing an over-powered pfSense box didn't solve the problem.

Tagged as: , , , Continue reading

Disk Considerations for a SolusVM Installation on CentOS

Posted on December 7, 2010

The Xen® hypervisor, the powerful open source industry standard for virtualization, offers a powerful, efficient, and secure feature set for virtualization of x86, x86_64, IA64, ARM, and other CPU architectures. It supports a wide range of guest operating systems including Windows®, Linux®, Solaris®, and various versions of the BSD operating systems.

Solus Virtual Manager (SolusVM) is a powerful GUI based VPS management system with full  Xen Paravirtualization and Xen HVM support.  SolusVM allows you and your clients to manage a VPS cluster with security & ease. It can be a little rtricky to install for the first timer.

Cleaning up WordPress Header

Posted on November 29, 2010

WordPress implements some HTML standards compliant code in the top of every page. Sometimes you just don't need it. I'm all for keeping page size as small as possible and ultimately quick at loading.

Lets look at the remove_action function from WordPress.

tcptrack

Posted on November 23, 2010

tcptrack is a sniffer which displays information about TCP connections it sees on a network interface. It passively watches for connections on the network interface, keeps track of their state and displays a list of connections in a manner similar to the unix 'top' command. It displays source and destination addresses and ports, connection state, idle time and superbly impressive - bandwidth usage.

A server admin must have.

Tagged as: Continue reading
Page 10 of 34« First...89101112...2030...Last »