updateTags($oldtag, $newtag); break; case 'deletetag': $todelete = stripslashes( (isset($_POST['deletetag_name'])) ? $_POST['deletetag_name'] : ''); $pagemsg = $lp_tags->deleteTags($todelete); break; case 'autotag': $totag = stripslashes( (isset($_POST['autotag_name'])) ? $_POST['autotag_name'] : ''); $pagemsg = $lp_tags->autoTags($totag); break; case 'addtag': $matchtag = stripslashes( (isset($_POST['addtag_match'])) ? $_POST['addtag_match'] : ''); $newtag = stripslashes( (isset($_POST['addtag_new'])) ? $_POST['addtag_new'] : ''); $pagemsg = $lp_tags->updateTags($matchtag, $newtag, false); break; default: // no action $pagemsg = (isset($_REQUEST['tag_message'])) ? stripslashes($_REQUEST['tag_message']) : ''; break; } if (!empty($pagemsg)) $pagemsg = '

' . $pagemsg . '

'; /* URL for form actions */ $actionurl = $_SERVER['REQUEST_URI']; /* tag sort order */ $tag_listing = '

'; $order_array = array('desc' => 'Most Popular', 'asc' => 'Least Used', 'natural' => 'Alphabetical'); $sortorder = strtolower((isset($_REQUEST['tag_sortorder'])) ? $_REQUEST['tag_sortorder'] : 'desc'); $sortbaseurl = preg_replace('/&?tag_sortorder=[^&]*/', '', $actionurl, 1); foreach($order_array as $sort => $caption) $tag_listing .= ($sort == $sortorder) ? " $caption
" : " $caption
"; $tag_listing .= '

'; /* create tag listing */ $all_tags = $lp_tags->getAllTags($sortorder); foreach($all_tags as $tag => $count) $tag_listing .= "
  • $tag  ($count)
  • \n"; ?>

    LightPress Tags

    Existing Tags
    Rename Tag

    Enter the tag to rename and its new value. You can use this feature to merge tags too. Click "Rename" and all posts which use this tag will be updated.

    You can specify multiple tags to rename by separating them with commas.

    Tag(s) to Rename:
    New Tag Name(s):
    Delete Tag

    Enter the name of the tag to delete. This tag will be removed from all posts.

    You can specify multiple tags to delete by separating them with commas.

    Tag(s) to Delete:
    Add Tag

    This feature lets you add one or more new tags to all posts which match any of the tags given.

    You can specify multiple tags to add by separating them with commas. If you want the tag(s) to be added to all posts, then don't specify any tags to match.

    Tag(s) to Match:
    Tag(s) to Add:
    Auto Tag

    Enter the keywords to automatically add a tag to posts with these keywords in the title.

    You can specify multiple tags to create by separating them with commas.

    Keyword(s) to match:

    Import Tags