CrankBerry Blog Title

Scripts and Programming Postings

2010


No Comments

Awesome image cropper/thumbnail maker script – Modified Marquee Tool

Categories :: Javascript, PHP

As I'm recoding my portfolio right now, I thought to myself – how great would it be to have a thumbnail maker tool. Some PHP or Javascript solution to crop images dynamically without the use of Photoshop. I would hate to fire up Photoshop every time I want to upload something. I'm sure you've all been there before. Anyways I landed upon a script that suited my need exactly. The Rectangle Marquee Tool. The tool looks great but was a bit confusing for me to get working and based on the comment for a few others too. Now I've also done some slight PHP modification to get the script working to my needs and generating the correct thumbnails.

See what I'm mumbling on about right here:
Demonstration of Marquee Tool

2010


No Comments

PHP password strength detector script

Categories :: PHP

If you operate a user registration script on your website you may want to ensure users are protected. There are certain aspects of this you cannot control such as the user's self selected password. Here I have a script that will detect the user's password strength and base on that you could reject the password or just make notice to the user their password's strength.

PHP Password Strength Detector Script

2009


No Comments

Cross Browser Friendly Div Tabs Script

Categories :: Javascript

For some reason modern designers and developers love to use tabs. Maybe they keep things organize and clean all in one page. Here's a incredibly simple cross browser compatible Javasript tabs script. The final result will look like the one below.

2009


(29) Comments

Secure PHP login without database

Categories :: PHP, Web Security

Although not recommended but maybe for some reason you need to create a PHP login without the use of any database (SQL). For some reason you maybe scared to approach, but here I made a script that is fairly secure without utilizing any database at all. It allows users to login and stay logged in. If you are one of those people then here's the script for you.

2009


No Comments

In page popup with faded background – in PHP

Categories :: CSS, HTML, PHP

Sometimes you may be required to have popup windows on your website. They're obtrusive and hard to style with your site, in summary – nasty. What I've seen is other websites fade out their background and have an in page popup. I came up with a script that does the same thing in PHP and it looks exactly like the image below. Jump to the next page for the script.

2009


No Comments

PHP Simple Email Validation

Categories :: PHP, Scripts and Programming

When having having forms on your website one of the most common form fields is usually the user's email. To ensure you're receiving quality information and not receiving bogus spams you should validate the email to be of a real one or close enough to. Here's a quick free email validation script for those PHP lovers.

2009


(1) Comment

CSS rounded corners with borders

Categories :: CSS, Tools

An upgrade has been made to my CSS rounded corners generator, now not only does it use no images, cross browser compliant but now with additional borders option. Add that all up and you have a cross browser, no image, bordered CSS rounded corners generator. Of course that name is too long so we'll just stick with the old one.

CSS rounded corners with border

2009


No Comments

PHP Image Verification aka Captcha (Basic)

Categories :: PHP, Scripts and Programming

You're making your website and you have forms. Here you are thinking, what if spam bots found my form? What if somebody submitted to my form from their own script? What should I do? Well, there's many things you can do to mitigate your worries but one of the simpler things you could do is having an image verification field in your form. Here's a basic script to generate a random code in image that bots can't read.

image verification

2009


(1) Comment

Inspirational minimalist web sites/web designs

Categories :: CSS, Inspiration

Here are some inspirational sites for those time when you just need a starter kick to your artistic senses.

2009


(2) Comments

Setting PHP cron job with crontab

Categories :: PHP, Web Hosting

So you've created a PHP script that does something like clean your tables or compiles a report on some data. You want it to run it every 2 hours but you don't want to go to your computer every 2 hours. What should you do? Cron job using crontab is what you should do. Cron job is basically setting a timer on your server to run the script at a certain time that you please. Sounds easy enough, but how do you do it? Lets find out!

You are currently browsing the archives for the Scripts and Programming category.

Categories


Archives

Recent Blogs