http://www.link-assistent.org/a-zindex-wordpress-plugin-english.html **DEUTSCH** a-z index generiert ein Register von A-Z sortiert nach Anfangsbuchstaben der Beitragstitel. Durch a-z index wird die "Durchblutung" gefördert, d.h. eine Suchmaschine findet schneller zu älteren Artikeln. Die Installation ist recht einfach (5 Min.). Es müssen 2 kleine Ergänzungen in den Themes vorgenommen werden. Weiteres dazu in dieser Datei oder auf http://www.link-assistent.org/a-zindex-wp-plugin-deutsch.html Version: 0.1.5 Author: Heiko Lbben Author URI: http://www.infos-zum-thema.de installation manual ------------------- A) manual in english B) Anleitung in deutsch - etwas weiter unten ------------------- A) five simple steps to install this tool: 1. upload this file via ftp to your plugin folder (wp-content/plugins/) 2. go in your wordpress administration and activate this plugin (you find it under plugins and there under A-Z Index Now you have to add some code into two files of your theme. IŽll explain it with the WordPress Default theme (that with the blue head image): 3. go in your wordpress administration to themes - theme-editor and there open the file archive.php Find the line: Replace this line with:

Articles with "" :

'; // html part in front of // example: //[$A_ZStart]domain[$A_ZEnd] echo A_ZIndexArticles($A_ZStart, $A_ZClass, $A_ZEnd, $category_name); ?>
4. go in your wordpress administration to themes - theme-editor and there open the file footer.php Find the line: Replace this line with: // example: //[$A_ZStart]domain[$A_ZEnd] echo '
'.A_ZIndexMenu($A_ZStart, $A_ZClass, $A_ZEnd); echo 'by a-z-index for wp
'; ?> 5. go in your wordpress administration to themes - theme-editor and there open the file 404.php Find the line:

Error 404 - Not Found

Replace this line with:

Articles with "" :

'; // html part in front of // example: //[$A_ZStart]domain[$A_ZEnd] echo A_ZIndexArticles($A_ZStart, $A_ZClass, $A_ZEnd, $category_name); ?>

Error 404 - Not Found

6. finish - now enjoy your a-zindex :-) ------------------- B) Fuenf einfache Schritte, um dieses Tool in 5 Min. zu installieren: 1. Lade diese Datei via ftp in den Plugin-Ordner (wp-content/plugins/) 2. Gehe in die Wordpress Administration und aktiviere dieses Plugin (Du findest es jetzt unter Plugins unter dem Namen "A-Z Index") Nun musst Du noch ein paar Zeilen Code in zwei Dateien Deiner Themes einfuegen. Ich werde es anhand des Wordpress Standard DE-Edition - Theme erklaeren: 3. Gehe in die Wordpress Administration, waehle den Menupunkt "Themes", dort gehe auf Theme-Editor, waehle die Datei "archive.php" (steht dort rechts als "Archiv") Dort musst Du folgende Zeile finden: Diese Zeite ersetze mit den folgenden Zeilen:

Artikel, die mit "" beginnen:

'; // html, welches vor dem "" steht // Beispiel: //[$A_ZStart]domain[$A_ZEnd] echo A_ZIndexArticles($A_ZStart, $A_ZClass, $A_ZEnd, $category_name); ?>
4. Gehe in die Wordpress Administration, waehle den Menupunkt "Themes", dort gehe auf Theme-Editor, waehle die Datei "footer.php" (steht dort rechts als "Footer") Dort musst Du folgende Zeile finden: Diese Zeile ersetze mit den folgenden Zeilen: " steht // Beispiel: //[$A_ZStart]domain[$A_ZEnd] echo '
'.A_ZIndexMenu($A_ZStart, $A_ZClass, $A_ZEnd); echo 'by a-z-index fuer wp
'; ?>

Fehler 404 - Nicht gefunden!

5. Gehe in die Wordpress Administration, waehle den Menupunkt "Themes", dort gehe auf Theme-Editor, waehle die Datei "404.php" (steht dort rechts als "Footer") Dort musst Du folgende Zeile finden:

Fehler 404 - Nicht gefunden!

Diese Zeile ersetze mit den folgenden Zeilen:

Articles with "" :

'; // html part in front of // example: //[$A_ZStart]domain[$A_ZEnd] echo A_ZIndexArticles($A_ZStart, $A_ZClass, $A_ZEnd, $category_name); ?>

Fehler 404 - Nicht gefunden!

6. Fertig - ich wuensche viel Vergnuegen mit a-zindex :-) */ function A_ZIndexMenu( $a_zIndexHtmlStart = '', $a_zIndexHtmlClass = '', $a_zIndexHtmlEnd = ''){ global $wpdb, $wp_rewrite, $wp_query; $wp_query->is_404 = false; // used parts of template-functions-category.php // function get_category_link($category_id) { $catlink = $wp_rewrite->get_category_permastruct(); // you can add or delete some chars if they should not be displayed $A_Z_chars=array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"); $i=0; $A_Z_Z=0; $output=""; while ($A_Z_Z==0){ if ( empty($catlink) ) $url = get_settings('home') . '/' . '?cat=' . $A_Z_chars[$i]; else $url = get_settings('home') . trailingslashit(str_replace('%category%', strtolower($A_Z_chars[$i]), $catlink)); $output.=$a_zIndexHtmlStart.''.strtoupper($A_Z_chars[$i]).''.$a_zIndexHtmlEnd; if ($A_Z_chars[$i]=="Z") $A_Z_Z=1; $i++; } return $output; } // eof function A_ZIndexArticles( $a_zIndexHtmlStart = '', $a_zIndexHtmlClass = '', $a_zIndexHtmlEnd = '', $category_name){ global $wpdb, $wp_query; $wp_query->is_404 = false; $s = sprintf(" SELECT post_title, guid FROM $wpdb->posts WHERE post_status = 'publish' AND LEFT(UCASE(post_title), %s) = '%s' ORDER BY post_title ", strlen($category_name), strtoupper($category_name) ); $results=$wpdb->get_results($s); $output=""; if($results){ foreach ($results as $result) { $output.=$a_zIndexHtmlStart.''.$result->post_title.''.$a_zIndexHtmlEnd; } } return $output; } // eof ?>