<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2germanfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>ocean90s weblog</title> <link>http://ocean90.wphelper.de</link> <description>Blogger, Webentwickler &amp; Webdesigner; ♥ WordPress und jQuery</description> <lastBuildDate>Tue, 10 Nov 2009 19:18:56 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.8.5.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-nc-sa/3.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/ocean90_weblog" type="application/rss+xml" /><feedburner:emailServiceId>ocean90_weblog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Focean90_weblog" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/ocean90_weblog" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Focean90_weblog" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Focean90_weblog" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Focean90_weblog" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Focean90_weblog" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://add.my.yahoo.com/content?lg=de&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Focean90_weblog" src="http://us.i1.yimg.com/us.yimg.com/i/de/my/addtomyyahoo4.gif">Subscribe with Mein Yahoo!</feedburner:feedFlare><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>Typekit – Alternative zur Schrifteinbindung</title><link>http://feedproxy.google.com/~r/ocean90_weblog/~3/lT_Uuf0WUZI/</link> <comments>http://ocean90.wphelper.de/2976/typekit-alternative-zur-schrifteinbindung/#comments</comments> <pubDate>Tue, 03 Nov 2009 07:03:44 +0000</pubDate> <dc:creator>Dominik</dc:creator> <category><![CDATA[Webdesign]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[Javascript]]></category> <category><![CDATA[Typographie]]></category><guid isPermaLink="false">http://ocean90.wphelper.de/?p=2976</guid> <description><![CDATA[Inviduelle Schriftarten können in Webseiten unterschiedlich eingebunden werden.
Bekannten Möglichkeiten sind:Das CSS Attribut @font-face, welches im Moment wieder ganz aktuell ist.
sIFR, eine Alternative die mit Flash die Schriftart darstellt.
Cufón arbeitet hingegen mit SVG, VML, Javascript und JSON.
typeface.js ist eine Alternative die mit normalen HTML/CSS Definition arbeitet und mit Javascript unterstützt wird.Typekit
Eine weitere Möglichkeit ist der neuer [...]]]></description> <content:encoded><![CDATA[<p>Inviduelle Schriftarten können in Webseiten unterschiedlich eingebunden werden.<br
/> Bekannten Möglichkeiten sind:</p><ul><li>Das CSS Attribut <code>@font-face</code>, welches im Moment wieder ganz aktuell ist.</li><li><a
href="http://wiki.novemberborn.net/sifr/">sIFR</a>, eine Alternative die mit Flash die Schriftart darstellt.</li><li><a
href="http://cufon.shoqolate.com/">Cufón</a> arbeitet hingegen mit SVG, VML, Javascript und JSON.</li><li><a
href="http://typeface.neocracy.org/">typeface.js</a> ist eine Alternative die mit normalen HTML/CSS Definition arbeitet und mit Javascript unterstützt wird.</li></ul><p><span
id="more-2976"></span><br
/> <br/></p><h3>Typekit</h3><p>Eine weitere Möglichkeit ist der neuer Dienst <a
href="http://typekit.com/">Typekit</a>. Typekit gibt es <a
href="http://blog.typekit.com/2009/05/27/introducing-typekit/">noch nicht allzu lang</a>. Es arbeit mit dem CSS Attribut <code>@font-face</code>. Das besondere dabei ist, dass die Schriftarten nicht selbst auf den Server gespeichert werden müssen. Diese werden durch zwei Zeilen Javascript von den Typekit Server geladen.<br
/> Vorteil an dieser Variante ist das nicht vorhandene Problem mit den Lizenzen der Schriften. Die Schriften auf Typekit haben alle eine extra Lizenz, welches das Einbinden in Webseiten erlaubt.</p><div
id="attachment_2981" class="wp-caption aligncenter" style="width: 310px"><a
href="http://ocean90.wphelper.de/files/2009/11/typekitfonts.png"  rel="prettyPhoto"><img
src="http://ocean90.wphelper.de/files/2009/11/typekitfonts-300x111.png" alt="Fonts" title="typekitfonts" width="300" height="111" class="size-medium wp-image-2981 post-img" /</a><p
class="wp-caption-text">Fonts</p></div><p>Die Einbindung ist sehr einfach gehalten. Man wählt aus über 60 Schriftarten eine Schriftart aus und fügt sie zu seinem Kit hinzu. Hier kann man</p><div
id="attachment_2986" class="wp-caption alignright" style="width: 160px"><a
href="http://ocean90.wphelper.de/files/2009/11/typekitkit.png"  rel="prettyPhoto"><img
src="http://ocean90.wphelper.de/files/2009/11/typekitkit-150x150.png" alt="Der Kiteditor" title="typekitkit" width="150" height="150" class="size-thumbnail wp-image-2986 post-img" /</a><p
class="wp-caption-text">Der Kiteditor</p></div><ul><li>Selektoren festlegen, auf die die Schrift angewendet werden soll</li><li>weitere Schriftstile, die man zur Verfügung haben will, hinzufügen</li><li>ein Fallback einrichten (Welche Schirft soll verwendet werden, falls es Probleme gibt?)</li><li>Subsets festlegen (kommen demnächst noch dazu)</li></ul><div
class="preview"><p>Wie das ganze dann live aussieht, kann bei meiner kleinen <a
href="http://demo.wphelper.de/typekit/?iframe=true&#038;width=500&#038;height=700" " rel="prettyPhoto">Demo</a> angeschaut werden. Hier habe ich die Schriftart <a
href="http://typekit.com/fonts/79"><em>Silkscreen</em></a> (Titel) und <em><a
href="http://typekit.com/fonts/300">Corn Dog</a></em> (Text) verwendet.</p></div><p>Typekit stellt vier verschiedene Pakete zur Verfügung. Das erste &#8211; kostenlose &#8211; Paket ist für eine Domain gedacht, auf welcher 2 Schriftarten eingebunden werden können. Dazu gibt es 5GB Trafficguthaben. Die drei anderen Pakete kosten zwischen $24,99 und $249,99 im Jahr.</p><div
id="attachment_2982" class="wp-caption aligncenter" style="width: 217px"><a
href="http://ocean90.wphelper.de/files/2009/11/typekitplans.png"  rel="prettyPhoto"><img
src="http://ocean90.wphelper.de/files/2009/11/typekitplans-207x300.png" alt="Übersicht der Upgradepakete" title="typekitplans" width="207" height="300" class="size-medium wp-image-2982 post-img" /</a><p
class="wp-caption-text">Übersicht der Upgradepakete</p></div><p><br/></p><h3>4 Einladungen zu vergeben</h3><p>Interesse geweckt? Dann schnell auf <a
href="typekit.com">typekit.com</a> gehen und anmelden. Ok, so einfach ist es dann doch nicht. Im Moment kommt man nur mit einer Einladung rein.<br
/> Und jetzt haltet euch fest. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_mrgreen.png' alt=':)' class='wp-smiley' /><br
/> Ich habe <strong>4 exclusive Einladungen</strong>, welche ich nun hier, jetzt und in den nächsten Tagen unter allen eingehenden Kommentaren verlosen werde. Kein Tweet, kein Trackback, einfach nur ein Kommentar.<br
/> Die Auslosung findet dann am Samstag statt. Viel Glück! <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_mrgreen.png' alt=':)' class='wp-smiley' /></p><img src="http://feeds.feedburner.com/~r/ocean90_weblog/~4/lT_Uuf0WUZI" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://ocean90.wphelper.de/2976/typekit-alternative-zur-schrifteinbindung/feed/</wfw:commentRss> <slash:comments>7</slash:comments> <feedburner:origLink>http://ocean90.wphelper.de/2976/typekit-alternative-zur-schrifteinbindung/</feedburner:origLink></item> <item><title>Version 3, was steckt dahinter? – Theme deZine</title><link>http://feedproxy.google.com/~r/ocean90_weblog/~3/PqZ_a9vNiaA/</link> <comments>http://ocean90.wphelper.de/2887/version-was-steckt-dahinter-theme-dezine/#comments</comments> <pubDate>Sun, 01 Nov 2009 21:00:07 +0000</pubDate> <dc:creator>Dominik</dc:creator> <category><![CDATA[Intern]]></category> <category><![CDATA[Logo]]></category> <category><![CDATA[Theme]]></category> <category><![CDATA[Themeshift]]></category> <category><![CDATA[Weblog]]></category><guid isPermaLink="false">http://ocean90.wphelper.de/?p=2887</guid> <description><![CDATA[Nach dem Start von Screeeen &#8211; ein kleiner Blog für Fotos, Grafiken, Screenshots und sonstigen Kleinigkeiten &#8211; und dem Relaunch von wphelper.de &#8211; nun ein Portfolio für meine WordPress Aktivitäten &#8211; war dieser Blog als Nächstes dran.
Seit nun schon 7 Tagen ist der Blog im neuem Glanz am laufen. Heute sind die letzten Arbeiten am [...]]]></description> <content:encoded><![CDATA[<p>Nach dem Start von <a
href="http://screeeen.wphelper.de">Screeeen</a> &#8211; ein kleiner Blog für Fotos, Grafiken, Screenshots und sonstigen Kleinigkeiten &#8211; und dem Relaunch von <a
href="http://wphelper.de">wphelper.de</a> &#8211; nun ein Portfolio für meine WordPress Aktivitäten &#8211; war dieser Blog als Nächstes dran.<br
/> Seit nun schon 7 Tagen ist der Blog im neuem Glanz am laufen. Heute sind die letzten Arbeiten am Theme und im Backend abgeschlossen und <strong>ocean90<sub>v3</sub></strong> offiziell gestartet.</p><p><span
id="more-2887"></span></p><p>Wie man vielleicht sieht wurde einiges geändert.<br
/> So habe ich mir die Zeit genommen und alle Artikel neu getaggt und in neue Kategorien eingeordnet. Jetzt gibt es anstatt 40 Kategorien nur noch 24, wobei Fun, Gadgets, Intern, Software, Webdesign, Webentwicklung, WordPress und WWW die Hauptkategorien sind. Die Tags wurden ebenfalls halbiert.<br
/> Leider musste ich dabei auch feststellen, dass durch den Wechsel auf WPMU einige Artikel nicht mehr vollständig waren, diese sind direkt gelöscht worden. Also, sollte jemand auf WPMU wechseln wollen, vorher schnell <a
href="http://ocean90.wphelper.de/2474/entfernte-elemente-in-wordpress-mu-reaktivieren/">diesen Artikel</a> durchlesen. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_wink.png' alt=';)' class='wp-smiley' /></p><p>Zur neuen Version gehört natürlich auch ein neues Layout.<br
/> Diesmal ist es jedoch ein nicht von mir erstelltes Theme, sondern eins von <a
href="http://themeshift.com/">Themeshift.com</a>. Es trägt den schönen Namen <a
href="http://themeshift.com/dezine/">deZine</a>.<br
/> Hinter Themeshift steckt Simon, auch bekannt unter webdemar, der auch <a
href="http://webdemar.com/">einen interessanten Blog</a> über WordPress und Webdesign führt.</p><p><br/></p><h3>Das Theme deZine</h3><p>Wie schon gesagt, stammt das Theme von Themeshift. Warum gerade das Theme?<br
/> Ganz einfach, mir hat es auf den ersten Blick sofort gefallen, sozusagen <em>Liebe auf den ersten Blick</em>. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_rolleyes.png' alt='*kiss*' class='wp-smiley' /><br
/> Dazu führte unter anderem die <strong>übersichtliche Struktur</strong> des Themes &#8211; der Header mit Seiten.- und Kategorienavigation, der breite Contentbereich mit der Sidebar, der Footer mit Widgetunterstüzung &#8211; alles sauber voneinander getrennt.</p><div
id="attachment_2953" class="wp-caption alignright" style="width: 160px"><a
href="http://ocean90.wphelper.de/files/2009/11/dezinewidget.png"  rel="prettyPhoto"><img
src="http://ocean90.wphelper.de/files/2009/11/dezinewidget-150x150.png" alt="Widgets" title="dezinewidget" width="150" height="150" class="size-thumbnail wp-image-2953 post-img" /</a><p
class="wp-caption-text">Widgets</p></div><p>Apropo <strong>Widgets</strong>; dieses ist auch das erste Theme, womit ich die Widgetverwaltung von WordPress nutze, was vielleicht auch daran liegt, dass deZine Widgets unterstützt.<br
/> Mit dem Theme ist es möglich Widgets für verschiedenen Sidebars (Standard, Startseite, Kategoriearchiv, Artikel, Seiten) und für den Footer zu bestimmen, was eine inviduelle Gestaltung zulässt, ohne selbst im Theme Hand anlegen zu müssen.</p><div
id="attachment_2957" class="wp-caption alignleft" style="width: 160px"><a
href="http://ocean90.wphelper.de/files/2009/11/dezinesettings.png"  rel="prettyPhoto"><img
src="http://ocean90.wphelper.de/files/2009/11/dezinesettings-150x150.png" alt="Einstellungen" title="dezinesettings" width="150" height="150" class="size-thumbnail wp-image-2957 post-img" /</a><p
class="wp-caption-text">Übersicht der Einstellungen</p></div><p>Damit auch sonst nicht ins Theme eingegriffen werden muss, bringt das Theme deZine von Haus aus eine Einstellungsseite mit.<br
/> Hier können verschiedene Features, wie zum Beispiel die Slideshow (de)aktiviert werden, ein Farbschema und/oder Hintergrundbild ausgewählt werden oder die Startseite im Bezug auf Spalten und Inhalt angepasst werden.<br
/> Ebenso ist im Theme auch eine Bannerveraltung eingebaut, wodurch es möglich ist sechs Banner auf seinem Blog zu platzieren.</p><div
id="attachment_2964" class="wp-caption alignright" style="width: 160px"><a
href="http://ocean90.wphelper.de/files/2009/11/dezinedropdown.png"  rel="prettyPhoto"><img
src="http://ocean90.wphelper.de/files/2009/11/dezinedropdown-150x150.png" alt="Dropdown Menu" title="dezinedropdown" width="150" height="150" class="size-thumbnail wp-image-2964 post-img" /</a><p
class="wp-caption-text">Dropdown Menu</p></div><p>In Zeiten von Web 2.0 darf natürlich eins nicht fehlen, Javascript, insbesondere <a
href="http://ocean90.wphelper.de/kategorie/webentwicklung/jquery/">jQuery</a>. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_biggrin.png' alt=':D' class='wp-smiley' /><br
/> Mit jQuery wurde zum Beispiel die Slideshow auf der Startseite visualisiert. Bei mir zeigt sie die letzten fünf Beiträge aus der Kategorie WordPress an. Sie ist auch inviduell einstellbar.<br
/> Desweiteren werden die Eingaben der Suche und im Kommetarformular überprüft und gegebenfalls Fehlermeldungen ausgeben. Einfach mal bei der Suche auf der rechten Seite <em>Ok</em> klicken.<br
/> Mithilfe des jQuery Plugins <a
href="http://users.tpg.com.au/j_birch/plugins/superfish/">Superfish</a> sind die Navigationen mit dem Dropdownmenu im Header erstellt worden. Ein <a
href="http://webdemar.com/webdesign/tutorial-jquery-dropdown-menue-mit-superfish/">Tutorial</a> dafür gibt es übrigens bei Simon im Blog.</p><p><strong>Welche Features hat das Theme denn sonst noch?</strong></p><ul><li>Unterstützung für Threaded Comments</li><li>Verschiedene Seitentemplates (zB für eine volle Content Breite oder ein Archiv)</li><li>Unterstützung für Thumbs mit Timthumb</li><li>Verschiedene vordefinierte CSS Stile (zB <code>.download</code>, <code>.info</code> oder <code>.preview</code>)</li><li>Unterstützung für Flickr und Twitter</li><li>Ebenfalls gibts das Theme in drei Sprachen: Deutsch, Englisch und Spanisch</ul><p><a
href="http://themeshift.com/"> <img
src="http://ocean90.wphelper.de/wp-content/themes/dezine/img/ban/themeshift.png" class="alignright post-img" alt="" height="125" width="125" </a></p><p>In der Summe ein Theme, wofür man auch gerne mal die 39€ hinblättert, denn Qualität hat nun mal seinen Preis und das Theme hat Qualität und der Preis ist somit völlig ok. Vorallem auch deshalb, weil man zu dem Theme auch noch einen erstklassigen <a
href="http://themeshift.com/support/">Support</a> bekommt. Kostenlose Updates sind da dann nur noch das i-Tüpfelchen. <em>Hier ist der Kunde noch König!</em></p><p>Solltest du an dieser Stelle nun Interesse an dem Theme deZine bekommen haben, kannst du dir eine vollständige <a
href="http://themeshift.com/demo/dezine/">Demo</a> auf Themeshift anschauen. Beachte auch die <a
href="http://themeshift.com/themes/">anderen tollen Themes</a> von Themeshift.</p><p><br/></p><h3>Das Logo</h3><p>Leider war bei dem Theme kein Logo für meinen Blog dabei (sowas aber auch. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_wink.png' alt=';)' class='wp-smiley' /> ). Somit habe ich einmal meine Gehirnzellen aktiviert und folgendes kam heraus:</p><div
id="attachment_2967" class="wp-caption aligncenter" style="width: 457px"><img
src="http://ocean90.wphelper.de/files/2009/11/ocean90v3.png" alt="Das neue Logo" title="ocean90v3" width="447" height="180" class="size-full wp-image-2967 post-img" /<p class="wp-caption-text">Das neue Logo</p></div><p>Ein Logo welches mit den eigentlich Begriff <em>ocean</em> endlich verschmilzt. Das C ist zum Boot geworden, welches nun auf den Weltmeeren sein Unwesen treibt. Ich finds echt cool. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_biggrin.png' alt=':D' class='wp-smiley' /></p><p><br/></p><h3>Bloggen, bloggen, bloggen</h3><p>Mit diesem Artikel ist also die dritte Runde eröffnet und somit werden hier auch wieder ein paar mehr Artikel rausgehauen, <strike>damit ich den Pagerank von 4 auch weiterhin behalte</strike>.<br
/> <em>Version 3, was steckt dahinter? &#8211; Theme deZine</em> ist übrigens der erste Teil von der Artikelserie <em>Version 3, was steckt dahinter?</em>.<br
/> Also, <a
href="http://ocean90.wphelper.de/feed/">dran</a> <a
href="http://twitter.com/ocean90">bleiben</a>! <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_mrgreen.png' alt=':)' class='wp-smiley' /></p><img src="http://feeds.feedburner.com/~r/ocean90_weblog/~4/PqZ_a9vNiaA" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://ocean90.wphelper.de/2887/version-was-steckt-dahinter-theme-dezine/feed/</wfw:commentRss> <slash:comments>8</slash:comments> <feedburner:origLink>http://ocean90.wphelper.de/2887/version-was-steckt-dahinter-theme-dezine/</feedburner:origLink></item> <item><title>Desktop Gadget: Apple Store Checker</title><link>http://feedproxy.google.com/~r/ocean90_weblog/~3/4tTYDC2rcRk/</link> <comments>http://ocean90.wphelper.de/2801/desktop-gadget-apple-store-checker/#comments</comments> <pubDate>Wed, 21 Oct 2009 13:55:10 +0000</pubDate> <dc:creator>Dominik</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Apple Store]]></category> <category><![CDATA[Download]]></category> <category><![CDATA[Gadget]]></category> <category><![CDATA[Windows]]></category><guid isPermaLink="false">http://ocean90.wphelper.de/?p=2801</guid> <description><![CDATA[Der Apple Store. Wenn er offline ist, spielen (fast) alle verrückt und sind gepannt darauf, mit was Apple uns dieses Mal überrascht.
Besitzt man einen Account bei Twitter bekommt man schnell mit, wenn Apple den Store mal wieder geschlossen hat. Doch nicht jeder ist schon bei Twitter angekommen.Aus diesem Grund machen sich pfiffige Entwickler an die [...]]]></description> <content:encoded><![CDATA[<p>Der <a
href="http://store.apple.com/de">Apple Store</a>. Wenn er offline ist, spielen (fast) alle verrückt und sind gepannt darauf, mit was Apple uns dieses Mal überrascht.</p><p>Besitzt man einen Account bei <a
href="http://twitter.com/ocean90">Twitter</a> bekommt man schnell mit, wenn Apple den Store mal wieder geschlossen hat. Doch nicht jeder ist schon bei Twitter angekommen.</p><p><span
id="more-2801"></span></p><p>Aus diesem Grund machen sich pfiffige Entwickler an die Arbeit und schreiben kleine Programme, welche den Status des Stores überprüfen. Dies hat zum Beispiel auch <a
href="http://ebiene.de">Sergej</a> getan. Für die Apple Gemeinde gibt es deshalb ein schlichtes <a
href="http://www.apple.com/downloads/dashboard/status/applestorecheck_sergejmueller.html">Dashboard Widget für Mac OS X</a>. Den Download sowie weitere Infos können <a
href="http://www.apfelzeug.de/4/dashboard-widgetapple-store-check/">in diesem Artikel</a> gefunden werden.</p><p>So, was macht die Windows Gemeinde? Interessieren sich nicht für den Apple Store. Nicht ganz, denn es gibt auch Leute, wie meine Wenigkeit, welche sich auch für Apple und den Apple Store interessieren, zum Beispiel, weil sie ein iPhone oder einen iPod besitzen.</p><p>Leider kann das Widget von Sergej aber nicht unter Windows eingesetzt werden. Jedoch gibt es seit Windows Vista die Gadgets für die Sidebar und in Windows 7 für den gesamten Desktop.</p><h3>Apple Store Checker</h3><p>Deshalb habe ich mich an ein Gadget für Windows rangesetzt, welches auch den Apple Store überwachen kann. Herausgekommen ist der <em>Apple Store Checker</em>.</p><p><img
src="http://ocean90.wphelper.de/files/2009/10/applestorechecker.JPG" alt="applestorechecker" title="applestorechecker" width="348" height="348" class="aligncenter size-full wp-image-2804 post-img" /</p><p>Mit diesem Gadget ist es möglich den Store innerhalb eines bestimmten Intervalls zu prüfen. Bei einer Veränderungen wird die Farbe des Gadgets geändert und wenn gewünscht eine Infobox angezeigt werden. So verpasst man ganz bestimmt keine Offtime mehr.</p><h4>Installation und Download</h4><ul><li><em>AppleStoreChecker.gadget</em> herunterladen</li><li><em>AppleStoreChecker.gadget</em> installieren</li><li>Sollte das Gadget nicht direkt erscheinen, unter Windows Vista in der Sidebar auf das Plus klicken oder unter Windows 7 Rechtsklick auf den Desktop und dort Minianwendungen auswählen</li></ul><p
class="download" ><strong>Download</strong><br/>Version: 0.1<br/>Link: <a
href="http://ocean90.wphelper.de/dl/26" title="Apple Store Checker"> Apple Store Checker</a><br/>17 mal geladen</p><p>Das Gadget wird auf Wunsch gerne weiterentwickelt und Fehler werden natürlich schnellstmöglichst behoben.</p><p>Feedback ist gern gesehen. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_biggrin.png' alt=':D' class='wp-smiley' /></p><img src="http://feeds.feedburner.com/~r/ocean90_weblog/~4/4tTYDC2rcRk" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://ocean90.wphelper.de/2801/desktop-gadget-apple-store-checker/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://ocean90.wphelper.de/2801/desktop-gadget-apple-store-checker/</feedburner:origLink></item> <item><title>Entfernte Elemente in WordPress MU reaktivieren</title><link>http://feedproxy.google.com/~r/ocean90_weblog/~3/WIPhtBIUenI/</link> <comments>http://ocean90.wphelper.de/2474/entfernte-elemente-in-wordpress-mu-reaktivieren/#comments</comments> <pubDate>Sat, 19 Sep 2009 12:02:31 +0000</pubDate> <dc:creator>Dominik</dc:creator> <category><![CDATA[WordPress MU]]></category> <category><![CDATA[Codeschnipsel]]></category> <category><![CDATA[Editor]]></category> <category><![CDATA[Filterung]]></category> <category><![CDATA[Pingdienste]]></category><guid isPermaLink="false">http://ocean90.wphelper.de/?p=2474</guid> <description><![CDATA[Seit dem Wechsel auf den neuen Server verwende ich nicht mehr das normale WordPress, sondern WordPress MU.
WordPress MU wurde ursprünglich für wordpress.com erstellt und kann Hunderte von Blogs mit nur einer Installation verwalten, optimal für Bloghoster.
Wer schonmal einen Blog bei wordpress.com betrieben hat, konnte sehen, dass einige Funktionen deaktiviert sind, welche aber beim selbstgehosteten Blog [...]]]></description> <content:encoded><![CDATA[<p>Seit dem Wechsel auf den neuen Server verwende ich nicht mehr das normale WordPress, sondern WordPress MU.</p><p>WordPress MU wurde ursprünglich für <a
href="http://wordpress.com">wordpress.com</a> erstellt und kann Hunderte von Blogs mit nur einer Installation verwalten, optimal für Bloghoster.</p><p>Wer schonmal einen Blog bei wordpress.com betrieben hat, konnte sehen, dass einige Funktionen deaktiviert sind, welche aber beim selbstgehosteten Blog existieren. Das ganze ist natürlich nur, damit keiner mit seinem Blog Unfug betreibt; es dient also der Sicherheit.</p><p><span
id="more-2474"></span></p><p>Wer allerdings WordPress MU nur für sich selbst nutzt, möchte die eine oder andere Funktion gerne (wieder) haben. So einer bin ich und deshalb eine kleine Liste mit Tricks, wie fehlende Elemente wieder aktiviert werden können.</p><p><br/></p><h3>Button: Medien einbetten</h3><p><img
src="http://ocean90.wphelper.de/files/2009/09/medien_einbetten.png" alt="medien_einbetten" title="medien_einbetten" width="276" height="104" class="alignleft size-full wp-image-2510 post-img" /</p><p>Damit via WYSIWYG Editor wieder Flash, Quicktime oder andere Medien eingebunden werden können, muss ein Plugin mit dem Namen <em>Enable embedded media functionality</em> aktiviert werden. Das Plugin gibt es auf <a
href="http://www.iliveinperego.com/wp-content/uploads/media_button.php-source">iliveinperego.com</a>. Inhalt in eine .php Datei kopieren und diese im <em>/wp-content/mu-plugins/</em> Verzeichnis ablegen.<br
/> Das Plugin wird automatisch aktiv und der Button sollte wieder erscheinen.</p><p><br/></p><h3>Button: Mediaupload</h3><p><img
src="http://ocean90.wphelper.de/files/2009/09/mediaupload.png" alt="mediaupload" title="mediaupload" width="248" height="65" class="alignleft size-full wp-image-2513 post-img" /</p><p>Wo man in WordPress alle vier Buttons sieht, existiert nach der Installation von WordPress MU nur ein Button zum Dateien hinzufügen. Sollen alle vier wieder angezeigt werden, müssen diese in den Einstellungen einfach aktiviert werden.<br
/> Die Einstellung findet man unter <em>/wp-admin/wpmu-options.php</em> (Mediaupload-Button).</p><p><br/></p><h3>Filterung von Artikelinhalten</h3><p><img
src="http://ocean90.wphelper.de/files/2009/09/code_filter.PNG" alt="code_filter" title="code_filter" width="288" height="82" class="alignleft size-full wp-image-2524 post-img" /<p>WordPress MU filtert den Inhalt von Beiträgen und Seiten stärker als beim normalen WordPress. So werden aus Sicherheitsgründen zum Beispiel  alle PHP-Codeschnipsel entfernt oder zerstört. Damit WordPress MU dies nicht mehr macht, kann das Plugin <em><a
href="http://wordpress.org/extend/plugins/unfiltered-mu/">Unfiltered MU</a></em> genutzt werden. Laden, installieren, aktivieren, fertig. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_wink.png' alt=';)' class='wp-smiley' /></p><p>Hinweis: Dieses Plugin sollte schon <strong>vor dem Import</strong> aktiviert werden!</p><p><br/></p><h3>Theme und Plugin Editor</h3><p><img
src="http://ocean90.wphelper.de/files/2009/09/editor.PNG" alt="editor" title="editor" width="171" height="73" class="alignleft size-full wp-image-2527 post-img" /</p><p>Damit nicht jeder am Theme oder am Plugin rumspielen kann und schadhaften Code einsetzen kann, wurde der Plugin und Theme Editor deaktiviert. Durch ein paar Zeilen kann man die Links zu den Editoren wieder anzeigen lassen:</p><p>Erstelle eine PHP Datei mit einem Namen deiner Wahl. Kopiere anschließend folgende Zeilen in diese Datei, speichere ab und lade sie ins <em>/wp-content/mu-plugins/ </em>Verzeichnis.</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> readd_editor_menu<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #990000;">global</span> <span style="color: #000088;">$submenu</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$submenu</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'wpmu-admin.php'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Theme Editor'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'edit_themes'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'theme-editor.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$submenu</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'wpmu-admin.php'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Plugin Editor'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'edit_plugins'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'plugin-editor.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_admin_menu'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'readd_editor_menu'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">99</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div></div></div><p>Die Links werden dadurch als Submenu vom Admin Menu angezeigt.</p><p><br/></p><h3>Pingdienste wieder eintragen</h3><p><img
src="http://ocean90.wphelper.de/files/2009/09/remote_publishing.PNG" alt="remote_publishing" title="remote_publishing" width="228" height="90" class="alignleft size-full wp-image-2537 post-img" /</p><p>macpres hatte mich gefragt, ob man nicht auch die Rubrik <em>Updare-Services</em> wieder reaktivieren kann. Bis dato hatte ich garnicht gemerkt, dass diese auch weg war. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_biggrin.png' alt=':D' class='wp-smiley' /><br
/> Wie in meinem Kommentar schon angesprochen, gibt es ein <a
href="http://premium.wpmudev.org/project/update-services">kostenpflichtiges Plugin</a> dafür. Bezahlen für ein paar Zeilen Code? Wohl eher nicht. Also habe ich mich kurz rangesetzt und eine kostenlose Variante gebastelt. Genauso gut, nur kostenlos. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_wink.png' alt=';)' class='wp-smiley' /></p><p>Um die Box wieder zum laufen zu bringen einfach die <em>pingsites.php</em> runterladen und ins <em>/wp-content/mu-plugins/</em> Verzeichnis hochladen. Fertig, jetzt können wieder eigene Pingservices eingetragen werden.</p><p><p
class="download" ><strong>Download</strong><br/>Version: 1.0<br/>Link: <a
href="http://ocean90.wphelper.de/dl/23" title="Pingsites"> Pingsites</a><br/>48 mal geladen</p><br
/> <br/></p><p>Nach diesen Tipps wünsche ich noch ein schönes Wochenende.<br
/> Euer ocean90 <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_biggrin.png' alt=':D' class='wp-smiley' /></p><img src="http://feeds.feedburner.com/~r/ocean90_weblog/~4/WIPhtBIUenI" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://ocean90.wphelper.de/2474/entfernte-elemente-in-wordpress-mu-reaktivieren/feed/</wfw:commentRss> <slash:comments>8</slash:comments> <feedburner:origLink>http://ocean90.wphelper.de/2474/entfernte-elemente-in-wordpress-mu-reaktivieren/</feedburner:origLink></item> <item><title>Tutorial: Ajax Kontaktformular mit jQuery und PHP</title><link>http://feedproxy.google.com/~r/ocean90_weblog/~3/k6J-UAPHwZo/</link> <comments>http://ocean90.wphelper.de/2478/tutorial-ajax-kontaktformular-mit-jquery-und-php/#comments</comments> <pubDate>Tue, 25 Aug 2009 07:00:26 +0000</pubDate> <dc:creator>Dominik</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Ajax]]></category> <category><![CDATA[Anleitung]]></category> <category><![CDATA[Demo]]></category> <category><![CDATA[Download]]></category> <category><![CDATA[Formular]]></category><guid isPermaLink="false">http://ocean90.wphelper.de/?p=2478</guid> <description><![CDATA[Nach langem mal wieder ein Tutorial zu jQuery.
Diesmal, wie man mit Hilfe von HTML, PHP und jQuery ein Kontaktformular erstellen kann. Gewünscht hatte es sich Peter nach dem Beitrag zu meinem Portfolio, wo ein solches Kontaktformular vorhanden ist.Das Grundgerüst
Für das Formular benötigen wir erstmal ein HTML Gerüst mit ein paar Eingabefeldern. In diesem Tutorial werden [...]]]></description> <content:encoded><![CDATA[<p>Nach langem mal wieder ein Tutorial zu <a
href="http://ocean90.wphelper.de/878/jquery-ein-besonderes-framework/">jQuery</a>.</p><p>Diesmal, wie man mit Hilfe von HTML, PHP und jQuery ein Kontaktformular erstellen kann. Gewünscht hatte es sich <a
href="http://schnaberlack.de/">Peter</a> nach dem <a
href="http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/">Beitrag zu meinem Portfolio</a>, wo ein solches Kontaktformular vorhanden ist.</p><p><span
id="more-2478"></span></p><p></p><p></p><p></p><h3>Das Grundgerüst</h3><p>Für das Formular benötigen wir erstmal ein HTML Gerüst mit ein paar Eingabefeldern. In diesem Tutorial werden wir ein Formular erstellen, welches folgende Felder bekommt: <em>Name</em>,<em> E-Mail Adresse</em>, <em>Webseite</em>, <em>Betreff</em> und <em>Nachricht</em>.</p><p></p><p>Hier nun ein Beispiel, wie ein solches Formular aussehen kann:</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;contact.php&quot;</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;contactform&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">onFocus</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if(this.value=='Name*'){this.value=''};&quot;</span> <span style="color: #000066;">onBlur</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if(this.value==''){this.value='Name*'};&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Name*&quot;</span> <span style="color: #000066;">size</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;22&quot;</span> <span style="color: #000066;">tabindex</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">onFocus</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if(this.value=='E-Mail Adresse*'){this.value=''};&quot;</span> <span style="color: #000066;">onBlur</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if(this.value==''){this.value='E-Mail Adresse*'};&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;E-Mail Adresse*&quot;</span> <span style="color: #000066;">size</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;22&quot;</span> <span style="color: #000066;">tabindex</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;url&quot;</span> <span style="color: #000066;">onFocus</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if(this.value=='Webseite'){this.value=''};&quot;</span> <span style="color: #000066;">onBlur</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if(this.value==''){this.value='Webseite'};&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;url&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Webseite&quot;</span> <span style="color: #000066;">size</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;22&quot;</span> <span style="color: #000066;">tabindex</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">onFocus</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if(this.value=='Betreff*'){this.value=''};&quot;</span> <span style="color: #000066;">onBlur</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if(this.value==''){this.value='Betreff*'};&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;title&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;title&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo _(&quot;</span>Betreff*<span style="color: #ff0000;">&quot;);?&gt;</span></span>&quot; size=&quot;22&quot; tabindex=&quot;4&quot; /&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">textarea</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;message&quot;</span> <span style="color: #000066;">tabindex</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;message&quot;</span> <span style="color: #000066;">cols</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;50&quot;</span> <span style="color: #000066;">rows</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;10&quot;</span>  <span style="color: #000066;">onFocus</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if(this.value=='Nachricht*'){this.value=''};&quot;</span> <span style="color: #000066;">onBlur</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if(this.value==''){this.value='Nachricht*'};&quot;</span> &gt;</span>Nachricht*<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">textarea</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">small</span>&gt;</span>Felder mit * müssen ausgefüllt werden.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">small</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">tabindex</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;6&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Abschicken&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span></pre></div></div></div></div><p>Sollte das Formular später erfolgreich abgeschickt worden sein, kann man eine Erfolgsmeldung erscheinen lassen. Beispiel:</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;success&quot;</span>&gt;</span>Die Nachricht wurde erfolgreich versendet.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span></pre></div></div></div></div><p>Es kann auch jedes andere Element verwendet werden, sofern die Klasse <em>success</em> existiert.</p><p></p><h3>Post Daten verarbeiten</h3><p>Obige Form sendet die Datei an eine <em>contact.php</em>. Hier werden die geschickten Daten einer Überprüfung unterzogen.</p><p>So kann geprüft werden, ob die E-Mail Adresse valide ist, überhaupt Daten eingetragen wurden oder ob die Pflichtfelder ausgefüllt wurden.</p><p> <img
src="http://ocean90.wphelper.de/files/2009/08/ajax_kontakt.png" alt="ajax_kontakt" title="ajax_kontakt" width="192" height="158" class="alignright size-full wp-image-2504 post-img" /</p><p><strong>Der Name:</strong></p><p>In dem Formular ist der Name als Pflichtfeld deklariert, also soll überprüft werden, ob das Feld ausgefüllt wurde. Dies kann man mit folgenden Zeilen machen:</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;name*&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;Error_1&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div></div></div><p>Mit <em>isset</em> wird überprüft, ob die Variable existiert, mit dem zweiten Teil wird überprüft, ob die Variable nicht den vorher definierten Inhalt des Feldes hat. Sollte dem nicht so sein, wird der Inhalt in die Variable <em>$name</em> übergeben. Andersfalls wird der Fehlercode <em>Error_1</em> ausgeben und die Überprüfung mit <em>exit</em> beendet.</p><p></p><p><strong>Die E-Mail Adresse</strong></p><p>In dem Formular ist der Name ebenfalls als Pflichtfeld deklariert und soll nun mir folgendem Code überprüft werden:</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;e-mail adresse*&quot;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;!^w[w|.|-|+]+@w[w|.|-]+.[a-zA-Z]{2,4}$!&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$email</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;Error_2&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div></div></div><p>Bei dieser Überprüfung wird die E-Mail Adresse ebenfalls auf ihre Validität hin überprüft. Ist alles in Ordnung wird der Inhalt in die Variable <em>$email</em> gespeichert, ansonsten wird der Fehlercode <em>Error_2</em> ausgegeben.</p><p></p><p><strong>Die Webseite</strong></p><p>Die Angabe der Webseite ist freiwillig, sodass hier keine größere Überprüfung stattfinden muss.</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;url&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;url&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;webseite&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;url&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div></div></div><p>Sollte die Domain nicht dem vorher definierten Inhalt entsprechen, wird sie in die Variable <em>$url</em> abgelegt. Wer trotzdem die Domain überprüfen möchte, kann sich bei Franks Artikel <em><a
href="http://bueltge.de/php-regular-expression-schnipsel/917/">PHP Regular Expression Schnipsel</a></em> Punkt 7 anschauen.</p><p></p><p><strong>Der Betreff</strong></p><p>Beim Betreff haben wir wieder den selben Fall wie beim Namen:</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;title&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;title&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;betreff*&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;title&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;Error_3&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div></div></div><p>Bei richtiger Eingabe wird der Inhalt in <em>$title</em> gespeichert, ansonsten erscheint der Fehlercode <em>Error_3</em>.</p><p></p><p><strong>Die Nachricht</strong></p><p>Die Nachricht ist ebenso ein Pflichtfeld und wird dementsprechen geprüft.</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;message&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;message&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;nachricht*&quot;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;message&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;message&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;Error_4&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div></div></div><p>Mit <em>(strlen($_POST["message"]) >= 20)</em> wird die Zeichenanzahl geprüft, sind weniger als 20 Zeichen vorhanden, wird der Fehlercode <em>Error_4</em> ausgegeben. Die Anzahl kann beliebg gesetzt werden oder auch komplett weggelassen werden.</p><p></p><p><strong>E-Mail versenden</strong></p><p>Nachdem die ganzen Daten geprüft und in Variablen gespeichert wurde, kann die E-Mail verschickt werden. Dazu wird die <a
href="http://www.php.net/manual/de/function.mail.php">mail()</a> Funktion von PHP benutzt. Der Code sieht somit folgendermaßen aus:</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$myemail</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Deine.Email@mailer.de&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;URL: <span style="color: #006699; font-weight: bold;">$urlnn</span><span style="color: #006699; font-weight: bold;">$message</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mail</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$myemail</span><span style="color: #339933;">,</span><span style="color: #000088;">$title</span><span style="color: #339933;">,</span><span style="color: #000088;">$content</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;From: <span style="color: #006699; font-weight: bold;">$name</span> &lt;<span style="color: #006699; font-weight: bold;">$email</span>&gt;&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;Ok&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;Error_5&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div></div></div><p>Wurde die E-Mail erfolgreich verschickt, wird <em>Ok</em> ausgeben, andersfalls kommt der Fehlercode <em>Error_5</em>.</p><p>Jetzt ist das eigentliche Formular schon fertig. Wird das Formular in diesem Zustand abgeschickt, wird die <em>contact.php</em> geladen und die gibt die entsprechende Meldung aus. Damit die <em>contact.php</em> nicht direkt geladen wird, wird ein ein bisschen Javascript benötigt.</p><p></p><p></p><h3>Daten mit jQuery abschicken</h3><p>Für das Senden der Daten kann man die einfache Ajax Funktion <a
href="http://docs.jquery.com/Ajax/jQuery.post">jQuery.post</a> verwenden.</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#contactform'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">submit</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		action <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'action'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#submit'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">after</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;img src=&quot;img/loading.gif&quot; class=&quot;loading&quot;&gt;'</span><span style="color: #009900;">&#41;</span>
					.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'disabled'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'disabled'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;input,textarea&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;error&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div></div></div><p>Mit diesem Codeschnipsel wird beim drücken des Buttons der Inhalt des Attributs <em>action</em> abgerufen, welcher in diesem Fall <em>contact.php</em> ist. Danach wird nach dem Button ein <a
href="http://loadinfo.net/">Ladebild</a> eingeblendet und der Button deaktiviert. Ebenso wird die Klasse <em>error </em>entfernt. Woher die kommt sieht man später.</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="javascript" style="font-family:monospace;">		$.<span style="color: #660066;">post</span><span style="color: #009900;">&#40;</span>action<span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#contactform&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">serialize</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></pre></div></div></div></div><p>Mit dieser Zeile wird die <em>contact.php</em> aufgerufen und mit Hilfe von <a
href="http://docs.jquery.com/Ajax/serialize">serialize()</a> werden die Formulardaten als Parameter mitgeschickt. Der letzte Teil ist die Callback Funktion. Die Antwort der <em>contact.php</em> ist jetzt in <em>data</em> gespeichert.</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="javascript" style="font-family:monospace;">                       <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>data<span style="color: #339933;">==</span><span style="color: #3366CC;">'Ok'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#contactform'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">600</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
					$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.success&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">600</span><span style="color: #009900;">&#41;</span>
				<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>data<span style="color: #339933;">==</span><span style="color: #3366CC;">'Error_1'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input#name'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;error&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>data<span style="color: #339933;">==</span><span style="color: #3366CC;">'Error_2'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input#email'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;error&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>data<span style="color: #339933;">==</span><span style="color: #3366CC;">'Error_3'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input#title'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;error&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>data<span style="color: #339933;">==</span><span style="color: #3366CC;">'Error_4'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'textarea#message'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;error&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span></pre></div></div></div></div><p>Mithilfe dieser Funktion wird der Inhalt von <em>data</em> geprüft, welche den Inhalt <em>Error_1</em> &#8211; <em>Error_5</em> und <em>Ok</em> haben kann.</p><p>Bei dem Ausdruck <em>Ok</em> wird das Kontaktformular &#8216;aufgerollt&#8217; und die Erfolgsmeldung wird angezeigt; das Element, welches die Klasse <em>success</em> besitzt.</p><p>Ist der Inhalt jedoch einer der Fehlercodes, so wird dem entsprechendem Feld die Klasse <em>error</em> gegeben (<a
href="http://docs.jquery.com/Attributes/addClass">addClass</a>) und das Feld blinkt zweimal auf (<a
href="http://docs.jquery.com/Effects/animate#paramsdurationeasingcallback">animate</a>).</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="javascript" style="font-family:monospace;">			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#contactform #submit'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'disabled'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#contactform img.loading'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">500</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div></div></div><p>Mit diesen letzten Zeilen wird der Button vom Kontaktformular wieder aktiviert und das Ladebildchen entfernt. Mit der Zeile <em>return false;</em> wird verhindert, dass die Daten normal an die <em>contact.php</em> gesendet werden.</p><p></p><p></p><h3>Extras, Demo und Download</h3><p>Jetzt ist das Ajax Kontaktformular mit jQuery und PHP soweit fertig. Für dem letzten Feinschliff gehört nun noch ein bisschen CSS. Die Klassen, die das Formular verwendet können zum Beispiel folgendermaßen gestylt werden:</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.error</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FF8080</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#F00</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.success</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">700</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div></div></div><p></p><p>Wer das ganze nun nochmal Live sehen möchte, kann sich die Demo anschauen oder aber auch die Demo herunterladen:</p><p
class="preview">Wie das ganze live aussieht.<br/><a
href="http://demo.wphelper.de/ajaxkontaktform/?iframe=true&#038;width=450&#038;height=600" title="Ajax Kontaktformular" rel="prettyPhoto">Ajax Kontaktformular</a></p><p
class="download" ><strong>Download</strong><br/>Version: 1.0<br/>Link: <a
href="http://ocean90.wphelper.de/dl/21" title="Ajax Kontaktformular"> Ajax Kontaktformular</a><br/>299 mal geladen</p><p>Dieses Formular ist natürlich von jedem individuell erweiterbar, so können zum Beispiel mehr Überprüfungen stattfinden oder die Fehlercodes erhöhen um den Nutzer aussagekräftige Fehlermeldungen zu präsentieren.</p><p></p><p>Ich hoffe das Tutorial war hilfreich und wünsche viel Spaß beim nachbauen. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_mrgreen.png' alt=':)' class='wp-smiley' /></p><p>Euer Dominik</p><img src="http://feeds.feedburner.com/~r/ocean90_weblog/~4/k6J-UAPHwZo" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://ocean90.wphelper.de/2478/tutorial-ajax-kontaktformular-mit-jquery-und-php/feed/</wfw:commentRss> <slash:comments>19</slash:comments> <feedburner:origLink>http://ocean90.wphelper.de/2478/tutorial-ajax-kontaktformular-mit-jquery-und-php/</feedburner:origLink></item> <item><title>“Threaded Comments” gehen beim Import durch WordPress verloren</title><link>http://feedproxy.google.com/~r/ocean90_weblog/~3/cd1CjS-iUVQ/</link> <comments>http://ocean90.wphelper.de/2430/threaded-comments-gehen-beim-import-durch-wordpress-verloren/#comments</comments> <pubDate>Tue, 18 Aug 2009 21:23:34 +0000</pubDate> <dc:creator>Dominik</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[Bug]]></category> <category><![CDATA[Import]]></category> <category><![CDATA[Kommentare]]></category> <category><![CDATA[Lösung]]></category> <category><![CDATA[Trac]]></category><guid isPermaLink="false">http://ocean90.wphelper.de/?p=2430</guid> <description /> <content:encoded><![CDATA[<p><img
src="http://ocean90.wphelper.de/files/2009/08/wordpress_import.png" alt="wordpress_import" title="wordpress_import" width="266" height="169" class="alignright size-full wp-image-2431 post-img" /</p><p>Wie schon im <a
href="http://ocean90.wphelper.de/2372/da-bin-ich-wieder/">letzten Artikel</a> geschrieben, bin ich nun auf <a
href="http://mu.wordpress.org/">Wordpress MU</a> unterwegs, was daran liegt, dass ich mehrere Blogs auf wphelper.de betreiben möchte.<br
/> Damit ich meine alten Artikel, Kommentare, Anhänge und sonstige Daten in den neuen Blog bekomme, habe ich die interne Ex- und Import Funktion von WordPress benutzt. Zuerst wollte ich es über ein SQL Dump erledigen, musste dann aber feststellen, dass WordPress MU an einigen Stellen eine andere Datenbankstruktur als das &#8220;normale&#8221; WordPress hat.</p><p><span
id="more-2430"></span></p><p><br/></p><h3>Der Export</h3><p>Der Export verlief super und am Ende hatte ich eine 5,53 MB große XML Datei mit den Daten vom Blog auf der Platte. Zu den Daten gehörten 207 Beiträge, 1.250 Kommentare, 9 Seiten, 37 Kategorien und 404 Tags sowie hunderte von benutzerdefinierten Feldern.</p><p><br/></p><h3>Der Import</h3><p>Nun der Import. In manchen Blogs und Foren hatte ich von verschiedene Probleme gelesen, wie zum Beispiel, dass der Import zwischendurch einfach abgebrochen war, somit hatte ich mit meiner doch schon größeren Datei meine Bedenken gehabt.</p><p>Probieren geht bekannterweiser über Studieren, also die XML Datei in die Importfunktion eingefügt und es verlief überraschend gut.</p><p><br/></p><p><br/></p><p><img
src="http://ocean90.wphelper.de/files/2009/08/wordpress_import_beispiel.PNG" alt="wordpress_import_beispiel" title="wordpress_import_beispiel" width="397" height="202" class="aligncenter size-full wp-image-2432 post-img" /</p><p
style="text-align:center"><em>Beispiel eines Imports durch WordPress</em></p><p><br/></p><p><br/></p><p>Was mir persönlich gut gefiel und was mir neu war, dass die Import Schnittstelle auch die Anhänge auf den neuen Server direkt geladen hat. Tolle Sache! <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_cool.png' alt='8)' class='wp-smiley' /></p><p><br/></p><p><br/></p><p><img
src="http://ocean90.wphelper.de/files/2009/08/wordpress_import_anhang.png" alt="wordpress_import_anhang" title="wordpress_import_anhang" width="634" height="69" class="aligncenter size-full wp-image-2434 post-img" /</p><p
style="text-align:center"><em>Beispiel eines Imports von Anhängen durch WordPress</em></p><p><br/></p><p><br/></p><h3>&#8220;Threaded Comments&#8221;</h3><p>So weit so gut. Heute musste ich allerdings feststellen, dass durch den Import die Kommentarstruktur &#8211; &#8220;Threaded Comments&#8221;, das Feature seit WordPress 2.7 &#8211; zerstört war bzw. nicht mehr existiert hatte.</p><p>Das wollte ich natürlich so bestehen lassen und begab mich auf die Suche nach dem Grund. In der Datenbank sah ich dann, dass die IDs in der Spalte <em>comment_parent</em> beim Import nicht auf die neuen Kommentar-IDs angepasst wurden.</p><p>Also mal Herrn Google gefragt, wo ich dann auch auf das <a
href="http://core.trac.wordpress.org/ticket/8019">Ticket 8019</a> im <a
href="http://core.trac.wordpress.org/">WordPress Trac</a> gestoßen bin.</p><p>Leider wurde das Ticket im Moment nur von einem Release zum anderen geschickt und noch nicht direkt in WordPress behoben. Der User joostdevalk hat jedoch einen <a
href="http://core.trac.wordpress.org/ticket/8019#comment:6">Patch</a> bereit gestellt, welchen ich in WordPress und WordPress MU mal ausprobiert habe.</p><p>Das Ergebnis war positiv, die Kommentare werden nun richtig importiert und die &#8220;Threaded Comments&#8221; gehen nicht verloren.</p><p><br/></p><h3>Der Fix</h3><p>Der Bug befindet sich in der Datei <em>wordpress.php</em> im <em>/wp-admin/import/</em> Verzeichnis. Die Änderungen können in <a
href="http://core.trac.wordpress.org/attachment/ticket/8019/wordpress.php.diff">hier</a> nachgelesen werden.</p><p>Wer die Datei nicht selbst bearbeiten möchte kann die folgende Zip-Datei runterladen und den Inhalt mit der originalen <em>wordpress.php</em> ersetzen. Vorher aber ein <strong>Backup</strong> der alten <em>wordpress.php</em> anlegen!</p><p
class="download" ><strong>Download</strong><br/>Version: <br/>Link: <a
href="http://ocean90.wphelper.de/dl/20" title="wordpress.php_fix"> wordpress.php_fix</a><br/>48 mal geladen</p><p><br/></p><p>Mit diesem Fix klappt der Import mit den <strike>Nachbarn</strike> &#8220;Threaded Comments&#8221; wieder. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_smile.png' alt='=)' class='wp-smiley' /></p><p>Hoffen wir aber auch, dass es in WordPress 2.9 endlich fest integriert wird.</p><p>Ich hoffe ich kann damit einigen helfen, bevor sie die Importfunktion nutzen. Ich hatte es leider zu spät gemerkt und durfte heute 1 Stunden an der Datenbank fummeln um die alten und neuen Kommentare miteinander zu vereinigen. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_cry.png' alt='*heul*' class='wp-smiley' /></p><p>Euer Dominik</p><img src="http://feeds.feedburner.com/~r/ocean90_weblog/~4/cd1CjS-iUVQ" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://ocean90.wphelper.de/2430/threaded-comments-gehen-beim-import-durch-wordpress-verloren/feed/</wfw:commentRss> <slash:comments>4</slash:comments> <feedburner:origLink>http://ocean90.wphelper.de/2430/threaded-comments-gehen-beim-import-durch-wordpress-verloren/</feedburner:origLink></item> <item><title>Da bin ich wieder</title><link>http://feedproxy.google.com/~r/ocean90_weblog/~3/gdNPtrMrxnE/</link> <comments>http://ocean90.wphelper.de/2372/da-bin-ich-wieder/#comments</comments> <pubDate>Sat, 15 Aug 2009 16:39:26 +0000</pubDate> <dc:creator>Dominik</dc:creator> <category><![CDATA[Intern]]></category> <category><![CDATA[Chaos]]></category> <category><![CDATA[Confixx]]></category> <category><![CDATA[Domain]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Status]]></category><guid isPermaLink="false">http://ocean90.wphelper.de/?p=2372</guid> <description /> <content:encoded><![CDATA[<p><img
src="http://ocean90.wphelper.de/files/2009/08/online.png" alt="online" width="187" style="background:none" height="166" class="alignright size-full wp-image-2382 post-img" /<p>Nein, freiwillig war ich nicht weg, eher gezwungener Maße, aber lest selbst&#8230;</p><p></p><h3>Was war passiert?</h3><p>Am 13. August sah man anstelle meines Blogs plötzlich eine <strike>nette</strike> Confixx Meldung, dass die Domain ocean90.de gesperrt wurde. Darauf hingewiesen wurde ich übrigens von <a
href="http://twitter.com/samuelbrack/status/3282329058">Samuel</a>, mit der Nachricht, dass ich nicht der Einzige war.</p><p>Da der Server und die Domain ocean90.de ja gesponsort wurden und die Webseite vom Sponsor auch gesperrt war, habe ich schon mit dem Schlimmsten gerechnet.</p><p><span
id="more-2372"></span></p><p>Mit <a
href="http://samuelbrack.posterous.com/">Samuel</a> zusammen haben wir dann ein paar andere Betroffene aufgesammelt, wozu noch Max und Pascal zählten, und dann &#8220;eine IRC-Krisensitzung einberufen&#8221; (<a
href="http://beteigeuze-fuenf.de/2009/08/14/gestrige-downtime-und-konsequenzen-daraus/">Quelle</a> <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_wink.png' alt=';)' class='wp-smiley' /> ).</p><p>Nachdem wir den Hoster ausfindig machen konnten, haben wir diesen gefragt, warum alle Domains des Server gesperrt sind. Nach drei Stunden kam dann die Antwort:<br
/><blockquote><p> Guten Tag Herr Schilling,<br
/> leider kann ich Ihnen nicht viel zu der Situation sagen, jedoch werden Accounts bei unbezahlten Rechnungen gesperrt.<br
/> Dies ist auch der Fall bei Herrn xyz, seit dem 13.06.2009 sind Rechnungen offen, die bis Heute noch nicht bezahlt wurden.</p></blockquote><p>Zwar haben wir was in dieser Richtung vermutet, dass es aber nun der Wahrheit entsprach war doch recht überraschend. Wie es dazu kommen konnte wissen wir leider nicht, da auch der Chef vom Hoster doch sehr positiv von dem Sponsor gesprochen hatte.<p>Aufgrund dieser Antwort wollte natürlich jeder seine Daten vom Server gerne wieder haben &#8211; jaja, das große Thema &#8220;Backup&#8221;. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_wink.png' alt=';)' class='wp-smiley' /> Entweder es war keins oder ein zu altes Backup vorhanden.</p><p>Aus diesem Grund haben wir nachgefragt, ob der Hoster nicht die Domains nochmal freischalten kann, damit wir unsere Daten ziehen können.</p><p>Nix da, wie heißt es so schön Geld regiert die Welt. Bevor die offenstehende Summe von 74,97€ nicht beglichen wurde, gibt es auch keine Daten.<br
/> Also haben wir versucht den Sponsor zu erreichen, der sich aber irgendwie in Luft aufgelöst hat oder auf den Mond ausgewandert ist. <br
/> Somit hing die Entscheidung bei uns, zahlen und Daten bekommen oder nicht zahlen und Pech gehabt. Wir wollten unsere Daten haben, also waren wir mehr oder weniger bereit die Summe zu zahlen.<p>Per <a
href="http://twitter.com/ocean90">Twitter</a> schickten wir vorher noch einen Spendenlink raus, womit wir gute 7,30€ einnahmen, danke an die Spender! <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_mrgreen.png' alt=':)' class='wp-smiley' /> <br
/> Den Rest musst wir somit aus eigener Tasche zahlen, etwa 17,-€.</p><p>Gestern wurde das Geld dann an den Hoster überwiesen, welcher uns kurze Zeit später dann auch wieder online schaltete. Nicht selbstverständlich, denn das Geld hatte er ja noch nicht.</p><p></p><h3>Und was nun?</h3><p>Jetzt sind die Blogs und Webseiten auf dem Server nochmal bis zum 14. September online und wir haben die Zeit uns die Backups zu ziehen und nach einem neuen Webspace und Domain umzugucken.</p></p><p>Neue Domain? Ja, den damals hatte sich der Sponsor in die Domains eintragen lassen, sodass wir jetzt keine Möglichkeiten mehr haben die auf uns zu überschreiben und mir zu einem neuen Hoster zu nehmen. Wir vermuten dass die Domains für ein Jahr bezahlt wurden, sodass ocean90.de wohl erst wieder am 09.02.2010 frei wird. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_sad.png' alt=':(' class='wp-smiley' /></p><p>Aus diesem Grund bin nun auf dem Server von <a
href="http://wphelper.de">wphelper.de</a> unter der Subdomain <a
href="http://ocean90.wphelper.de">ocean90.wphelper.de</a> aufzufinden. Der <a
href="http://ocean90.wphelper.de/feed/">Feed bleibt der Selbe</a> und von der alten Domain wird ein 301 Redirect zum &#8220;neuen alten&#8221; Blog gesetzt.</p><p>Da ich auf <a
href="http://wphelper.de">wphelper.de</a> <a
href="http://mu.wordpress.org/">WPMU</a> einsetze, kann es eventuell zu Fehler kommen, aber ich hoffe, dass ich an alles gedacht und schon alles mögliche behoben habe. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_smile.png' alt='=)' class='wp-smiley' /></p><p></p><p>In diesem Sinne noch ein schönes Wochenende.</p><p>Euer Dominik</p><p><strong>Nachtrag</strong>:<br
/> Bis dato hat sich Mr. X nicht gemeldet &#8211; Anwaltsschreiben kommen wieder ungeöffnet zurück; Anrufe blieben erfolglos -. Aus diesem Grund ist die Domain <em>ocean90.de</em> nun passé und <a
href="http://wphelper.de">wphelper.de</a> ist die neue Domain.</p><img src="http://feeds.feedburner.com/~r/ocean90_weblog/~4/gdNPtrMrxnE" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://ocean90.wphelper.de/2372/da-bin-ich-wieder/feed/</wfw:commentRss> <slash:comments>33</slash:comments> <feedburner:origLink>http://ocean90.wphelper.de/2372/da-bin-ich-wieder/</feedburner:origLink></item> <item><title>Ich hab ein Portfolio – dominikschilling.de</title><link>http://feedproxy.google.com/~r/ocean90_weblog/~3/iUKO44BwPYI/</link> <comments>http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/#comments</comments> <pubDate>Sat, 01 Aug 2009 15:55:04 +0000</pubDate> <dc:creator>Dominik</dc:creator> <category><![CDATA[Projekte]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[Estugo]]></category> <category><![CDATA[Gewinnspiel]]></category> <category><![CDATA[HTML5]]></category> <category><![CDATA[Portfolio]]></category><guid isPermaLink="false">http://ocean90.wphelper.de/?p=2348</guid> <description /> <content:encoded><![CDATA[<p><img
class="alignright size-medium wp-image-2369 post-img" src="http://ocean90.wphelper.de/files/2009/08/Portfolio12-300x206.png" alt="Frontpage" width="300" height="206" /<p>Vor einiger Zeit habe ich bei einem kleinen <a
href="http://www.estugo.de/estugo-gedichte">Gewinnspiel</a> von <a
href="http://www.estugo.de/">Estugo</a> mitgemacht.</p><p>Mein kleines Gedicht&#8230;</p><blockquote><p
style="text-align:center">Gefunden!<br
/> Webhosting, Shophosting.<br
/> Sicherheit und Stabilität<br
/> stehen an oberster Stelle.<br
/> Estugo!</p></blockquote><p>&#8230;verhalf mit dann zu einen tollen Preis &#8211; einem Webhosting Paket mit .de Domain für zwei Jahre kostenlos.</p><p><span
id="more-2348"></span></p><p>Also was diesem Paket machen? Ein weiterer Blog? Verschenken? Ein Portfolio? Ein Portfolio!</p><p>Ein Portfolio ist eine kleine Demoseite einer Person, auf welcher er sich vorstellt und seine Sammlung von Projekten/Arbeiten präsentiert.</p><p>Somit habe ich mir die Domain dominikschilling.de (Ja, das bin ich hinter ocean90 <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_wink.png' alt=';)' class='wp-smiley' /> ) registrieren lassen.</p><p>Jetzt fehlte nur noch das Konzept. Hier die grobe Liste:</p><ul><li><strong>HTML5 und CSS3:</strong> Da ich ein Fan von Neuem bin, wollte ich das Portfolio mit HTML5 und CSS3 Elementen aufbauen.</li><li><strong>jQuery:</strong> Wie sollte es anders sein, musste auch mein Liebling <a
href="http://ocean90.wphelper.de/?s=jquery">jQuery</a> mit dabei sein, ohne dem geht garnichts. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_smile.png' alt='=)' class='wp-smiley' /> Dazu folgende Unterpunkte:<ul><li>Ein Carousel für die Übersicht der Projekte/als Navigation.</li><li>Kommentarformular mit Ajax (mit Validierung, Error Codes).</li><li>Projektinfos nachladen ohne Reload.</li><li> =&gt; One-Page Portfolio</li></ul></li><li><strong>Google Maps:</strong> Da ich noch nie mit der Google Maps API gearbeitet hatte, wollte ich dies auch mal machen, somit sollte auf der Kontaktseite eine Karte meines Wohnortes erscheinen. Dank der Info von <a
href="http://twitter.com/sebastianroming/status/2929655392">Sebastian</a> habe ich hier auch das <a
href="http://code.google.com/intl/de/apis/maps/documentation/v3/">Neuste vom Neusten</a> benutzt. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_mrgreen.png' alt=':)' class='wp-smiley' /></li><li><strong>Farbgestaltung:</strong> Im Gegensatz zum Blog sollte es Hell werden, also helle und warme Brauntöne sowie Elemente aus der Natur (Sonne, Strand, Palmen, Meer).</li><li><strong>Sprache:</strong> Da ich die Projekte hier im Blog in Deutsch vorstelle, sollten sie dort in Englisch und Deutsch dokumentiert werden.</li></ul><p>Und das Ergebnis kann nun ab sofort unter <strong><a
href="http://dominikschilling.de">dominikschilling.de</a></strong> betrachtet werden. Bis auf der IE6 werden alle Browser unterstützt, wobei je nach Browser manche CSS3 Elemente vorhanden sind und manche nicht.</p><p>Deswegen ein paar Screenshots wie es im Idealfall aussieht:</p><a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio1/' title='Karte mit Google Maps API v3.0'><img
width="150" height="150" src="http://ocean90.wphelper.de/files/2009/08/Portfolio1-150x150.png" class="attachment-thumbnail" alt="" title="Karte mit Google Maps API v3.0" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio2/' title='Ajax Kommentarformular mit Validierung'><img
width="142" height="107" src="http://ocean90.wphelper.de/files/2009/08/Portfolio2.png" class="attachment-thumbnail" alt="" title="Ajax Kommentarformular mit Validierung" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio3/' title='Textschatten &amp; jQuery Hover'><img
width="150" height="52" src="http://ocean90.wphelper.de/files/2009/08/Portfolio31-150x52.png" class="attachment-thumbnail" alt="" title="Textschatten &amp; jQuery Hover" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio4/' title='Sprache englisch/deutsch'><img
width="86" height="85" src="http://ocean90.wphelper.de/files/2009/08/Portfolio4.png" class="attachment-thumbnail" alt="" title="Sprache englisch/deutsch" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio5/' title='jQuery Carousel'><img
width="150" height="121" src="http://ocean90.wphelper.de/files/2009/08/Portfolio5-150x121.png" class="attachment-thumbnail" alt="" title="jQuery Carousel" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio6/' title='Portfolio6'><img
width="150" height="150" src="http://ocean90.wphelper.de/files/2009/08/Portfolio6-150x150.png" class="attachment-thumbnail" alt="" title="Portfolio6" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio7/' title='Runde Ecken &amp; Textschatten'><img
width="150" height="137" src="http://ocean90.wphelper.de/files/2009/08/Portfolio71-150x137.png" class="attachment-thumbnail" alt="" title="Runde Ecken &amp; Textschatten" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio8/' title='Boxschatten'><img
width="150" height="121" src="http://ocean90.wphelper.de/files/2009/08/Portfolio8-150x121.png" class="attachment-thumbnail" alt="" title="Boxschatten" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio9/' title='Textschatte'><img
width="150" height="97" src="http://ocean90.wphelper.de/files/2009/08/Portfolio9-150x97.png" class="attachment-thumbnail" alt="" title="Textschatte" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio10/' title='Schatten &amp; Runde Ecken'><img
width="150" height="150" src="http://ocean90.wphelper.de/files/2009/08/Portfolio101-150x150.png" class="attachment-thumbnail" alt="" title="Schatten &amp; Runde Ecken" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio11/' title='Kontaktseite'><img
width="150" height="150" src="http://ocean90.wphelper.de/files/2009/08/Portfolio11-150x150.png" class="attachment-thumbnail" alt="" title="Kontaktseite" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio12/' title='Frontpage'><img
width="150" height="150" src="http://ocean90.wphelper.de/files/2009/08/Portfolio12-150x150.png" class="attachment-thumbnail" alt="" title="Frontpage" /></a> <a
href='http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/portfolio-2/' title='portfolio'><img
width="150" height="150" src="http://ocean90.wphelper.de/files/2009/08/portfolio-150x150.png" class="attachment-thumbnail" alt="" title="portfolio" /></a><p>Ein Danke geht natürlich nochmal an <a
href="http://twitter.com/estugo">Alexander</a> (am besten folgen und auch an Gewinnspielen teilnehmen) von <a
href="http://www.estugo.de/">Estugo</a>.</p><p>Ansonsten wünsche ich noch einen schönen Sonntag.</p><p>Euer ocean</p><p><em>PS: Da ich gerne meine Wissen verbreite und ihr vielleicht wissen möchtet, wie zum Beispiel das Formular funktioniert, sagt mir Bescheid, bin gern bereit ein Tutorial dazu zu machen.</em></p><img src="http://feeds.feedburner.com/~r/ocean90_weblog/~4/iUKO44BwPYI" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/feed/</wfw:commentRss> <slash:comments>12</slash:comments> <feedburner:origLink>http://ocean90.wphelper.de/2348/ich-hab-ein-portfolio-dominikschilling-de/</feedburner:origLink></item> <item><title>Fix für das Plugin WP Smush.it unter Yahoo</title><link>http://feedproxy.google.com/~r/ocean90_weblog/~3/R8I9_ala8Tc/</link> <comments>http://ocean90.wphelper.de/2320/fix-fuer-das-plugin-wp-smush-it-unter-yahoo/#comments</comments> <pubDate>Wed, 22 Jul 2009 20:58:53 +0000</pubDate> <dc:creator>Dominik</dc:creator> <category><![CDATA[Plugins]]></category> <category><![CDATA[API]]></category> <category><![CDATA[Bildkomprimierung]]></category> <category><![CDATA[Smush.it]]></category> <category><![CDATA[Yahoo]]></category> <category><![CDATA[YSlow]]></category><guid isPermaLink="false">http://ocean90.wphelper.de/?p=2320</guid> <description /> <content:encoded><![CDATA[<p><img
src="http://ocean90.wphelper.de/files/2009/05/smushitlogo.png" alt="smushitlogo" style="background:none" width="349" height="75" class="alignright size-full wp-image-1917 post-img" / Zur <a href="http://ocean90.wphelper.de/1915/plugin-wp-smushit/">Erinnerung</a>: <em>WP Smush.it</em> ist ein Plugin, welches hochgeladene Bilder ohne Qualitäts- und Größenverlust komprimiert. Dieses Plugin hat auf die API von smush.it zugegriffen.</p><p>Seit heute wird jedoch von smush.it auf die <a
href="http://developer.yahoo.com/yslow/smushit/">Yahoo Server</a> weitergeleitet. Was uns dort bereitgestellt wird, ist leider nur noch eine &#8220;Light&#8221; Variante von dem ehemaligen Dienst unter smush.it. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_sad.png' alt=':(' class='wp-smiley' /> Aus diesem Grund sieht man vorerst auch keinen Hinweis, auf eine neue API, sodass das Plugin <em>WP Smush.it</em> reif für die Tonne war.<br
/> <span
id="more-2320"></span><br
/> Aber so leicht wollte ich nicht aufgeben, denn mir fiel ein, dass das Firefox Plugin <a
href="https://addons.mozilla.org/de/firefox/addon/5369">YSlow</a> neuerdings unter Firebug arbeitet. Da das Projekt auch auf Yahoo gehostet wird, musste es eigentlich schon mit den Yahoo Server kommunizieren. Also Plugin geladen, entpackt und die Source durchsucht. Und ich lag mit meiner Vermutung richtig.<br
/> <em>http://www.smushit.com/ysmush.it</em> ist die neue alte API URL. Diese leitet auf <em>http://ws1.adq.ac4.yahoo.com/ysmush.it/</em> weiter. Sollte sie zumindest, bei mir nicht immer. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_mad.png' alt='-_-' class='wp-smiley' /></p><p>Zurück zum Plugin. Hier müssen nun die neuen Links eingetragen werden. Das Plugin ist aber so aufgebaut, dass die Links als Konstanten festgelegt wurden, was das ersetzen ungemein vereinfacht. Direkt nach dem Kommentar <em>Constants</em> muss es wie folgend dargestellt angepasst werden:</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * Constants
 */</span>
&nbsp;
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SMUSHIT_REQ_URL'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://ws1.adq.ac4.yahoo.com/ysmush.it/ws.php?img=%s'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SMUSHIT_BASE_URL'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div></div></div><p>Wer die Änderungen nicht selbst tätigen möchte, kann die angepasste Version hier herunterladen:</p><div
id="download"></div><p
class="download" ><strong>Download</strong><br/>Version: 1.2.1<br/>Link: <a
href="http://ocean90.wphelper.de/dl/19" title="WP Smush.it Fix"> WP Smush.it Fix</a><br/>98 mal geladen</p><p></p><p>Somit habe ich mal wieder die Lebenszeit eines Plugins verlängert. Danke auch an <a
href="http://wpcoder.de/">Sergej</a>. <img
src='http://ocean90.wphelper.de/wp-includes/images/smilies/icon_smile.png' alt='=)' class='wp-smiley' /><br
/> Der Pluginautor wird auch von mir informiert. Eventuell gibt es eine Möglichkeit, doch den &#8220;normalen&#8221; Link mit der Weiterleitung einzutragen, damit man auf der sicheren Seite ist, falls die Server bei Yahoo mal getauscht werden.</p><p>Wünsche noch eine schöne Nacht.<br
/> Euer ocean (direkt von der Nachtschicht)</p><img src="http://feeds.feedburner.com/~r/ocean90_weblog/~4/R8I9_ala8Tc" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://ocean90.wphelper.de/2320/fix-fuer-das-plugin-wp-smush-it-unter-yahoo/feed/</wfw:commentRss> <slash:comments>14</slash:comments> <feedburner:origLink>http://ocean90.wphelper.de/2320/fix-fuer-das-plugin-wp-smush-it-unter-yahoo/</feedburner:origLink></item> <item><title>Skript: Einfacher Twitter Bot</title><link>http://feedproxy.google.com/~r/ocean90_weblog/~3/h0_UB6rAnEE/</link> <comments>http://ocean90.wphelper.de/2295/skript-einfacher-twitter-bot/#comments</comments> <pubDate>Sat, 18 Jul 2009 14:09:12 +0000</pubDate> <dc:creator>Dominik</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Bot]]></category> <category><![CDATA[Skript]]></category> <category><![CDATA[Tweets]]></category> <category><![CDATA[Twitter]]></category><guid isPermaLink="false">http://ocean90.wphelper.de/?p=2295</guid> <description /> <content:encoded><![CDATA[<p><img
src="http://ocean90.wphelper.de/files/2009/07/twitterbot.png" style="background:none" alt="twitterbot" width="200" height="100" class="alignright size-full wp-image-2296 post-img" / Twitter wird immer populärer, das Themenspektrum wird immer größer und das Folgen dieser Themen wird durch die Menge an Tweets immer komplizierter.</p><p>Dank der <a
href="http://blog.johnwyles.com/articles/2009/01/06/destroying-deleting-and-erasing-old-twitter-tweets/">Twittersuche</a> oder einigen Twitterwalls (<a
href="http://twittbee.de/">twittbee.de</a>, <a
href="http://twitterwallr.com/">twitterwallr.com</a>, <a
href="http://www.twitterwall.me/">twitterwall.me</a>, &#8230;) kann man sich die Tweets zu bestimmten Hashtags anzeigen lassen. Doch man möchte ja nicht 24/7 den PC (oder Mac) laufen lassen.</p><p>Also warum nicht einfach die Tweets sichern und zwar in einem extra Twitteraccount, also ein kleiner Twitter <a
href="http://de.wikipedia.org/wiki/Bot">Bot</a>.<br
/> <span
id="more-2295"></span><br
/></p><h3>Der Twitter Bot</h3><p><em>Was benötigt man für einen Twitter Bot?</em> Das wichtigste ist wohl der Server und ein Cronjob, welcher das Skript auf dem Server aufrufen wird. Sollte der Provider keinen Cronjob zur Verfügung stellen, kann man auf <a
href="http://www.cronjob.de/">cronjob.de</a> (min. 5 Minuten) oder <a
href="http://www.cron-job.org">cron-job.org</a> (min. 2 Minuten) zurückgreifen. Natürlich wird noch ein <a
href="https://twitter.com/signup">Twitteraccount</a> benötigt. Nun fehlt nur noch das Skript.<br
/> Das Skript wurde von mir in PHP geschrieben. Es benötigt keine Datenbank und kann individuell eingerichtet werden.<br
/> Dazu einfach die Datei mit einem Editor öffnen und den Kopf, der wie folgt aussieht, anpassen:</p><div
class="wp_syntax"><div
class="syntax"><div
class="copy" title="Klicken zum markieren" onclick="selectCode(this); return false;"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'TWITTER_NAME'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Der Nutzername</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'TWITTER_PASSWORD'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Das Passwort</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SEARCH'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Nach was gesucht werden soll http://search.twitter.com/operators</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SEARCH_PARAMETER'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&amp;amp;rpp=10'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Parameter http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'RETWEET_SUFFIX'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' [..]'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Suffix für Tweets, die mehr als 140 Zeichen haben</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'RETWEET_FORM'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Wie soll Retweetet werden? (0) $name: $text (1) RT @$name: $text (2) &amp;gt; @$name: $text (3) @$name said: $text (4) $text (via @$name)</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'RETWEET_RTS'</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Sollen Retweets retweetet werden? (true/false)</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'RETWEET_ATS'</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Sollen @Replies retweetet werden? (true/false)</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AUTOFOLLOW'</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Sollen die Autoren der Tweets gefolgt werden? (true/false)</span>
&nbsp;
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DEBUG'</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Debug Modus. (true/false)</span></pre></div></div></div></div><p>Neben diesem Skript wird noch die Twitterklasse von <a
href="http://blog.verkoyen.eu/">Tijs Verkoyen</a> benötigt. Beide Dateien gehören zusammen auf den Server. Die <em>twitterbot.php</em> muss dann durch einen Cronjob ausgeführt werden.<br
/> <strong>Hinweis:</strong> Der Twitter Bot wird eine <em>refresh_url.txt</em> anlegen, in welche die ID des letzten Tweets gespeichert wird. Achtet also auf die Schreibrechte.</p><p>Die beiden benötigten Dateien können nun hier heruntergeladen werden:</p><p><p
class="download" ><strong>Download</strong><br/>Version: 1.2<br/>Link: <a
href="http://ocean90.wphelper.de/dl/18" title="Twitter Bot"> Twitter Bot</a><br/>120 mal geladen</p> <a
href="http://classes.verkoyen.eu/twitter/" class="download">Download: Twitter class</a></p><p> Viel mehr muss man eigentlich nicht dazu erzählen. Sollten dennoch Fragen vorhanden sein, so stellt sie einfach via Kommentar oder E-Mail.</p><p>Euer ocean</p><p>PS: Twitter Bot <strong>ungleich</strong> Spam Bot, nutze ihn also sinnvoll! Dieses Werk ist unter einer <a
rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/de/">Creative Commons-<strong>Lizenz</strong></a> lizenziert.</p><img src="http://feeds.feedburner.com/~r/ocean90_weblog/~4/h0_UB6rAnEE" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://ocean90.wphelper.de/2295/skript-einfacher-twitter-bot/feed/</wfw:commentRss> <slash:comments>18</slash:comments> <feedburner:origLink>http://ocean90.wphelper.de/2295/skript-einfacher-twitter-bot/</feedburner:origLink></item> </channel> </rss><!--
This site's performance optimized by W3 Total Cache:

W3 Total Cache improves the user experience of your blog by caching
frequent operations, reducing the weight of various files and providing
transparent content delivery network integration.

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk

Served from: www4.estugo.de @ 2009-11-11 22:21:00 -->
