N2S

Topic: Allow Employers to Edit their Job Listings

seems like this is some sort of (overlooked) bug. Anyways.. the original problem was stated and resolved in this topic. http://www.jobberbase.com/forum/topic59 … ew-ad.html
For anyone having trouble following the instructions on that topic, they can read step by step how it is done, here...

JOBBER VERSION: 1.5 beta 1 (20/08/2008)

OPEN: /_includes/class.Postman.php

Code:
FIND   
public function MailPublishToUser($data)

REPLACE WITH:   
public function MailPublishToUser($data, $url=BASE_URL)


FIND:
        $subject = 'Your ad on ' . SITE_NAME . ' was published';
        $msg = "Hello! :)\n\n";
        $msg .= "Your ad was published and is available at: " . BASE_URL . "job/" . $data['id'] . "/" . $data['url_title'] . "/";
        $msg .= "\n\n---\nEdit it: " . BASE_URL . "post/" . $data['id'] . "/" . $data['auth'] . "/";
        $msg .= "\nDeactivate it: " . BASE_URL . "deactivate/" . $data['id'] . "/" . $data['auth'] . "/";
        $msg .= "\n\n---\n\nThank you for using our service!\nThe " . SITE_NAME . " Team";

REPLACE WITH
        $subject = 'Your ad on ' . SITE_NAME . ' was published';
        $msg = "Hello! :)\n\n";
        $msg .= "Your ad was published and is available at: " . $url . "job/" . $data['id'] . "/" . $data['url_title'] . "/";
        $msg .= "\n\n---\nEdit it: " . $url . "post/" . $data['id'] . "/" . $data['auth'] . "/";
        $msg .= "\nDeactivate it: " . $url . "deactivate/" . $data['id'] . "/" . $data['auth'] . "/";
        $msg .= "\n\n---\n\nThank you for using our service!\nThe " . SITE_NAME . " Team";
        // we simply changed BASE_URL with $url

FIND:
    // Send mail to user when a post is activated (after first-time post)
    public function MailPostActivatedToUser($data)
    {
        $this->MailPublishToUser($data);
    }

REPLACE WITH:
    // Send mail to user when a post is activated (after first-time post)
    // public function MailPostActivatedToUser($data)
    // {
    //     $this->MailPublishToUser($data);
    // }
    public function MailPostActivatedToUser($data, $url=BASE_URL)
    {
        $this->MailPublishToUser($data, $url);
    }

OPEN: /admin/page_activate.php

Code:
FIND:
    $vali->MailPostActivatedToUser($j->GetInfo());

REPLACE WITH:
    // $vali->MailPostActivatedToUser($j->GetInfo());
    $vali->MailPostActivatedToUser($j->GetInfo(), BASE_URL_ORIG);

TEST IT OUT:
go to your site and post a new job listing. In the email section, post YOUR EMAIL and publish it. Once you receive the email confirming that "your ad is published", go ahead and attempt to edit it by clicking on the links in the email. It should direct you towards the post that you just published on your site. Edit the post, and publish once again. Then check the same post again, to see if your system changed the original post to the (new) edited post.

*thanks to links!

Last edited by N2S (2008-10-29 01:39:35)

http://i34.tinypic.com/2affofk.png