Distractions...

Daily discoveries & stuff.

nedelja, 13. julij 2008

Simple blogger 'pagination'

I hate the fact that blogger doesn't have some kind of pagination, so I thought I'd just
put the archive links on the bottom of the page, so users can swift through the blog more easily.

Unfortunately, I can't paste the code here, blogger can't stand its on code.. so I tumbled it here.
You can see the pagination in action on the bottom of my blog. :)

test

sobota, 14. junij 2008

Css support in email clients

A while ago I was making some receipts in html which were supposed to go to customers via email. Css in emails gave me a few headaches, I wish I found this before:















via webbapers.com

četrtek, 12. junij 2008

Pagination

One thing about pagination always bothered me. In cases where
user visits yoururl.com/blog, the page should be set to 0, even when $_GET page parameter is not set.
Here's how I used to do it:
$page = isset($_GET['page'])?$_GET['page']:0;
This checks if page is set, and if it's not, sets it to 0;

Here's how I do it now:
$page = $_GET['page'] + 0;

nothing + 0 = 0, something + 0 = something, which solves my problems. :)

Oznake: ,

sreda, 11. junij 2008

New window warning

Today i stumbled upon this site spreadshirt.net, and in their
footer I noticed these handy icons that tell you if the link is going to open in a new window. Quite handy!

Oznake:

eno.si












My work:
-HTML
-CSS
-Javascript
-Mysql
-Php
-Custom Cms/Store

Oznake:

crn-trn.si






My work:
-Html
-Css
-Php
-Mysql
-Custom CMS

Oznake: