<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>skinning</title>
  <link rel="alternate" type="text/html" href="http://domesticat.net/taxonomy/term/424"/>
  <link rel="self" type="application/atom+xml" href="http://domesticat.net/taxonomy/term/424/atom/feed"/>
  <id>http://domesticat.net/taxonomy/term/424/atom/feed</id>
  <updated>2007-12-23T01:02:58+00:00</updated>
  <entry>
    <title>A little discovery</title>
    <link rel="alternate" type="text/html" href="http://domesticat.net/2002/12/little-discovery" />
    <id>http://domesticat.net/2002/12/little-discovery</id>
    <published>2002-12-16T23:28:04+00:00</published>
    <updated>2007-12-23T01:32:26+00:00</updated>
    <author>
      <name>domesticat</name>
    </author>
    <category term="rants" />
    <category term="skinning" />
    <summary type="html"><![CDATA[<p>From:  me (you-know-who at domesticat.net)<br />
To:  Jenn (jenn at intensified dot org  )<br />
CC:  Gareth  (hi Gareth!)<br />
Subject:  Questions regarding your skinning tutorial</p>
<p>Hello -</p>
<p>My name is Amy, and I am the owner of domesticat.net.  It was recently suggested to me that I pay close attention to one of the tutorials that you have posted on intensified.org.</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>From:  me (you-know-who at domesticat.net)<br />
To:  Jenn (jenn at intensified dot org  )<br />
CC:  Gareth  (hi Gareth!)<br />
Subject:  Questions regarding your skinning tutorial</p>
<p>Hello -</p>
<p>My name is Amy, and I am the owner of domesticat.net.  It was recently suggested to me that I pay close attention to one of the tutorials that you have posted on intensified.org.</p>
<p>I took a look at this page (<a href="http://www.intensified.org/tuts/skinningindex.php" >intensified.org/tuts/skinningindex.php</a>) and was a bit concerned about what I saw there.  While I do not claim to have any kind of copyright on the *process* of skinning, I *do* claim copyright on the code that I have written.</p>
<p>Let's compare:</p>
<p>----- mine -----<br />
<strong>&lt;?php include("/path/to/your/site/html/cookiecheck.php"); ?&gt;</strong></p>
<p>&lt;?php<br />
    $headervar = "/path/to/your/site/html/nav/header";<br />
    $extension = ".php";<br />
    include ($headervar.$skin.$extension);<br />
?&gt;</p>
<p>&lt;?php<br />
  if (isset($newskin)) {<br />
    $newskin=(int)$newskin;<br />
    if ($newskin&lt;1) $newskin=1;<br />
    if ($newskin&gt;14) $newskin=1;<br />
  } elseif (isset($skin)) {<br />
    $newskin=(int)$skin;<br />
    if ($skin&lt;1) $newskin=1;<br />
    if ($skin&gt;14) $newskin=1;<br />
  } else {<br />
    $newskin=1;<br />
  }<br />
  $skin=$newskin;</p>
<p>?&gt;</p>
<p>&lt;?php<br />
    $footervar = "/path/to/your/site/html/nav/footer";<br />
    $extension = ".php";<br />
    include ($footervar.$skin.$extension);<br />
?&gt;<br />
----- end mine -----<br />
(taken from these pages: <a href="/skins/tutorial/begin_with_php.php" >domesticat.net/skins/tutorial/begin_with_php.php</a> and <a href="/skins/tutorial/the_cookiecheck.php" >domesticat.net/skins/tutorial/the_cookiecheck.php</a> )</p>
<p>----- yours -----</p>
<p><strong>&lt;?php include("/home/NAME/public_html/skins/cookiecheck.php"); ?&gt;</strong></p>
<p>&lt;?php<br />
    $headervar = "/home/NAME/public_html/skins/header";<br />
    $extension = ".inc";<br />
    include ($headervar.$skin.$extension);<br />
?&gt;</p>
<p>&lt;?php<br />
  if (isset($newskin)) {<br />
    $newskin=(int)$newskin;<br />
    if ($newskin&lt;1) $newskin=11;<br />
    if ($newskin&gt;11) $newskin=11;<br />
  } elseif (isset($skin)) {<br />
    $newskin=(int)$skin;<br />
    if ($skin&lt;1) $newskin=11;<br />
    if ($skin&gt;11) $newskin=11;<br />
  } else {<br />
    $newskin=11;<br />
  }<br />
  $skin=$newskin;<br />
  setcookie ('skin', "", time() - 3600);<br />
  setcookie('skin',$newskin,time()+(86400*365),'/');<br />
  setcookie('skin',$newskin,time()+(86400*365),'/','.kiss-my-kitty.com');<br />
  $skin=$newskin;<br />
?&gt;</p>
<p>&lt;?php<br />
    $footervar = "/home/NAME/public_html/skins/footer";<br />
    $extension = ".inc";<br />
    include ($footervar.$skin.$extension);<br />
?&gt;<br />
----- end yours -----</p>
<p>My skinning tutorial has been available on the web since September 9, 2001 (see this entry announcing it: <a href="http://domesticat.net/node/374" >domesticat.net/node/374</a> or confer with Christine, formerly of blahblahblog.com, whose questions I used to create the tutorial).  The cookiecheck code was actually written by Gareth Watts, my siteadmin.</p>
<p>I have trouble suspending my disbelief that recently, on your own, you have crafted an <em>almost exact duplicate</em> skinning method that I use, down to the very same cookiecheck and header/footer include code.  I think it far more likely that, in fact, you've borrowed my code and cut down the tutorial to your taste.</p>
<p>Just because I make my code available for others to use does not mean that I am willing to allow other people to claim that they created it when they, in fact, did not.</p>
<p>In that case, I will ask for one of two things.  If your tutorial is to remain up and will continue to contain my code, I ask for acknowledgement on the page that the code is mine, and a link back to my tutorial. Otherwise, please take it down.  That's pretty excruciatingly fair, in my opinion.</p>
<p>If you claim that you wrote this code and that the copyright is yours, I'd appreciate seeing some kind of proof.  Be aware - in addition to my written notes, I have the archived emails back and forth with Christine, as well as emails and instant message archives with my sysadmin about how best to lock down the cookiecheck code.</p>
<p>Amy<br />
(owner, domesticat.net)<br />
<em>-----------------------------------------------------------<br />
" 'I dust a bit,' Ignatius told the policeman.  'In addition,<br />
I am at the moment writing a lengthy indictment against our<br />
century.  When my brain begins to reel from my literary<br />
labors, I make an occasional cheese dip.' "<br />
   - John Kennedy Toole, _Confederacy of Dunces_<br />
domesticat.net:  Much ado about the usual nothing.<br />
nautilus-blue.net:  Less ado.  Still nothing.<br />
-----------------------------------------------------------</em></p>
<p>and blast, I forgot to include in this section of code from my site as well, because it was on yet another page:</p>
<p>	$skin=$newskin;<br />
	setcookie ('skin', "", time() - 3600);<br />
	setcookie('skin',$newskin,time()+(86400*365),'/');<br />
	setcookie('skin',$newskin,time()+(86400*365),'/','.domesticat.net');<br />
	$skin=$newskin;</p>
<p>You know...someday, people are going to figure out that while I may seem like a scatterbrained dingbat, I actually keep pretty detailed copies of my activities online - emails, IMs, code, designs, etc.</p>
<p><strong>Next addendum:  here's her reply.</strong></p>
<p>Amy, </p>
<p>I understand your concern and rather misplaced aggravation, but I have no intention of taking down my skinning tutorial nor giving you credit, and this is why: </p>
<p>Sarah from <a href="http://www.onestarrynight.com" title="http://www.onestarrynight.com">http://www.onestarrynight.com</a> taught me how to skin (way back in June 2002), and I took HER instructions and turned them into a tutorial. </p>
<p>I have never even been to your site. </p>
<p>Take care, </p>
<p>Jennifer</p>
<p><strong>...and my response.</strong></p>
<p>Jennifer - </p>
<p>I've contacted Sarah to find out how she found out about the code, but that's pretty much irrelevant at this point.  What *does* matter is that the code you are posting is an exact match to what I've had on my site for well over a year - code that I do maintain copyright on.  </p>
<p>While I'm sorry that you were unaware of it, a very quick search on Google would have turned this information up for you at any point in time.  A search for virtually ANYthing along the lines of website themes / skins / skinning with PHP / etc. would have turned up the pages on my site, as well as many links to them from other websites.  (Not to mention if you'd actually done searches on the code itself.)  On those pages on my site would be the code that you have made available on your site without crediting.</p>
<p>While you may have been ignorant in the past that this code was of my creation, this is no longer the case.  I'm *not* asking you to take the tutorial down; I'm asking for an acknowledging link on your page to the original tutorial on my site, because I wrote the code that you are providing to others.  That's all. </p>
<p>This is not a difficult issue to resolve, and can be very quickly remedied on your part.</p>
<p>Amy</p>
    ]]></content>
  </entry>
  <entry>
    <title>Getting back to the code</title>
    <link rel="alternate" type="text/html" href="http://domesticat.net/2001/10/getting-back-code" />
    <id>http://domesticat.net/2001/10/getting-back-code</id>
    <published>2001-10-03T04:40:24+00:00</published>
    <updated>2007-12-23T00:58:53+00:00</updated>
    <author>
      <name>domesticat</name>
    </author>
    <category term="coding" />
    <category term="skinning" />
    <summary type="html"><![CDATA[<p>As I'm coding, he comes up behind me, wraps his arms around me and says, "You do such neat things."  After the past 24 hours, I think that was exactly what I needed to hear.</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>As I'm coding, he comes up behind me, wraps his arms around me and says, "You do such neat things."  After the past 24 hours, I think that was exactly what I needed to hear.</p>
<p>For several months now I've been toying with the idea of making <a href="http://www.geek-chick.net">geek-chick.net</a> skinnable.  To skin it with the required amount of flexibility was going to require more effort than what originally went into the skinning of domesticat.net&mdash;about an order of magnitude, actually.I haven't really wanted to do it.  I hate saying that, but it's the truth.  I knew firsthand what kind of work it would take to make the site skinnable, and having recently finished up domesticat, I wasn't terribly keen on going through all that again.</p>
<p>Jeff was right, though, and I knew it.  There were some users who weren't happy because of the (fairly) simple tables-based layout that g-c had, but there were users who weren't happy because even that simple layout didn't display well under older versions of Netscape.</p>
<p>There wasn't a way to make everyone happy unless the site was skinned.  So I put the misgivings aside and started working out a schematic for skinning the site.  I figured out how many templates were needed, and what kind of variables I'd need to pull from greymatter.  </p>
<p>It was difficult and obfuscated, but I could make it work.  About a month ago I went through and started cleaning up the code over at g-c, to help ease the transition into a multi-skinned site.  This week, with the move to the new server complete, I decided it was time to swallow my pride and just get to work.</p>
<p>Truth be told, I haven't had much sleep since that decision.  I've stayed up until hours I don't want to acknowledge, fitting the pieces together.  Today was mostly cleanup work&mdash;making the HTML and templates work together in the way I intended.  I'd say that right now it's about 90% complete, with the exception of files in a particular folder that I've not worked on yet.</p>
<p>I keep waiting for the sense of pride and purpose to come to me.  Maybe I'm still too tired.  Maybe I won't feel it until I can freely swap skins back and forth; I don't know.  At this point I'm heartily sick of the process, and would more than anything like to just take the damn code and chunk it out the nearest window.</p>
<p>(But Edmund is standing between me and the window, and I have quite a few friends who are going to kill me if I stop after getting this far with the code.)</p>
<p>Some of the frustration comes from knowing that as soon as I'm done getting the skin code up, I need to turn around and figure out how to churn out a particular PHP script that I'm pretty sure is beyond my mastery of the language.  </p>
<p>Too many hours staring at this code, I think.  I probably should just give up on it for the night and resume tomorrow&mdash;but I know my workaholic tendencies, and I know that I'll probably stay up tonight until that last ten percent is finished.</p>
<p>Until it does, I think that I probably won't have too much to say here.  After spending hours making code work right, sometimes the last thing you want to face is more time in front of a computer screen.</p>
<p>With that stated, I think it's time to get back to the code.</p>
    ]]></content>
  </entry>
  <entry>
    <title>Gothgirl and new random-entry scripts</title>
    <link rel="alternate" type="text/html" href="http://domesticat.net/2001/09/gothgirl-and-new-random-entry-scripts" />
    <id>http://domesticat.net/2001/09/gothgirl-and-new-random-entry-scripts</id>
    <published>2001-09-30T06:22:09+00:00</published>
    <updated>2007-12-23T00:59:29+00:00</updated>
    <author>
      <name>domesticat</name>
    </author>
    <category term="coding" />
    <category term="site" />
    <category term="skinning" />
    <summary type="html"><![CDATA[<p>In lieu of a new journal entry, I proffer the latest cat.net skin, "gothgirl."  Like all the others, it's available at the <a href="/skins/">skins</a> page.  With it, I'm inaugurating a new script that I plan to make available in a few more of the cat.net skins soon:  random entries.  </p>
    ]]></summary>
    <content type="html"><![CDATA[<p>In lieu of a new journal entry, I proffer the latest cat.net skin, "gothgirl."  Like all the others, it's available at the <a href="/skins/">skins</a> page.  With it, I'm inaugurating a new script that I plan to make available in a few more of the cat.net skins soon:  random entries.  </p>
<p>Gareth, of course, gets lots of credit for this&mdash;while most of the code is (technically!) my own, his guidance and hinting-at-appropriate-times made it possible for the script to exist in the first place.  <em>(<a href="/misc/random.zip">download</a> the code) </em>It interfaces with greymatter, which I currently use to power the entries on cat.net.  It's pretty simple, in the end.  Every time you reload a page that has the random-entry script included, you'll get the title and first paragraph of one of my archived entries.  A "read more" link will be included if you're interested in reading the rest of the post.  </p>
<p>I've had 'gothgirl' waiting in the wings for a while, but I specifically wanted to unveil the random-entry script in conjunction with this skin.  Until the random-entry script was available, 'gothgirl' had to wait.</p>
<p>If you think you've seen this picture before, you probably have.  <a href="http://www.domesticat.net/images/2001/vancouver/nyala-jm-aq-ja.jpg">This picture</a> from our Vancouver trip this past year might jog a memory or two.  The original picture was far too dark; I corrected the levels for the trip photo collage, but found the really large, dark original to be compelling in a way that the corrected version was not.  I saved an extra copy of it, and the skin sprang from that photo.</p>
<p>Kat teased me a couple of days ago that I hadn't posted any new skins in quite some time.  I realized that she was right; I've had some new ones waiting in the wings but have held off on each of them for one reason or another.</p>
<p>Perhaps tomorrow I'll try to fix the lingering problems with "glacial" and get it posted.  It's been sitting, unused, on my hard drive for long enough.</p>
<p>As always, if you have any problems with the new skin or the new script, give me a yell.  You know where to find me.</p>
    ]]></content>
  </entry>
  <entry>
    <title>Tutorial: Skinning your site</title>
    <link rel="alternate" type="text/html" href="http://domesticat.net/2001/09/tutorial-skinning-your-site" />
    <id>http://domesticat.net/2001/09/tutorial-skinning-your-site</id>
    <published>2001-09-10T01:25:15+00:00</published>
    <updated>2007-12-23T01:01:08+00:00</updated>
    <author>
      <name>domesticat</name>
    </author>
    <category term="cats" />
    <category term="coding" />
    <category term="skinning" />
    <summary type="html"><![CDATA[<p>Not all the changes that take place here show up on the front page, but some are worth noting here when they happen.</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Not all the changes that take place here show up on the front page, but some are worth noting here when they happen.</p>
<p>For quite some time, I've been muttering that I needed to write up a real tutorial on how to create skinnable (or themed) websites.  What I'd previously made available was seriously under-documented and, I think, had a few errors in the code.While walking Christine (of <a href="http://www.blahblahblog.com">blahblahblog.com</a>) through the process of making her site skinnable, I started making notes.  By this morning, I'd amassed enough notes that I could no longer ignore the fact that I was sitting on a tutorial.</p>
<p>So, at last, <a href="/skins/howto.php">here is a decent explanation</a> of what it takes to really make a site thoroughly skinnable, plus some generous snips and bits of code to help smooth the transition.  The explanations, plus code and suggestions on how to structure the back-end portion of your site, take up a whopping ten pages.  Ouch.  (I knew there was a reason I didn't do this any earlier.)</p>
<p>I'm hoping this helps matters for the people who are thinking of skinning (or theming) their sites.  I'd like to update the code a bit more—insert some stuff about deleting old cookies and perhaps fixing the (to me) clumsy way it redirects you once you've selected a new skin.  That, for sure, is should be left for another day entirely.</p>
<p>Now, if I could just get the rest of the front flowerbeds weeded, I'd be ahead of my game.</p>
<p>Edmund's been loving this; I do believe that cat has spent the <em>entire day</em> snoozing on my desk.  Ever since we got home from dragon*con, he hasn't wanted to be more than ten feet from me.  He generally doesn't want petting, doesn't want to be cuddled—just wants to make sure that I'm not going to pull another five-day vanishing act again anytime soon.</p>
<p>For now, I think my karmic duty is to turn off the computer, sit on the couch, and scritch whichever cat shows interest in having his head scratched.</p>
    ]]></content>
  </entry>
  <entry>
    <title>Skinnable websites good!</title>
    <link rel="alternate" type="text/html" href="http://domesticat.net/2001/06/skinnable-websites-good" />
    <id>http://domesticat.net/2001/06/skinnable-websites-good</id>
    <published>2001-06-24T20:37:40+00:00</published>
    <updated>2007-12-23T01:02:37+00:00</updated>
    <author>
      <name>domesticat</name>
    </author>
    <category term="coding" />
    <category term="skinning" />
    <summary type="html"><![CDATA[<p>I am making the PHP code I used to make domesticat.net into a skinnable site freely available.</p>
<p>It can be found <a href="/skins/howto.php">here</a>.  </p>
<p>Comments, questions, problems, and kudos can be directed to <span class="spamspan"><span class="u">comments</span><img alt="at" width="10" src="/sites/all/modules/spamspan/image.gif" /><span class="d">domesticat [dot] net</span></span>..</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>I am making the PHP code I used to make domesticat.net into a skinnable site freely available.</p>
<p>It can be found <a href="/skins/howto.php">here</a>.  </p>
<p>Comments, questions, problems, and kudos can be directed to <span class="spamspan"><span class="u">comments</span><img alt="at" width="10" src="/sites/all/modules/spamspan/image.gif" /><span class="d">domesticat [dot] net</span></span>..</p>
    ]]></content>
  </entry>
  <entry>
    <title>Coding day from hell</title>
    <link rel="alternate" type="text/html" href="http://domesticat.net/2001/06/coding-day-hell" />
    <id>http://domesticat.net/2001/06/coding-day-hell</id>
    <published>2001-06-23T04:03:22+00:00</published>
    <updated>2007-12-23T01:02:58+00:00</updated>
    <author>
      <name>domesticat</name>
    </author>
    <category term="coding" />
    <category term="frustration" />
    <category term="skinning" />
    <summary type="html"><![CDATA[<p>Oh, dammit to <em>hell.</em></p>
<p>I am <em>so close.</em>  I wanted to finish up the skin code for the site tonight and to call it a weekend and walk away.  But, instead, I'm stuck with half-working code (the half that works is courtesy of Gareth) and a sick spouse who will probably beg out of our movie plans tomorrow.Lesson:  what I attempt to do in thirty lines of code, Gareth can do in twelve or so.  Ouch.  Guess I got a bit of a reminder of why he's a coder and I do graphics stuff.</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Oh, dammit to <em>hell.</em></p>
<p>I am <em>so close.</em>  I wanted to finish up the skin code for the site tonight and to call it a weekend and walk away.  But, instead, I'm stuck with half-working code (the half that works is courtesy of Gareth) and a sick spouse who will probably beg out of our movie plans tomorrow.Lesson:  what I attempt to do in thirty lines of code, Gareth can do in twelve or so.  Ouch.  Guess I got a bit of a reminder of why he's a coder and I do graphics stuff.</p>
<p>The results of today's code-pounding consist mostly of lots of emailed questions to Brad and Gareth, absolutely no graphic design work done, a pounding headache, and nothing new to report.  I am a marginal coder at best.  At one time, I was better, more logical, more organized, but it seems that since getting married to the Ultimate Engineer[tm] that it's my graphic design side that's decided to take control of my brain.</p>
<p>I'm hoping to go see <a href="http://us.imdb.com/Details?0209144">Memento</a> tomorrow, but I have a sneaking feeling that I will be going alone.  Jeff had originally agreed to go with me, but judging the awfulness of this evening's hacking and snuffling, I'd not be a bit surprised if tomorrow he shoos me out by myself.</p>
<p>Thus, I am torn.  I wanted to have someone to see the movie with, but if Jeff overexerts himself he'll undoubtedly get worse, not better.  The end result would be more tending on my part.</p>
<p>I wish the code had chosen to fall right today.  That would've been a bright spot on a day that was more marked by massive code problems than anything else.</p>
<p>It's been a big headache.  Originally, I'd had hopes that I could celebrate having a skinnable site by the end of this weekend, but instead, it looks like I'll be taking a weekend away from it in the hopes that some time away will induce clarity.</p>
<p>Soon&mdash;I hope.  </p>
    ]]></content>
  </entry>
</feed>
