Skip navigation

version 3 is now live

Hi there, Welcome to version 3 of this site. As you may have noticed, Flia has gone through a re-design.

The site is still built on the same grid system I had built for it before but with a couple of more tweaks. I’ve also added individual case study pages for each client to extend the portfolio page.

Javascript

As far as scripting goes, I mainly use Jquery for the general interaction and I use sIFR for the top headings.

Coming up

I will be switching the entire site to ExpressionEngine in the coming months.

I’m also working on two other ExpressionEngine powered site which will most probably be up before the new Flia site is.

Once again thanks for dropping by. Have a good day and let me know what you think of the new digs.

Toodles

pab

Using jquery s3slider to display featured post in wordpress with no plugin

I recently finished a new wordpress theme that uses the jquery s3slider plugin . Like all of the Jquery plugins this was super easy to implement on a static site, but my goal was to use this in wordpress to display the post from a featured category at the top of the page with out any plugins.

here’s what the theme looks like

You can see the featured post being called at the top of the page.

wood-theme-screenshot

To see how to set this up on a static site, just check the s3slider homepage for a very clear explanation on how the plugin works and the various styling options available to you.

How to display featured Post in Wordpress

I had previously used this technique on Nurse stories dot org to display the latest stories submitted by users and the latest book reviews in the footer section of the site.

The Code

This is how I set up wordpress to display featured post on the top of the page using s3slider and no plugin.

First thing I did was create a Featured category in the control panel of Wordpress.

Then when writing a post in the featured category, I created a custom field called featured_image. and uploaded the image .

You can see it below

featured-post-screenshot-admin

featured-post-screenshot-admin

Here is the code I used to call the latest post in the Featured category

I’m using WP_query to call the post from the featured category the rest is really up to you on how you want to style your s3slider. The loops calls the image we set in out custom field with a key of featured_image

<div class="featured ">

<div id="s3slider">

<ul id="s3sliderContent">

<?php
$containter = 1;
$display = 1;
?>

<?php $my_query = new WP_Query(’category_name=featured’);
while ($my_query->have_posts()) : $my_query->the_post(); ?>

<?php
if (($containter == 1) and ($display >= 6)) {
echo "<ul id=’s3sliderContent’ >";
}
?>

<li class="s3sliderImage">

<a href="<?php the_permalink() ?>"><img width="600" height="165" src="<?php $values = get_post_custom_values(’featured_image’); echo $values[0]; ?>" alt=’<?php the_title(); ?> featured_image’ /></a><span ><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></span>
</li>

<?php
$containter++;
$display++;
?>

<?php
if ($containter >= 6) {
echo "</ul>"; $containter = 1;} else {}
?>

<?php endwhile; ?>

<ul>
<li class="clear s3sliderImage"></li>
</ul>
</div>

</div> <!– end featured div–>

Why no plugin

Well the main reason was that all the plugins I tried out didn’t work the way I wanted them too, and some of them even broke the theme, so to make my life simple I decided to write my own to do exactly what I wanted to do.

I have gotten several emails regarding how to set this up I hope this helps out, sorry for the delay in putting this up, been dealing with other health issues and new server, let me know if you need more infos on how to set this up in the comments.

The theme should be available in the coming weeks, Just a question of finding out where I’m going to host it, if you have any suggestions leave them in the comments

Other great links you might want to check out

Some other interesting ways of displaying your featured post in Wordpress

Cheers

Pab

pab

My new favorite PNG fix for IE6

Hey there, I just wanted to write a quick post and talk about my new favorite PNG fix for Internet Explorer 6 .

I recently worked on a site that used a bunch of PNG images with transparent shadows, One of my criteria for this project was to make the site look exactly the same in IE6 …

The DD_belatedPNG to the rescue

I discovered this PNG fix during a morning break while catching up on some blog reading and came across an article on css tricks where Chris mentioned it briefly in his links of interest.

Being that this was exactly what I was working on just minutes prior and that all my usual PNG solutions failed to some degree ( positioning issues, dead links). All simple stuff that can be worked out. But after reading the documentation I decided to put down the coffee and see what I can do with it; and let me say one thing here, let me be very clear. This is by far the very best PNG fix I have ever used. POINT FINAL!

Before applying the PNG fix

So here is a capture before applying the fix. You can see what the page looked like in all it’s blueish/grayish glory …

lecurie-ie6-no-fix

The after state

And here it is after adding one single javascript file to my JS folder and adding a few lines of code we get this …

lecurie-ie6-fix

As you can see by the example above a;; the transparent images render properly and all that was done in less then a minute to fix the entire site. Just a simple question of writing a couple of simple of lines of code and I was set. So take a second and head on over to The DD_belatedPNG official page and download the needed files.

How to use DD_belatedPNG

Simply download the files from the website. Then upload it to your JavaScript folder. Since I only needed it for IE6, the script is wrapped in IE6 conditional tags assuring me that only El grand Crapola AKA IE6 will see this and none of the other browsers.

Here’s the code I used for the site, the string arguments could be any CSS selector you want which makes this really easy to use for designers or people that are not that comfortable with writing JS.

The code used


<!--[if IE 6]>
<script src="js/DD_belatedPNG.js"></script>
<script>
DD_belatedPNG.fix('#masthead');
DD_belatedPNG.fix('#logo');
DD_belatedPNG.fix('#ulnav li a');
DD_belatedPNG.fix('#float_support');
DD_belatedPNG.fix('#footer');
DD_belatedPNG.fix('#col_secondary');
DD_belatedPNG.fix('#main_content h2');
</script>
<![endif]-->

More Tutorials on PNG fixes

You can go over at Nettuts Jeffrey Way goes through a bunch of available fixes for your PNG related nightmares. I haven’t watched the screen cast, but like always I’m sure it’s top notch.

24 ways one of of my favorite sites has a great article on PNG fixes and tons of other very useful articles and tutorials written by some of the leading expert in the field of web development and design.

pab

Click to view what I've been reading

Learning Jquery

I will be posting about some of the book that I am currently reading, from css design books to Bukowski to Ennis …

cover of learning jquery book

Right now I am reading Learning Jquery by Karl Swedberg & Jonathan Chaffer.

I just got the book in the mail 2 days ago. I'll post a review in the coming weeks

If you have a second and are interested in Jquery I highly recommend checking out Karl Swedberg' website, one of my favorite site on the web when it comes to Jquery

Karl was the first person to ever help me out with jquery and I couldn't thank him enough for taking the time to help me out. A true Gentleman

Preacher

By Garth ennis, Artwork Steve Dillon

preacher cover comic book

“But enough theology, I'm gettin' a hankerin' to punch some motherfucker's teeth out.” - Jesse Custer aka the Preacher
the above quote gives you a good idea of what to expect in the book … well kinda. Please note that finding a quote to put here was kinda hard since the language used in the book is pretty harsh, now looking for it through the web I found some really funny ones but I decided to not put them here.

The author : Garth Ennis

Let me just start off by saying Garth Ennis is a genius. There are few people in the comic book world that can write a story the way Garth does, Preacher is in my opinion the perfect comic book.

How can you go wrong when you have a preacher who can speak the word of god and make people do what ever he wishes, a drunk Irish Vampire, a gun loving girlfriend and mad amounts of blood and hilarity

The story is set in the South but it ain't any kind of south it's Garth Ennis' version of what the American South is like, The plot is excellent, the character development is just perfect. I read all nine novels and when I was done, I re-read that bad boy.

Art by : Steve Dillon

To not mention the artwork of Steve Dillon would be a crime, Steve along with Argentinian born artist Eduardo Risso who does the art work for A 100 bullets on Vertigo are two of my favourite artist.

I get a lot of inspiration for web design when I look at their art work, the way they juxtapose images and work with shades is really inspiring, I highly recommend you check out some of their artwork

Steve has a way of setting the mood for every page, his work is just stunning, from his work on Punisher, Judge Dred all the way to Preacher everything he touches is just brilliant

In the Preacher he really goes out of his way to set up the scenes, I can't even imagine how they would pull-off most of the stuff this guys comes up with if they would ever get the movie or tv deal done.


order issue number one

Our work

melanie kaye pr web site

Melanie Kaye PR

Web site created for a new PR company specializing in the entertainment industry

 rambozo comics web site

Rambozo Comics

Web site created for a new comic book publishing company who specializes in indie comics

nurse stories web site

Nurse Stories

Web site dedicated to sharing nurse stories and book reviews

see more in the folio section of the sainte catherines website

The Sainte Catherines

Montreal's own The Sainte Catherines are one of our regular clients.

Search the blog.

Articles

Find various articles written by us and our collaborators. You will also find tutorials related to css and javascript. we will also post articles on DIY

read more »

Upcoming Projects

After this Re-design I will be giving the entire site some ExpressionEngine Love & Tenderness and adding a couple of new features to the site

Wood Theme a Wordpres custom theme will be available real soon for all of you to download and play with.

Elsewhere on le web

All content & design © Copyright Flia web design

pab’s corner is proudly powered by WordPress | Entries (RSS) and Comments (RSS).