PHP Smilies System

tirs, feb 16, 2010

Kommentarer slået fra

In this tutorial we’ll be creating a system which will convert messages including text smilies into messages including icon smilies ( text => smilie icons ).

Preknowledge

For this tutorial it’s prefered that you’ve got some preknowledge about php variables, arrays, functions and the foreach loop. If not, I’d recommend you to have a look at the following tutorials which apply well to this tutorial:

  • PHP Variables
  • PHP Arrays
  • Foreach Loop

Functions & Loops used

The functions/loops used in this tutorial:

  • str_replace(‘part to replace’, ‘value to replace by’, $str)
  • foreach($array as $key => $value)
Tags: , , , , , , , , , ,

Create An Apple Ipad

tirs, feb 16, 2010

Kommentarer slået fra


Good evening everybody, in today’s tutorial il be showing you how to create an “Apple Ipad” from scratch using only photoshop. Lets get going.

The Finished Ipad

This is what the finished result will or should look like once finished.

Apple Ipad Tutorial

Lets Get Started – Ipad Frame

Create a new document with a canvas size of “850 pixels X 850 pixels”, Fill your background with any color. Once you’ve created your canvas select the “Rounded Rectangle Tool” with a radius of “20 pixels”.

Apple Ipad Tutorial

Tags: , , , , , , , , , , , , , , , ,

Portfolio layout created with jeans texture

tirs, feb 16, 2010

Kommentarer slået fra



For start you will need to download the following texture. Click on the image, and then right click on it to save it in your computer.

With this jeans texture I will create a nice backgroudn for this layout.
Open the image in Photoshop, and then go to Edit > Define pattern…
You can choose a random name for this pattern, and after than you need to click on Ok.
Grab Paint Bucket Tool, and make sure you select the pattern you just created.

Tags: , , , , , , , , , ,

Quick Tip: How to Extend Built-in Objects in JavaScript

tirs, feb 16, 2010

Kommentarer slået fra

Constructor functions, like Array, offer a wide range of methods and properties that you can make use of. But have ever wished that one of these objects offered some method that isn’t built-in? Is there a way to do so yourself? Absolutely! Let’s see how.

Reversing a String

This little snippet takes advantage of the Array object’s “reverse” method, and applies its functionality to a given string. In effect, something like “hello” will be turned into “olleh,” and can be accessed by using “myString.reverse()”.

Tags: , , , , , ,

Quick Tip: How to Work with @Font-face

tirs, feb 16, 2010

Kommentarer slået fra

Final CSS

@font-face {
font-family: 'blok-regular';
src: url('type/Blokletters-Potlood.eot');
src: local('Blokletters Potlood Potlood'),
 local('Blokletters-Potlood'),
 url('type/Blokletters-Potlood.ttf') format('truetype');
}

@font-face {
font-family: 'blok-italic';
src: url('type/Blokletters-Balpen.eot');
src: local('Blokletters Balpen Balpen'),
 local('Blokletters-Balpen'),
 url('type/Blokletters-Balpen.ttf') format('truetype');
}

@font-face {
font-family: 'blok-heavy';
src: url('type/Blokletters-Viltstift.eot');
src: local('Blokletters Viltstift Viltstift'),
 local('Blokletters-Viltstift'),
 url('type/Blokletters-Viltstift.ttf') format('truetype');
}

h1 { font-family: blok-heavy, helvetica, arial; }

Notice how we’re referencing both an .eot and .ttf font? This is because, of course, Internet Explorer only uses its own format, that has yet to truly catch on. As such, we must first import that .eot file, and then move on to the different formats for Firefox, Safari, etc. It’s essential that you load the .eot version first.

Tags: , , , , , , , , , , , ,

Quick Tip: Different Layouts for Different Widths

tirs, feb 16, 2010

Kommentarer slået fra

It’s becoming more and more common for web sites and applications to provide different layouts dependent upon the user’s window size, or resolution. This can be accomplished in a variety of ways, ranging from CSS to JavaScript solutions.

In this video quick tip, we’ll learn how laughably simple it is to do this with a touch of jQuery, and the resize() method.

By utilizing jQuery’s “resize()” method, we can easily listen for when the user changes the width of their browser window.

function checkWindowSize() {

	if ( $(window).width() > 1800 ) {
		$('body').addClass('large');
	}
	else {
		$('body').removeClass('large');
	}

}

$(window).resize(checkWindowSize);

Then, subsequently, we target our desired CSS properties accordingly.

Tags: , , , , , , ,

How to Build an Unobtrusive Login System in Rails

tirs, feb 16, 2010

Kommentarer slået fra

An unobtrusive login system is one that gets out of the user’s way. It will make your application nicer and more polished. This article will guide you through the process of setting up user logins, then ajaxifying the process by moving the form into a modal box that communicates with the server. Additionally, this article will show you how to create the setup using jQuery and Prototype so you can choose your favorite library. This article assumes that you have experience with Rails and jQuery or Prototype.

You can use Adman65/nettuts for a successful login. Be sure to use bad credentials so you can see how everything works.

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Abduzeedo 2010 Light Effects in Photoshop

man, feb 15, 2010

Kommentarer slået fra

So in this tutorial I will show you how to create that effect. It’s a sort of monitor/halftone effect mixed with glows and other light effects. We will play with Blend Modes and Blurs. The whole process is quite simple and it won’t take more than 20 minutes to achieve the same result.

Step 1

Open Photoshop and create a new document. I used A4 for the size. Also RGB colors. After that double click on the background layer and apply a Layer Style to it. Use Gradient Overlay. For the colors use black and in the center a dark blue. For the Style use Radial.

Tags: , , , , , , , , ,

The Abduzeetles Rockband Website in Fireworks

man, feb 15, 2010

Kommentarer slået fra

What’s up guys, this tutorial is a kind of special for me, since I saw for the first time this site I was amazed with the colors, the shapes and the real life that it appears to be. I’m talking about The Beatles Rockband’s website, it’s simply wonderful. And thinking on it I decided to redesign it in Fireworks, but now our own site, that we’ll call the Abduzeetles Rockband!

<!–break–>

We’re going to use nice commands on this tutorial, and what is really cool is trying to test other values on each step, other colors, other shapes, always exploring the whole potencial from every tool. I hope all of you guys enjoy this tutorial.

Tags: , , , , , , , , , , , , , ,

Minimalistic Poster Design in Photoshop

man, feb 15, 2010

Kommentarer slået fra

So I will show you how to create a minimalistic design in Photoshop playing with stock photos, blend modes and filters. We will also use a paper texture to give a nice retro feel to our design.

Step 1

Open Photoshop and create a new document. I’m using for this tutorial 900×1440 pixels for the size. Fill the background layer with black and then go to Edit>Transform>Scale. Resize the background layer like the image below.

Minimalistic Poster Design with Photoshop

Step 2

Go to Layer>Layer Style>Color Overlay. Select brown for the color, the one I used is #37281e

Minimalistic Poster Design with Photoshop

Tags: , , , , , , , , , , , , , , ,