We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32241
    • 1,495 Posts
    http://www.dustindiaz.com/naked-day/

    What do you guys think? lol...
      Wendy Novianto
      [font=Verdana]PT DJAMOER Technology Media
      [font=Verdana]Xituz Media
      • 6726
      • 7,075 Posts
      Since it was posted march 30st, I’d say April’s Fool grin !!!
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 33337
        • 3,975 Posts
        Okay, who is going to participate in it ?

        edit: Check this

        ;)
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 10487 MODX Staff
          • 1,535 Posts
          If I remember I might join in ... it’s a cool idea and might just catch on laugh
            Garry Nutting
            Senior Developer
            MODX, LLC

            Email: [email protected]
            Twitter: @garryn
            Web: modx.com
            • 18397
            • 3,250 Posts
            Lets all join in!
              • 28373
              • 204 Posts
              Alot of sites won’t need to worry about turning styles off - they have no style to begin with grin
                • 32241
                • 1,495 Posts
                Quote from: Starbuck at Apr 02, 2006, 06:35 PM

                Alot of sites won’t need to worry about turning styles off - they have no style to begin with grin

                Good point.

                Btw, I’m not sure whether this is just an april fools joke or not though grin Hehehee...
                  Wendy Novianto
                  [font=Verdana]PT DJAMOER Technology Media
                  [font=Verdana]Xituz Media
                  • 10487 MODX Staff
                  • 1,535 Posts
                  Well, I’m in anyway - regardless smiley

                  And, it’s novelty snippet time grin The LoadCSS snippet below is just a modified version of the code found on the Dustin Diaz site and will handle the turning off and on of your stylesheet - complete worry-free nakedness guaranteed wink

                  To use, call the following in the head of your document, making sure you adjust the code to reflect your stylesheet settings.
                  [!LoadCSS? &mode=`0`!] 


                  Then, add the following where you want the descriptive message to be displayed on your site:
                  [!LoadCSS? &mode=`1`!]


                  Here’s the snippet:
                  <?php //-- <-- Remove this php tag when copying and pasting
                  
                  /**
                  *  Naked CSS Day - CSS Handler
                  */
                  
                  $mode = (isset($mode) && $mode=='1') ? 1 : 0;
                  
                  switch ($mode) {
                  
                  case 0:
                  
                  if ( is_naked_day() ) {
                  	$output= "<!--
                  	It's Naked Day didn't ya know it
                  	See http://naked.dustindiaz.com for more information
                  	-->";
                  }
                  else {
                     //-- EDIT THIS LINE HERE TO OUTPUT YOUR STYLESHEET SETTINGS
                     $output= '<link rel="stylesheet" href="/assets/templates/mytemplate/mystyles.css" type="text/css" />';
                  }
                  return $output;
                  break;
                  
                  case 1:
                  
                  if ( is_naked_day() ) {
                  	$output= '<h3>What happened to the design?</h3>
                  <p>To know more about why styles are disabled on this website visit the
                  <a href="http://naked.dustindiaz.com" title="Web Standards Naked Day Host Website">
                  Annual CSS Naked Day</a> website for more information.</p>';
                  }
                  
                  return $output;
                  break;
                  
                  }
                  
                  function is_naked_day() {
                  	$start = date('U', mktime(-12,0,0,04,05,date(Y)));
                  	$end = date('U', mktime(36,0,0,04,05,date(Y)));
                  	$now = time();
                  	if ( $now >= $start && $now <= $end ) {
                  		return true;
                  	}
                  	else {
                  		return false;
                  	}
                  }
                  


                  Anyway, have fun,

                  Garry
                    Garry Nutting
                    Senior Developer
                    MODX, LLC

                    Email: [email protected]
                    Twitter: @garryn
                    Web: modx.com
                    • 4273
                    • 356 Posts
                    We need a MODX Naked day [censored] shocked
                      SMF Bookmark Mod - check it out
                      http://mods.simplemachines.org/index.php?mod=350
                      • 25663 MODX Staff
                      • 12,272 Posts
                      bugsmi0,

                      Please don’t post stuff like that again. Totally uncool and infantile.
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me