kamalk

Topic: Deactivation URL

I want to insert the deactivation url in each and every application email that an employer receives so that he can easily deactivate the ad without searching for the confirmation email. Can anyone tell me how to do this?

Thanks in advance!

hobo

Re: Deactivation URL

Hi,
Try this:
In includes/class.Postman.php find

Code:
public function MailApplyOnline($data)

in that function below (line 68) before

Code:
 
if ($data['attachment_filename'] != '')

insert:

Code:

        $data['deactivate_url'] =  BASE_URL . "deactivate/" . $data['id'] . "/" . $data['auth'] . "/";

You can actually enter it almost anywhere in that function I guess.
Good Luck

kamalk

Re: Deactivation URL

Is this applicable to 1.9?

hobo

Re: Deactivation URL

It will probably work on all versions.
If you do not believe me, go to your _includes/class.Postman.php
You can find this line used in other places in that file already, so just reuse it where you need it.

kamalk

Re: Deactivation URL

hobo wrote:

It will probably work on all versions.
If you do not believe me, go to your _includes/class.Postman.php
You can find this line used in other places in that file already, so just reuse it where you need it.

Hi hobo

I tried as you advised but it does not work.

Don't I need to modify emails_en.xml file in templates\default\_translations\_emails ?

Pls help