<?php
// Part of my ugly hack for making trackbacks to TopicExchange easier to do and more visible on the weblog
// 18.07.04 Stephanie Booth aka bunnywabbit_ on #wordpress -- http://climbtothestars.org/ for questions or fixes


// the following code goes in posts.php, between the lines saying "$trackback = $_POST['trackback_url'];" and "$trackback = 
preg_replace('|\s+|''\n'$trackback);"

// BEGIN BUNNY HACK
        // this is to add topic exchange trackbacks specified in a different field -- we'll insert the meta fields later
        if(!empty(
$_POST['ite-topic']))
        {
            
$topics=explode(' ', $_POST['ite-topic']);
            foreach(
$topics as $topic)
            {
                // recompose the trackback url
                
$ite_url=make_ite_url($topic);
                // add it to the list of trackbacks
                
$trackback.=" $ite_url";            
            }
        }
// END BUNNY HACK
        
?>