Stoppt die Vorratsdatenspeicherung! Jetzt klicken &handeln! Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:

Archived entries for Uncategorized

hook_form_alter() und CCK fields

Hier gibt es einen Tip wie man via hook_form_alter CCK Felder verändert.

<?php
/**
* Implementation of hook_form_alter().
*/
function example_form_alter(&$form, $form_state, $form_id) {
 // Check for a particular content type's node form.
 if ($form_id == 'example_node_form') {
 // Add an after_build function to process when everything's complete.
 $form['#after_build'][] = 'example_after_build';
 }
}

/**
* Modify CCK form elements on the example node form.
*/
function example_after_build($form, &$form_state) {
 // TODO: Stuff!

 return $form;
}
?>

Typo3: userFunc

Ich bin immer noch dabei langsam, sehr langsam typo3 zu verstehen und der Artikel “Mit TypoScript am Ende – userFunc hilft” des Typo3Bloggers hilft da durchaus weiter.

Mit TypoScript lassen sich bereits eine Menge Anforderungen abdecken, aber leider eben noch nicht alle. Ein paar spezielle Anforderungen, die vielleicht in PHP einfach umzusetzen wären, vermisst man vielleicht regelmäßig (number_format(), stristr(), mktime(), str_replace(), …). In den beiden nachfolgenden Beispielen, versuche ich die Einbindung einer userFunc etwas transparenter zu machen.

Europol: Systematic Data Collection

Nicht nur in der BRD werden fleißig Daten über “Extemisten” gesammelt natürlich sammelt man auch in England. Und wie in der BRD ist ist letztlich jeder erstmal verdächtigt.

Confidential documents reveal how an initiative to gather data on “radicalisation and recruitment” in Islamic terrorist groups has been expanded to incorporate other organisations.
Political activists who have no association with terrorism could now find themselves monitored by authorities mandated to discover information about their friends, family, neighbours, political beliefs, use of the internet and even psychological traits.

Offensichtlich gibt es ein EU Dokument, was wohl bei Statewatch zu finden ist, das diese Datensammelei einfordert:

The documents, obtained by Statewatch, the EU civil liberties monitoring NGO, set out a programme of “systematic data collection” ostensibly geared towards terrorism. But the inclusion of such a broad array of political interests will add to growing concerns that legitimate protest organisations are being subjected to state surveillance.

Browser Packs

Ich verwende zum Testen von Webseiten zur Zeit den IETester habe aber gerade noch zwei andere Projekte gefunden, die ähnliches anbieten: Zum einen BrowserSeal. BrowserSeal beinhaltet mehrere Versionen diverser Browser, neben dem IE, Firefox, Opera und Safari. Das andere Projekt ist die Internet Explorer Collection.

Gleich mal testen.

Positioning with Geolocation

Ein Artikel auf mobile.tuts+ erklärt die ersten Schritte der Nutzung von Geolocation in Smartphones.

  • Browser geolocation and how it works
  • How Asynchronous function calls work
  • How to use the getCurrentPosition API
  • What’s in geolocation data
  • How to fall back on IP address based geolocation when browsers don’t provide native support
  • How to display a map using geolocation data
  • How to use the watchPosition and clearWatch APIs


Copyright © 2004–2009. All rights reserved. – Impressum

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.