In function_phpdig_form.php find:
Code:
$query_string2 = urlencode(stripslashes($query_string));
And afterwards add:
Code:
$result['keyword_ads'] = "<script src=\"http://www.CHANGEME.com/index.php?section=serve&id=40&keyword=".$query_string2."&output=js\"></script>";
Now in the template use:
Code:
<phpdig:keyword_ads/>
Wherever you want the ads to appear.