Archive for the ‘web development’ Category

me and 1and1 are cool again…

so i’ve had this long-standing issue with my host, 1and1, where i wasn’t able to install plugins or upgrade the wordpress software to the latest and greatest version…

this really ticked me off because i would have to do plugin updates manually (upload via ftp) and the newest wordpress 3.x didn’t want to upgrade at all (i’d get server errors)

so i finally consulted google and was able to find a solution — apparently it has bothered other people!

If you are a 1and1.com user and are having problems getting the auto upgrade to work (for both the core and plugins), here’s the fix.

Add the following line to your .htaccess file (in the root directory of your WP install):

AddType x-mapp-php5 .php

as soon as i updated the .htaccess file, i was able to upgrade plugins and even wordpress itself!

i was even able to install the WPtouch plugin through my phone! that’s sick.

happy.

the band of primates

so i’ve FINALLY updated the gorirra site… it wasn’t just a small cosmetic change neither… it’s a whole upgrade to the wordpress cms.

i’m really happy with the way it turned out — it’s simple and modern <toot toot>

i’m kinda glad i didn’t go with my initial mockup:

wise decision...

more coding funzz!

on the topic of “figuring things out wrt coding” — i was working on converting a site to wordpress and was trying to figure out how to get a home page movie to appear ONLY on the home page (easily).
so i looked around and found out there was a wordpress function called “is_front_page()”

so, along with a nifty fade in/fade out script, i created this in the header.php file:

<?php
  if ( is_front_page() ) {
  echo "
    <div class=\"hpmovie\">
      <div id=\"xlide\">
        <img src=\"wp-content/themes/[THEMENAME]/images/5.jpg\"
          alt=\"\" />
        <img src=\"wp-content/themes/[THEMENAME]/images/11.jpg\"
          alt=\"\" />
        ...
      </div>
    </div>
  ";
  }
?>

so basically, if it’s the home page, it’ll write stuff to the page… boom

coding fun!

so this won’t make sense to any of you, but i was pretty proud of myself when i made this. i used various xsl elements to basically have the page pull data from an xml document:

xsl

...
<xsl:variable name="readmore">
  <xsl:choose>
    <xsl:when test="@readmore != ''">
      <xsl:value-of select="@readmore" />
    </xsl:when>
    <xsl:otherwise>
      See all <xsl:value-of select="@title" />
    </xsl:otherwise>
  </xsl:choose>
</xsl:variable>
<div style="font-size:8pt;">
  <a href="{@url}"><xsl:value-of select="$readmore" /></a>
</div>
...

this is a sample of the xml that it pulls:

<page id="..." title="Newsletters" url="newsletters.asp"
  thumbnail="include/media/images/products-newsletters.gif"
  description="blah blah blah">

so since there isn’t a title attribute to this node, it’ll default to the title. on the page, it’ll say “See all Newsletters”

i made it myself! yay

anything you want can be yours at any time

new site theme is up and running!

i’m sure i forgot something so if you see any errors… lemme know (my qc guy is in town, but i’m excited to roll out with this)

not like you care, but this is hugely different than the previous theme i had (white with the red line at the top)… this one has a bit more color in it and a few more elements that i’ve picked up recently

to start, the main logo is a transparent png with a rollover AND it degrades nicely if you’re using a shitty browser like ie6…

tranny ping (not some gay dood in china)

so it’s one image, and the css switches the image when you roll over it… this method is pretty cool and super easy to pull off. the end result is clean and it loads quick!

then there’s the overall color scheme… i wish i was better at color theory, but i’m not. so i gotta do research on colourlovers for inspiration. i knew i wanted a “web 2.0″ (ugh) color scheme and i think i did it…

another thing that’s cool is the footer — i knew i wanted to do a design with a 3 column footer… i’ve seen kids these days doing it so i wanted to join that crew… i moved the archive list down here, put a short little bio (that’s a first for me), put the social networking sites, and re-added my signature in the copyright

i really like logos… especially when they’re sharp… thanks to the interwebs, i was able to find a set of illustrator vectors of the social networking site logos. so i was able to resize them down without losing quality… i used the rollover styling here as well

tranny gif this time...

and to celebrate, i’ll throw in a song… it’s actually a song i just learned on guitar — it’s SUPER simple even andy could prolly play it

it’s jason mraz’s “anything you want” off his live cd – “beautiful mess: live on earth” (hulu)