- Title: Member
- Status: Offline
- Registered: 2010-03-25
- Posts: 31
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!
- Title: Member
- Status: Offline
- Registered: 2009-03-01
- Posts: 358
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
- Title: Member
- Status: Offline
- Registered: 2010-03-25
- Posts: 31
Re: Deactivation URL
Is this applicable to 1.9?
- Title: Member
- Status: Offline
- Registered: 2009-03-01
- Posts: 358
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.
- Title: Member
- Status: Offline
- Registered: 2010-03-25
- Posts: 31
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
Posts [ 5 ]
Guest posting is disabled. You must login or register to post a reply.