South Tampa Magazine. I used the CakePHP framework to write the back end of this site. Admin panel allows for editing of content pages, listings, categories, editorials, and editorial campaigns. Design by Fourthdoor Creative
Read More »
If you're using Safari (which I am -- I just can't stand that Firefox widgets look like they live in Windows 95 land), you have to get Safari Adblock. Ads suck. Don't put up with them. Sorry Windows users (aka "suckers"), this appears to be for OS X Safari only, right now.
I've been doing some work for Fourthdoor Creative and tonight I put together some slideshows for a website using SlideshowPro and some nifty php/htaccess coding. The project called for 23 slideshows, each consisting of three to ten pictures. So, since I'm lazy and didn't feel like writing 23 xml files for SSP, I wrote a little php script to parse through the directories and hand out xml files on the fly. Thru htaccess/mod_rewrite "RewriteRules", I redirect requests for the xml files to a script which returns xml for SSP and displays...
Read More »
I've dealt with this problem before and completely forgot about it until a couple days ago... When it came up again :-)
The problem has to do with secure and un-secure elements on a page. If you create an iframe without a "src" attribute, and you are on a secure site, Internet Explorer will throw a security error. Obviously, this is not what we want to see; especially when the client is a huge insurance company. The solution, clearly, is to simply provide a "src" attribute"..
<iframe id="select_box_hider" ></iframe>
Why would you create an iframe without an src? Good question. The reason is to hide <select> elements in IE6 when a floating <div> is over them. The user will never even see the iframe, so I figured I could skip the "src" part. You need the iframe because IE6 behavior is that a <select> is always on top of everything, regardless of assigned z-index...
Read More »
I'm out of my sister's house. Got a roommate. Still at the new job - not so "new" anymore. Haven't posted in a while. I've been lazy. I'm going to try and shift the focus of the blog (this site) away from me and more to tech stuff. So let's do that...
I added an extra little feature to the comments a couple nights ago to combat bot spam. There's a new field on the 'Add Comment' form that should be ignored. The tip even says to leave it blank. Somewhat confusing, I know but hopefully it will help prevent the bot posts. There's another new security measure, but I'll keep that a secret ;)
Next is a fun JavaScript problem(?) I ran into today that has to do with variable scope and for loops. Basically, the browser is getting confused between two separate for loops in two separate functions that use the same iterator variable....
Read More »
I thought of this last night when I was trying to fall asleep. I saw an article about something similiar to this recently but I'm not sure if it was dynamic. This is what's going on...
The linked page is a simple proof-of-concept. I was thinking of writing some sort of project management and I thought it'd be nice to have an option to open links in tabs. I know, Firefox has tabs (and I use them religiously) but when I have four tabs open just trying to navigate through a project, along with the 5 other tabs for my shoutcast station, digg, the site I'm working on, etc., it's a bit cumbersome to find my way around. About an hour later, I had this.
The script uses an unordered list for the tabs and div's to contain content. Both have a little CSS to make them do what I want'm to. Next phase: closing tabs.
View Demo (right click and 'Save As...' to download)
Read More »
Lots of stuff...
Week started off learning about a CSS/display bug in Netscape 8. The site I was working on was a fixed width and height centered in the viewport with a scrollable div that contains the primary content. I had to add a "overflow: hidden;" to the BODY tag to prevent IE 5.2 Mac from displaying unneeded scrollbars on the site. Doing that caused random rendering issues within the scrolling div. More often than not, anything inside a P tag would cut off about a half inch below where the P starts. Once in a while, the page would render correctly, but I'd say 90% of the time it was wrong. The content was there, it seemed to be hidden behind something though. If I could select something on the page and drag down, whatever was in the P would scroll! Most peculiar. Removing the "overflow: hidden;" fixed the problem. If anyone else has this problem, I hope this was useful :)
Pandora is back up with 100k...
Read More »