Archive for January, 2008

Have button (input element) go to new page with onclick

Friday, January 25th, 2008

This is probably considered “Javascript 101″ - but I still had a bit of trouble finding just the right syntax to work. Simply needed a button to open a new page (in the same browser window):

<input type="button" value="THERE REALLY ARE OTHER SEARCH ENGINES!"
onclick="location.href='http://www.yahoo.com'; return false" />

HostICan (also known as HostISuck, HostICant, and a plethora of other nicknames)…

Friday, January 18th, 2008

UPDATE: If you’re reading this then you’re reading me from the new host. Crossing fingers this works out better. (I could cleary see there was something wrong with HostIcan just in trying to do the move. For starters it took my site down just taking a backup of my site. As well it would not let me pull down a full backup of my database, and just reviewing the database to double check which lines it had decided to skip when trying to run the download, took the site down (meanwhile the new host had no problems with that). I have noticed a few “timeouts” - hopefully that’s something that will work itself out. /sigh

———————

I am SO SORRY. To anyone who followed my advice and signed up with HostICan - I’m sorry. I’m SO SORRY. A million times over. As well, I am SO SORRY that I am hosted with them. If nothing else it was a huge learning experience on what to check on with a host provider.

When I first switched to them I thought they were great. I loved them. Well… the honeymoon is DEFINITELY over!!

You may have noticed that sometimes when you come to my site a “warning” of sorts is up that says I’m using too much “CPU/Memory” on their servers. NEVER. NOT ONCE on any host did I over use too much CPU/Memory - certainly not on a regular day to day basis. And anytime I might have had a script that I was running, the host helped me pinpoint which script was causing the problem. (I’m haven’t put anything new like that on my sites for a long time). (This didn’t even happen the time that my site got slashdotted.)

Despite saying this on their website:

SERVICE GUARANTEE:
We guarantee that we’ll provide quality service:

* 99.9% Uptime Guarantee
* 24/7/365 Phone & Email Support
* Your satisfaction or your money back. (emphasis mine)

(Which, by the way, is NOT under the heading “30-day money back guarantee”) they still say they will not give me a refund / pro-rated or otherwise. (I paid for two-years up front when I signed up with them - and did so thinking that I would be able to get a refund (LIKE THEIR SITE SAYS) should things not work out.) So now I’ll be calling my credit card company to dispute the charge - and hopefully switch to a new host as soon as possible.

Ugh.

This by the way is the letter I’m sending my credit card company:
(more…)

Using Wordpress (with some modifications) as a CMS

Thursday, January 17th, 2008

For a long time one of the things I’ve liked about Wordpress is it’s flexibility. I recently did a project for Savvydog Design for one of their clients: the National WASP WWII Museum - that involved doing some customizations to Wordpress. They wanted most of the pages on the site to be editable (I used Wordpress’ pages functionality here), they also wanted to be able to enter in news items (these would be standard blog posts with a category of “news”), as well as be able to enter in events (these would also be standard blog posts with a category of “events”). They wanted the home page of the site to show some (editable) content at the top, and then list the last 3 news or event items. On the side bar, they wanted to be able to list the next 3 upcoming events. Here is how I put it all together:

*Please note - some of the customizations take a few things as assumptions - (for example how you have your permalinks set up, etc.) So if you use any of this, do so at your own risk (most especially the part about editing a core Wordpress file - I’m sure I’ll get heat for that from SOMEONE.) Your mileage may vary, and I don’t guarantee this will work with your setup, yadda yadda yadda…
(more…)

Some CubeCart 4 minor mods (including select box image changer)

Saturday, January 5th, 2008

I’ve now used CubeCart 4 for a number of clients recently, and I have to say I’m pretty impressed. As with any cart - the features still have to match your needs, but for the most part, the clients I’ve implemented this for were able to get the features they had wanted. Then add in a few mods, and we’re in even better shape. I also want to mention that CubeCart 4’s support has been fantastic! Great customer service, helpful responses, with reasonable response time. They’re in a different time zone than me, but normal requests would be answered within a day - when I had a critical issue it was responded to within a few hours that same day. And as before, customizing their template has been pretty painless. I’ve been really happy with them and they’ve moved up to the top of my recommended list for cart software.

So to get things working just so with a few of my recent implementations, here are a some tricks I did: (Some of these little hacks were actually given to me by CubeCart’s support, although they do specifically say they don’t support changes to core application files.)
(more…)