Page 1 of 1

2.3 MOD: Add New Category Name to Category Moved Email

Posted: Fri Sep 30, 2011 5:37 pm
by Lisaweb
This has been posted in the past but it was buried in an older topic. Here are the updated instructions to make it work in 2.3....

In admin\move_category.php file, just above this text

Code: Select all

/*** Need to notify any staff? ***/
paste

Code: Select all

$qry = "SELECT `name` FROM `".$hesk_settings['db_pfix']."categories` WHERE `id`='".$category."'";
$myres = hesk_dbQuery($qry);
$mytmp = hesk_dbFetchAssoc($myres);
$catname = $mytmp['name'];
Then under:

Code: Select all

$msg = hesk_getEmailMessage('category_moved',$ticket,1);  
paste this code:

Code: Select all

$msg=str_replace('%%NEWCAT%%',$catname,$msg);
Then add this line to language\en\emails\category_moved.txt:

Code: Select all

New Category:  	%%NEWCAT%%