Sonstiges

Ultimate Tag Warrior

Das sieht doch schon mal nach einem guten Taggig-Tool aus. Und es ermöglicht zahlreiche Customizing-Möglichkeiten.

Alleine diese Funktionsliste zeigt auf, was man damit alles anstellen kann, bis hin zu einer vereinfachten, grafischen Darstellung der Tag-Verteilung (LongTail-Ansatz). Siehe Live-Demo bei mir mit einigen wenigen Tags zZt, das kann sich aber bald ändern ;-). Der erste Bereich der Tagcloud stellt eine sortierte Stichwortliste dar, die auch anzeigt, wie oft ein Stichwort genannt wurde. Darunter eine grafische Funktion, die entsprechend der sortierten Stichwortliste über einen farblichen Verlauf die Verteilung der Stichworte zu visualisieren versucht. Die Tags sind intern verlinkt, man kann sie aber ebenso auf Technorati verlinken. Das tue ich bereits aber unterhalb des jeweiligen Artikel. So verbinde ich den Vorteil einer internen Tagsuche und des Technorati-Taggings parallel aus.

UTW_ShowTagsForCurrentPost($formattype, $format=““, $limit=0)
Shows the tags for the current post. Put this guy inside the wordpress loop.
UTW_ShowRelatedTagsForCurrentPost($formattype, $format=““, $limit=0)
Shows related tags for the current post. Again, this belongs inside the wordpress loop.
UTW_ShowRelatedPostsForCurrentPost($formattype, $format=““, $limit=0)
Shows related posts for the current post. This is another for inside the wordpress loop.
UTW_ShowRelatedTagsForCurrentTagSet($formattype, $format=““, $limit=0)
Shows the related tags for the current requested tags (for http://somesite/tag/foo+monkey the current requested tags are foo and monkey. Got that? Good). This belongs on the tag.php template.
UTW_ShowCurrentTagSet($formattype, $format=““, $limit=0)
Shows the current requested tags. Again, belongs on tag.php
UTW_ShowWeightedTagSet($formattype, $format=““, $limit=150)
Shows tags in weighted order. This can go anywhere.
function UTW_ShowWeightedTagSetAlphabetical($formattype, $format=““, $limit=150)
Shows tags in alphabetical order; but allows doing weighted formatting. This can go anywhere.

Predefined Formats
htmllist
Local tag links, wrapped in li tags. The ul/ol tags aren’t included to allow a bit more flexibility
commalist
A list of local tag links, seperated by commas. There’s no trailing comma, because that would look stupid.
technoraticommalist
Like a „commalist“, but linking to Technorati tag page instead of the local tag page.
weightedlinearbar
Draws a bar representation of tags. Popular tags have wide segments, less popular tags have narrower segments. Comes in any colour you like as long as it’s B&W. Be the first one on your block to display your tags like this.
weightedlongtail
Draws a long tail histogram of your tags.
coloredtagcloud
Draws a tag cloud, with less popular tags in light grey.
sizedtagcloud
Draws a tag cloud, with popular tags in bigger letters.
coloredsizedtagcloud or sizedcoloredtagcloud
Draws a tag cloud with both the colour and size indicating prominence.
coloredsizedtagcloudwithcount
Draws a tag cloud with the colour and size; with the number of occurances following each tag.
postcommalist
Displays a comma seperated list of links to posts.
posthtmllist
Displays a list of posts in li html tags.
superajax
Displays an expandy link bit, with icons to other tagging services; and displays a [-] link for deleting tags along with a text field for adding tags to posts. This should be used on tag lists that relate to a post (e.g. UTW_ShowTagsForCurrentPost)
superajaxrelated
Displays an expandy link bit as with superajax, with a [+] icon for adding a tag to the associated post. This should be used with UTW_ShowRelatedTagsForCurrentPost

Über den Autor

Robert Basic

Robert Basic ist Namensgeber und Gründer von BASIC thinking und hat die Seite 2009 abgegeben. Von 2004 bis 2009 hat er über 12.000 Artikel hier veröffentlicht.

6 Kommentare

  • hast Du herausgefunden, ob diese Grafiken (siehe Funktionsliste) was bringen, denn immerhin hast Du ja schon bereits eine spürbare Tagsammlung, die etwas auswertungsfreundlicher ist?

  • Hast du eine Ahnung, wie man „ähnliche Artikel“ in der Anzahl beschränken kann? Ich nutze das eigentlich nur als komfortablere Möglichkeit, um ähnliche Beiträge anzeigen zu lassen. Werden aber irgendwann arg viele…

    Code sieht bisher so aus:

    ?php UTW_ShowRelatedPostsForCurrentPost(„posthtmllist“) ?

  • hallo.
    ich suche die ganze zeit schon eine anleitung wie ich meine tag-list in einer sidebar anzeigen lassen kann.. diese soll dann nicht die tags von einem oder dem letzen post anzeigen, sondern bsw. der letztens 20 posts. hm, kannst du mir da helfen?