Page 1 of 2
How to added new category name to category_moved.txt
Posted: Tue May 19, 2009 3:14 pm
by hollandsedrop
/*************************************
Title:
Version: 2.0
Author:
Demo:
Download:
Website:
Short description:
*************************************/
How to added new category name to category_moved.txt
thanks...
Posted: Tue May 19, 2009 5:58 pm
by Klemen
Open move_category.php file (inside admin folder) in Notepad and just
above this text
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'];
In the same file below
Code: Select all
$message=str_replace('%%SITE_URL%%',$hesk_settings['site_url'] ,$message);
add
Code: Select all
$message=str_replace('%%NEWCAT%%',$catname,$message);
and then you can use %%NEWCAT%% in the category_moved.txt
Posted: Wed May 20, 2009 9:24 am
by hollandsedrop
Perfect! ... Thanks ....
Posted: Fri Aug 21, 2009 11:30 am
by hollandsedrop
hi,
this not work v2.0
help please?
Posted: Tue Sep 15, 2009 7:41 am
by hollandsedrop
In the Incoming mail %%NEWCAT%% writes. Category name is not written. What can be done?
Ps: V2.1
thanks.
Posted: Mon Oct 19, 2009 2:15 pm
by hollandsedrop
In the Incoming mail %%NEWCAT%% writes. Category name is not written. What can be done?
Ps: V2.1
thanks.
Posted: Wed Oct 21, 2009 8:09 am
by hollandsedrop
This is an idea yet?
Posted: Fri Oct 23, 2009 3:44 pm
by hollandsedrop
is very important for me. Please help!
In the Incoming mail %%NEWCAT%% writes. Category name is not written. What can be done?
Ps: V2.1
Posted: Mon Jan 25, 2010 3:47 pm
by Petert
hollandsedrop wrote:is very important for me. Please help!
In the Incoming mail %%NEWCAT%% writes. Category name is not written. What can be done?
Ps: V2.1
Hoi,
Ik wil je wel helpen maar begrijp je Engels niet zo goed. PM me maar met je vraag dan kijk ik er even naar voor je.
Posted: Fri Jul 09, 2010 10:46 am
by hollandsedrop
Hi Klemen,
this not work v2.2
help please?
Re: How to added new category name to category_moved.txt
Posted: Tue Nov 30, 2010 8:29 am
by hollandsedrop
hi,
this not work v2.2
help please?
Re: How to added new category name to category_moved.txt
Posted: Sat Feb 26, 2011 12:03 am
by Raven
An old thread I know but how would you suggest I get this working in HESK 2.2?
Cheers
Re: How to added new category name to category_moved.txt
Posted: Tue Mar 08, 2011 9:02 pm
by hollandsedrop
help please...
Re: How to added new category name to category_moved.txt
Posted: Wed Mar 09, 2011 4:03 pm
by Klemen
The first part should be the same:
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);
try pasting
Code: Select all
$msg=str_replace('%%NEWCAT%%',$catname,$msg);
Re: How to added new category name to category_moved.txt
Posted: Thu Mar 10, 2011 9:03 am
by hollandsedrop
Very good, thanks Klemen.
We hope that the next version