Kwebble : Blog

Archief van augustus 2007

  • Nieuwe namen voor voetbalteams

    Gepubliceerd op 16 augustus 2007 in Artikelen.

    Bij sporten waar veel geld in omgaat wordt de ploeg vaak naar de sponsor genoemd, zo heb je de Rabobank fietsploeg, schaatsploegen Team Telfort en TVM en het Spyker Formule 1 raceteam. Bij het voetbal, waar ook grote bedragen in omgaan lopen de de teams achter op deze trend en blijven ze vasthouden aan de namen van de verenigingen waaruit ze oorspronkelijk ontstaan zijn.

    Maar de teams zijn nu zelfstandige professionele entertainmentbedrijven, soms zelfs beursgenoteerd, die steeds minder te maken hebben met die verenigingen. Zet dan ook de volgende stap en verlaat die clubnamen als op de shirts toch duidelijk staat wie de geldschieters zijn.

    Misschien dat dan de teams dan ook weer meer geld kunnen vangen van die sponsors want met de sponsornaam als teamnaam krijgen die bedrijven ineens veel meer publiciteit. Stel je voor dat bij de uitslagen, standen, voor- en nabesprekingen en nieuws niet over Ajax en AZ gesproken wordt maar over ABN AMRO en DSB. Kassa!

    Het komende weekend gaat de voetbalcompetitie weer van start en daarom is het nu een mooi moment om de nieuwe namen van de teams in te voeren. Van elk team heb ik de hoofdsponsor opgezocht en bij elkaar krijg je dan de volgende teams voor het seizoen 2007-2008:

    Naam Oude naam
    ABN AMRO Ajax
    Aevitae Roda JC
    Afab Vitesse
    Arke FC Twente
    Centric De Graafschap
    DSB AZ
    DSW Excelsior
    Fortis Feyenoord
    Graydon Sparta Rotterdam
    Interpolis Willem II
    Jiba NEC
    Noord Lease FC Groningen
    Phanos FC Utrecht
    Philips PSV
    Seacon VVV-Venlo
    Sunweb NAC Breda
    TenCate Heracles Almelo
    Univé sc Heerenveen

    En de eerste speelronde van het seizoen gaat dus tussen deze teams:

    Univé – Interpolis
    Sunweb – Noord Lease
    DSB – Seacon
    DSW – Arke
    Jiba – Aevitae
    Centric – ABN AMRO
    Phanos – Fortis
    TenCate – Philips
    Graydon – Afab
    • sponsoring
    • sport
    • voetbal
  • YSlow

    Gepubliceerd op 16 augustus 2007 in Links.

    YSlow test webpagina’s en geeft suggesties om ze sneller te maken. YSlow vereist de Firebug plugin voor Firefox.

  • BuiltWith

    Gepubliceerd op 16 augustus 2007 in Links.

    Benieuwd welke software, diensten en technieken een site gebruikt, laat dan eens BuiltWith op de site los en je komt een hoop te weten.

  • Archives for a category WordPress plugin

    Gepubliceerd op 15 augustus 2007 in Programming. 195 reacties

    For the new version of this website I wanted to show a list of monthly archives, limited to posts of a specific category. The software used to run this website is WordPress but the wp_get_archives() function, to get a list of archives, does not have the ability to filter on category. So I created the ‘Archives for a category’ plugin that enhances this function to show archive links for a specific category.

    Installation

    1. Download the plugin zip file and unzip the file in a temporary directory.
    2. Put the kwebble_archives_by_cat.php file in your WordPress plugin directory:
      <your wordpress dir>/wp-content/plugins
    3. Activate the plugin ‘Archives for a category’ on the Plugin Management page of the WordPress administration panel.
    4. Optionally disable the canonical URLs from the menu Settings | Kwebble.
      A WordPress feature added in version 2.3, called canonical URLs, redirects browsers on certain URLs. This also happens with the URLs for the archives with a cat parameter. This causes the archive pages to contain posts which do not belong to the selected period.

      To solve this problem the plugin can disable canonical URLs. This uses the technique used in the Disable Canonical URL Redirection plugin Mark Jaquith made. So if you are already using that plugin you don’t need to change the setting for this plugin.
      To disable canonical URLs go to the administration section of your blog, choose Settings and the Kwebble settings. On that page you will find a checkbox to disable canonical URLs.

    Usage

    After installing and activating the plugin the wp_get_archives() function accepts a ‘cat’ parameter to specify the categories of posts to show in the list of archives. The value of the ‘cat’ parameter must be a list of one or more category ID’s, separated by comma’s.

    If you specify the value of a category ID the posts from that category will be used to create the list of archives. If you place a minus sign ‘-’ in front of an ID the posts from that category will be excluded.

    Depending on the number of categories, your use of them and selection of categories to include in the archive list it may be easier to specify all categories to include or just those to exclude.

    You need to make sure the template used to show each archive displays posts from the selected category. I’m using category specific templates on this site, like category-id where id is the ID of the category to display. You can use other templates in the template hierarchy, but make sure the template shows items of the categories you specify.

    At some WordPress version the categories ID’s are no longer visible on the administration pages. You can find the ID of a category by opening the page to edit the category and inspect the URL of that page. The value after cat_ID= is the ID of the category.

    Examples

    Show the default monthly list of archives for category 1:

    <?php wp_get_archives('cat=1'); ?>
    

    The same list, but with posts from categories 1 and 3:

    <?php wp_get_archives('cat=1,3'); ?>
    

    Use posts from all categories except category 2:

    <?php wp_get_archives('cat=-2'); ?>
    

    Use posts from all categories except categories 2 and 8:

    <?php wp_get_archives('cat=-2,-8'); ?>
    

    Create a list of archives for category 1 as a dropdown box:

    <?php wp_get_archives('format=option&cat=1'); ?>
    

    Limitations

    This plugin does not work for weekly archives. The list with archive links is correct, but the links themselves do not include the category. So when used, WordPress will not filter the resulting page on the category. The technical reason is that WordPress does not apply filters when the links for weekly archives are generated, so the plugin can’t change them. Perhaps in a next version of WordPress…

    This plug-in was developed and tested to work correctly with WordPress version 2.7.1, but it probably works with earlier versions back to 2.2.1.

    Older versions

    These are earlier versions of the plugin. Use them only if you have a specific reason for not installing the current version.

    Version 1.4a

    27-03-2009 Download

    • Corrected post count when posts belong to multiple categories.
    • SQL queries now respect the configured SQL table prefix.
    • Templates with multiple calls to wp_get_archives(), with and without ‘cat’ parameter, generate correct URL’s.

    Version 1.4

    22-02-2009 – Added option to exclude categories. Download.

    Version 1.3

    6-01-2008 – Added support for multiple categories. Download.

    Version 1.2

    23-11-2007 – Added support for WordPress 2.3.1. Download.

    Version 1.0

    15-08-2007 – Initial version, works with WordPress 2.2.1. Download.

    Copyright

    Copyright 2007, 2008, 2009 Rob Schlüter. All rights reserved.

    Licensing terms

    • You may use, change and redistribute this software provided the copyright notice above is included.
    • This software is provided without warranty, you use it at your own risk.
    • php
    • plugin
    • wordpress
  • Externe modules mogelijk met Pipes

    Gepubliceerd op 14 augustus 2007 in Links.

    Pipes is uitgebreid met de mogelijkheid externe modules via een URL aan te roepen. Nu kun je je eigen bewerkingen op de data uitvoeren en integreren met de rest van Pipes.

  • Kwebble 3.0

    Gepubliceerd op 13 augustus 2007 in Artikelen.

    Niet schrikken, maar Kwebble is vernieuwd. Na een tijdje sleutelen vind ik het nu goed genoeg om echt te gebruiken. De WordPress versie is up-to-date, alles ziet er weer fris uit, de onderdelen zijn nu duidelijker van elkaar gescheiden en… je kunt nu weer reageren op artikelen.

    Ik hoop dat Akismet plug-in goed genoeg werkt om alle ongewenste commentaarspam tegen te houden. Ik heb die plug-in al een tijdje in gebruik en ik heb nog geen spam binnen zien komen, dus lijkt het goed te werken. Laat de reacties maar komen.

    • kwebble
  • Perseïden 2007

    Gepubliceerd op 10 augustus 2007 in Links.

    13 augustus: hoogtepunt van de jaarlijkse Perseïden meteorenregen.

  • GalaxyZoo

    Gepubliceerd op 9 augustus 2007 in Links.

    Bij GalaxyZoo kan iedereen helpen met het classificeren van sterrenstelsels, door foto’s gemaakt voor de Sloan Digital Sky Survey te beoordelen.

  • Big Brother Awards 2007

    Gepubliceerd op 9 augustus 2007 in Links.

    Nog tot 1 september kun je de persoon, het bedrijf of de overheidsinstelling die zich het afgelopen jaar te buiten is gegaan aan het controleren van burgers en afbreken van hun privacy, nomineren voor een Big Brother Award.

  • Verkeerradar

    Gepubliceerd op 7 augustus 2007 in Links.

    Zoals buienradar.nl laat zien waar het gaat regenen voorspelt de verkeerradar tot 12 uur vooruit de drukte op het Nederlandse wegennet.

  • « Oudere artikelen
  • Nieuwere artikelen »
  • Rubrieken

    • Artikelen
    • Foto's
    • Links
    • Media
    • Overheid
    • Programming
  • Recente Berichten

    • Stanford Web Applications course lectures
    • The importance of knowing Unicode
    • “If you are not paying for it, you’re not the customer; you’re the product being sold.”
    • Inzage in je gegevens bij Facebook
    • Tuning Oracle UCM 11 & Site Studio performance
  • Abonneren

    • Atom feed Artikelen
    • Atom feed Reacties
  • Archief

© Rob Schlüter - Contact