How to added new category name to category_moved.txt
Moderator: mkoch227
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
How to added new category name to category_moved.txt
/*************************************
Title:
Version: 2.0
Author:
Demo:
Download:
Website:
Short description:
*************************************/
How to added new category name to category_moved.txt
thanks...
Title:
Version: 2.0
Author:
Demo:
Download:
Website:
Short description:
*************************************/
How to added new category name to category_moved.txt
thanks...
Open move_category.php file (inside admin folder) in Notepad and just above this text paste
In the same file below add
and then you can use %%NEWCAT%% in the category_moved.txt
Code: Select all
/* Need to notify any admins? */
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'];
Code: Select all
$message=str_replace('%%SITE_URL%%',$hesk_settings['site_url'] ,$message);
Code: Select all
$message=str_replace('%%NEWCAT%%',$catname,$message);
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
Re: How to added new category name to category_moved.txt
hi,
this not work v2.2
help please?
this not work v2.2
help please?
Re: How to added new category name to category_moved.txt
An old thread I know but how would you suggest I get this working in HESK 2.2?
Cheers
Cheers
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
Re: How to added new category name to category_moved.txt
help please...
Re: How to added new category name to category_moved.txt
The first part should be the same:
Then under try pasting
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'];
Code: Select all
$msg = hesk_getEmailMessage('category_moved',$ticket,1);
Code: Select all
$msg=str_replace('%%NEWCAT%%',$catname,$msg);
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
Re: How to added new category name to category_moved.txt
Very good, thanks Klemen.
We hope that the next version
We hope that the next version