How to added new category name to category_moved.txt

Everything related to Hesk - helpdesk software

Moderator: mkoch227

hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

How to added new category name to category_moved.txt

Post by hollandsedrop »

/*************************************
Title:
Version: 2.0
Author:
Demo:
Download:
Website:

Short description:


*************************************/

How to added new category name to category_moved.txt

thanks...
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Open move_category.php file (inside admin folder) in Notepad and just above this text

Code: Select all

/* Need to notify any admins? */
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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Post by hollandsedrop »

Perfect! ... Thanks ....
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Post by hollandsedrop »

hi,

this not work v2.0

help please?
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Post by hollandsedrop »

In the Incoming mail %%NEWCAT%% writes. Category name is not written. What can be done?

Ps: V2.1

thanks.
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Post by hollandsedrop »

In the Incoming mail %%NEWCAT%% writes. Category name is not written. What can be done?

Ps: V2.1

thanks.
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Post by hollandsedrop »

This is an idea yet?
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Post 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
Petert
Posts: 26
Joined: Sun Jan 10, 2010 10:10 pm

Post 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.
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Post by hollandsedrop »

Hi Klemen,

this not work v2.2

help please?
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Re: How to added new category name to category_moved.txt

Post by hollandsedrop »

hi,

this not work v2.2

help please?
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Re: How to added new category name to category_moved.txt

Post by Raven »

An old thread I know but how would you suggest I get this working in HESK 2.2?

Cheers
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Re: How to added new category name to category_moved.txt

Post by hollandsedrop »

help please...
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: How to added new category name to category_moved.txt

Post 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);
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Re: How to added new category name to category_moved.txt

Post by hollandsedrop »

Very good, thanks Klemen.

We hope that the next version
Post Reply