====== SimpleTags ====== paste this into fp-plugins/simpletags/plugin.simpletags.php; this a quick "port" (just moved something around) of the original [[http://www.broobles.com/scripts/simpletags/|WordPress Plugin]] */ function simpleTags($text) { // Change these if you want something else to appear before and after the tags. // Leave them blank ("") if you don't want any text to appear around the tags. //

tags added in 1.2 for backward compatibility with previous versions. $pre_replacement = '

Technorati Tags: '; $post_replacement = '

'; // If you want to use the tags inside a div, you can do something like this: // $pre_replacement = '
Technorati Tags: '; // $post_replacement = '
'; $tag_url = "http://technorati.com/tag/"; $tag_pattern = '/(\[tag\](.*?)\[\/tag\])/i'; // Following line used to be: // $tags_pattern = '/(\[tags\](.*?)\[\/tags\])/i'; // Enhanced by Elias Schwerdtfeger in 1.2 to remove the superflous paragraph // generated by WordPress and allow for valid XHTML (if you use divs, // they would be enclosed withing a paragraph which is invalid). // For backward compatibility, we've added

and

to $pre_replacement // and $post_replacement respectively. $tags_pattern = '/((?:

)?\s*\[tags\](.*?)\[\/tags\]\s*(?:<\/p>)?)/i'; $tags_count = 0; $taglist_exists = 0; # Set to 1 if the tags list is present # Check for in-post [tag] [/tag] if (preg_match_all ($tag_pattern, $text, $matches)) { unset($technotags); $technotags = $pre_replacement; for ($m=0; $m