jobberBase Community

Welcome to jobberBase Developer Community!

You are not logged in.

Announcement

Announcement for new users: in order to combat the ever increasing spam, we no longer allow new users to post links in the message body. This limitation is automatically lifted once a new user has a specific number of 'valid' posts.

You can post links like google.com which will be rendered as text but you will not be able to post messages that contain complete URLs like www.google.com

Thank you for your understanding!

#1 2010-07-20 01:13:04

kamalk
Member
Registered: 2010-03-25
Posts: 34
Website

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!

Offline

#2 2010-07-20 03:09:08

hobo
Member
Registered: 2009-03-01
Posts: 451

Re: Deactivation URL

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

public function MailApplyOnline($data)

in that function below (line 68) before

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

insert:

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

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

Offline

#3 2010-07-24 04:30:18

kamalk
Member
Registered: 2010-03-25
Posts: 34
Website

Re: Deactivation URL

Is this applicable to 1.9?

Offline

#4 2010-07-24 17:29:07

hobo
Member
Registered: 2009-03-01
Posts: 451

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.

Offline

#5 2010-07-25 09:34:58

kamalk
Member
Registered: 2010-03-25
Posts: 34
Website

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

Offline

Board footer

Powered by FluxBB