Studio Lounge
Studio Lounge Wed Design and Photography Edmonton
Apr 23rd, 2008

Not to long ago i made a tutorial on how to Creating Black and White Images in Photoshop CS3. This tutorial though centered around JPG was will an nondestructive method and has worked well for me in the past. But there are many methods in creating black and white images. Some involve a bit more understanding of colour and manipulating the colour channels in Photoshop. The method i have been using lately is done with RAW photos in Adobe Camera Raw 4.4.1.

Download the Source RAW file here.

Read on..

Add this too -

I tried a few examples from the internet and neither seamed to work properly so i adapted the two that i found.

First things first:
Open your comments.php file and look for a line like this.

Code (php)

<li class="<?php echo $oddcomment; ?>" id="comment-< ?php comment_ID() ?>">
</li>

Read on..

Add this too -
Feb 20th, 2008

I was using this technique on my site for a while and realized that i actually liked the evening image you currently see in the header of my site.

The basic principle behind this tutorial is to allow a CSS file to be dynamic in the sense that it can use logic to define certain images or even colour schemes if you wish. The User will never see any JavaScrip so if they have Javascript dissabled your design will still come through.

For my example i used a div with the class of headerImage, simple enough. I then created a new PHP file and called it city.php.

If you try to include a a PHP file as a CSS link it will not work properly. You need to change the files header information.

we do this by using this line of code:

Code (php)

header("Content-type: text/css");
 

Read on..

Add this too -
Oct 15th, 2007

bw-finished This tutorial will show you how to create amazing black and white images using the new CS3 Black and White Adjustment Layer in Photoshop. This is relatively simple to do, and depending on what you want the final product to look like you wont need to mess around with layers and levels.

Black and white seams to capture more emotion and can give a lot to the viewer. It also helps show the subtle details that might be lost in colour photos.

Read on..

Add this too -
Jul 11th, 2007

I’m working on a template that was designed to have Tabs and I really didn’t think to much of it, I naturally assumed that it would be possible to add a <span ? tag around the title in the site navigation. Um yea not true. After a bit of searching I found a line in the classes.php in the wp-includes folder that looks like this (around line 517 in version 2.2):

Code (php)

$output .= $indent . ‘<li class="’ . $css_class‘"><a href="’ . get_page_link($page->ID) . ‘"  title="’ . attribute_escape(apply_filters(‘the_title’$page->post_title)) . ‘">’ . apply_filters(‘the_title’$page->post_title) . ‘</a>’;
 

I simply added a <span> tag around the title area and viola it worked like a hot damn.

Code (php)

$output .= $indent . ‘<li class="’ . $css_class‘"><a href="’ . get_page_link($page->ID) . ‘"  title="’ . attribute_escape(apply_filters(‘the_title’$page->post_title)) . ‘"><span>’ . apply_filters(‘the_title’$page->post_title) . ‘</span></a>’;

Hope this helps.

Add this too -
Jun 22nd, 2007

Google Maps API I have been doing a lot of searching in regards to Google Maps and information on there API. In my Addressbook I had a some what dynamic but clumsy way of showing some ones location.

So when I would pull the information I would use a PHP function called “urlencode” it basically converts spaces to underscores so your URL won’t explode and make Google angry.

This works fine but I was opening a new window that I had no control over. so that’s when I began to look into the API and after a bit of looking I found that they had support for HTTP Request and by doing so Google spits out a bit of XML.
Read on..

Add this too -
Mar 21st, 2007

This is a handy little snippet of code for any one that is trying to optimize there code. I just used this in my Addressbook to see how the pages were loading.

microtime
— Return current Unix timestamp with microseconds

There isn’t much to this script, we are going to assign $time-start with a value (start time). Then we would place your code you want to time next. Once the script has executed we then assign a value to $time-end. Simple math will tell us that subtracting $time-start from $time-end will give us the difference, Thus your execution time.

Code (php)

$time-start = microtime(true);

// Code Here

$time-end = microtime(true);
$time = $time_end - $time_start;

echo "Loaded in $time seconds\n";
 

Add this too -
Archives
Page 1 of 3 1 2 3 Next

Fatal error: Call to undefined function wp_clean_archive() in /nfs/c02/h04/mnt/17245/domains/studiolounge.net/html/wp-content/themes/studiolounge/category.php on line 58