Difference between revisions of "User:Q-Owl"

From Geohashing
imported>Q-Owl
(Expeditionen / Expeditions)
imported>Q-Owl
(PHP)
Line 30: Line 30:
  
 
}}
 
}}
 +
 +
== PHP ==
 +
I like PHP.
 +
If you need a little PHP function to link from your own homepage to the geohashes of a certain day in the past, here is it:
 +
<pre>
 +
  function geohashing_textlink( $my_date = -1 , $klasse = "" ){
 +
      /* a text link to a special day
 +
        Parameters: $my_date (optional):  0 heute
 +
                                          -1 yesterday and so on
 +
                    $klasse (optional):  CSS Class for the link */
 +
 +
      $complete_date = mktime(0, 0, 0, date("m"), date("d") + $my_date, date("Y")); 
 +
 +
      //check inputs
 +
      if ( $my_date > 0 ){ $my_date = 0; }
 +
      $klasse = trim( $klasse );
 +
 +
      //build link
 +
      $text  =  date("j.n.Y" , $complete_date ); 
 +
 +
      $outp  = "&lt;a href=\"http://wiki.xkcd.com/geohashing/";
 +
      $outp .= date("Y-n-j" , $complete_date ) . "\"";
 +
      $outp .= " target=\"_blank\"" ;
 +
 +
      if ( $klasse != "" ){ $outp .= " class=\"" . $klasse . "\""; }
 +
 +
      $outp .= " >" . $text .  "&lt;/a>" ;
 +
 +
      return( $outp );
 +
  }</pre>

Revision as of 13:17, 25 October 2013

Über mich / About Me

Bei Geocaching bin ich seit 2011 angemeldet, Geohashing habe ich am 25.9.2013 entdeckt.

Ich wohne im Bereich Mannheim, Germany (heutiger Geo Hash Punkt: peeron map). Meetups in dieser Graticule: meetups.

I like Geocaching since 2011 and I discovered Geohashing 2013-09-25.

My home graticule is Mannheim, Germany (see today's point on the peeron map). Meetups in this graticule: meetups.

Expeditionen / Expeditions

Den dritten Tag dabei und schon war ein Geohash in unserer Nähe: 2013-09-27 49 8

I created this account three days ago and now there was a Geo Hash a few kilometers away from home.

Pläne und Ideen / Plans and ideas

  • Visit my Birtdayhash 1955-11-28 49 8
  • Meet up with other Geohashers
  • Cross the border to: France, Swiss, Austria and others
  • get some Achievements

Achievements

Landgeohash.png
Q-Owl earned the Land geohash achievement
by reaching the (49, 8) geohash on 2013-09-27.

PHP

I like PHP. If you need a little PHP function to link from your own homepage to the geohashes of a certain day in the past, here is it:

  function geohashing_textlink( $my_date = -1 , $klasse = "" ){
      /* a text link to a special day 
         Parameters: $my_date (optional):  0 heute
                                          -1 yesterday and so on
                     $klasse (optional):   CSS Class for the link */

      $complete_date = mktime(0, 0, 0, date("m"), date("d") + $my_date, date("Y"));   

      //check inputs
      if ( $my_date > 0 ){ $my_date = 0; }
      $klasse = trim( $klasse ); 

      //build link
      $text   =  date("j.n.Y" , $complete_date );  
 
      $outp  = "<a href=\"http://wiki.xkcd.com/geohashing/";
      $outp .= date("Y-n-j" , $complete_date ) . "\"";
      $outp .= " target=\"_blank\"" ;

      if ( $klasse != "" ){ $outp .= " class=\"" . $klasse . "\""; }

      $outp .= " >" . $text .  "</a>" ;

      return( $outp );
  }