assign('REPLYTO_PATH', REPLYTO_PATH); // comment form has different id if ( (isset($_GET['action']) AND $_GET['action'] == 'edit_comment') OR (isset($page['body_id']) AND $page['body_id'] == 'theCommentsPage') ) { $template->assign('replyto_form_name', 'editComment'); } else { $template->assign('replyto_form_name', 'addComment'); } // must re-check our location + some additional tests if (script_basename() == 'picture') { add_event_handler('render_comment_content', 'replyto_parse_picture', 60); if ( !is_a_guest() OR $conf['comments_forall'] ) { $template->set_prefilter('picture', 'replyto_add_link_prefilter'); } } else if ( script_basename() == 'index' AND isset($pwg_loaded_plugins['Comments_on_Albums']) AND $page['section'] == 'categories' AND isset($page['category']) ) { add_event_handler('render_comment_content', 'replyto_parse_album', 60); if ( !is_a_guest() OR $conf['comments_forall'] ) { $template->set_prefilter('comments_on_albums', 'replyto_add_link_prefilter'); } } } function replyto_add_link_prefilter($content, &$smarty) { // script $search[0] = '