OK - although the THREAD PREFIX script has its place, I didn't like the need for it to be installed to get the EI prefix to work.
You need to add a DB field ei_prefix:
Code:
ALTER TABLE forum ADD ei_prefix VARCHAR( 50 ) NULL;
This needs to be manually changed since I dont want to tinker with the EI admin script and keep this as simple to reimplement when changes to the EI codebase are made. (HINT HINT)
The below snippet needs to be added to the EI cron and product files right after:
Code:
$text_subject = replace_template_variables($text_subject);
Code:
// prefix code - cgmckeever
// check for ei_prefix defined
if (strlen($foruminfo[ei_prefix]) != 0){
// get rid of built in prefix
$text_subject = trim(str_replace("[\$foruminfo[title_clean]-t-\$threadinfo[threadid]]",'',$text_subject));
$text_subject = trim("\$foruminfo[ei_prefix] " . $text_subject);
}
// end prefix code - cgmckeever