General discussion of OpenCATS

Moderators: RussH, cptr13

Forum rules: Just remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but keep comments directed to the topic at hand.
By rotzer
#461
Not force an email for users at login

Hi I put openCATS 0.8.0 on production recently. One request of my users are that they dont want to receive notifications emails every time a candidate apply to a joborder. That because we have open jobs to get the most posibles candidates each day to maintain a cataloged list.. anyway

the first thing I did was left blank the email field on the user profile but...
BUT when they login the system ask for a email to proceed.

Well no big deal because if I write down the url to openCATS we can go directly and authenticated to the system, BUT I dont want to do this every time I log in

so thi is the solution:

Goto /modules/login

open LoginUI.php

around the line 345 you may read somethig like this:
Code: Select all
        /* If no E-Mail set for current user, make user set E-Mail address. */
        else if (trim($_SESSION['CATS']->getEmail()) == '')
        {
            CATSUtility::transferRelativeURI('m=settings&a=forceEmail');
        }
Comment it:
Code: Select all

        /* If no E-Mail set for current user, make user set E-Mail address. */
        /*else if (trim($_SESSION['CATS']->getEmail()) == '')
        {
            CATSUtility::transferRelativeURI('m=settings&a=forceEmail');
        }*/
and thats all! problem solved :D
Last edited by rotzer on 02 Sep 2008, 16:15, edited 1 time in total.
By rotzer
#462
Ordered Saved Lists

Other issue I have on openCATS 080 is the saved list order. Everi time a use the dropdown list or have to cataloge an user the list load unsorted. Well this is the solution to this issue... Yes issue because my users said: "is hard to select an iten on the list". They are humans... they want all lists ordered eh! hehe :mrgreen:


ok this is the solution:

go to: /lib
open the file: SavedLists.php

go to the dunction named: getAll

looks like:
Code: Select all
    public function getAll($dataItemType = -1)
    {
        if ($dataItemType != -1)
        {
            $typeCriterion = sprintf(
                'AND data_item_type = %s', 
                $this->_db->makeQueryInteger($dataItemType)
            );
        }
        else
        {
            $typeCriterion = '';
        }

        $sql = sprintf(
            "SELECT
                saved_list_id AS savedListID,
                description AS description
            FROM
                saved_list
            WHERE
                site_id = %s
            %s",
            $this->_siteID,
            $typeCriterion
        );

        return $this->_db->getAllAssoc($sql);
    }

Change the first if statement to this:
Code: Select all
        if ($dataItemType != -1)
        {
            $typeCriterion = sprintf(
                'AND data_item_type = %s ORDER by description ASC',
                $this->_db->makeQueryInteger($dataItemType)
            );
        }
Thats all. I only add this SQL command: ORDER by description ASC
User avatar
By RussH
#463
Thanks for sharing that tip - note that this also works to ensure that the most recent activities appear at the top for candidates and contacts - if you do the same in /lib/activityentries.php

This is the "import from resume"[…]

EMAIL CONFIGURATION

Hi, the email configuration (including different[…]

as the title says...

It's essential to keep these synchronized to ensur[…]