Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Captain_FLAM

Pages: [1] 2
1
Nobody (no dev) is interested ?

I post many code, but i think this forum is DEAD, isn't it ?

2
Development / Re: make 'unique ID' of workspace (project) visible
« on: July 18, 2011, 11:29:06 am »
By the way, i found a serious limitation about generating "unique id"

only 3 significant numbers are generated ...

to change this behaviour, i did this :

in -->  application\models\ApplicationDataObject.class.php , line ~ 283

Code: [Select]
<?php
......
function getUniqueObjectId()
{
//****    © Captain FLAM - 06/2011    ****//

$oid str_pad($this->getObjectId(), 6'0'STR_PAD_LEFT);

//****************************************//

return $this->objectTypeIdentifier $oid;
}
......
?>


3
Français / Re: Official translation to French
« on: July 15, 2011, 09:55:12 am »
Une petite correction :

dans -> language\fr_fr\administration.php

ligne 216

enlever "indésirable", et "ses" pas "ces"

   'config option desc show_feed_links' => 'Cela vous autorise à voir les liens RSS ou iCal pour l\'utilisateur connecté à travers le système, ainsi il peut y souscrire. ATTENTION : ces liens contiennent des informations qui peuvent connecter un utilisateur au système. Si un utilisateur partage un de ses liens il peut compromettre toutes ses informations.',


et rajouter :


     'config option name external_users_see_other_users' => 'Autoriser les utilisateurs externes à voir les autres utilisateurs',
     'config option desc external_users_see_other_users' => "Si vous choisssez 'Oui', les utilisateurs qui font partie d'autres sociétés pourront voir quels utilisateurs ont les permissions dans le contexte de travail dans lequel ils sont, comme les utilisateurs normaux peuvent le voir",


Bon, je suis pas très fier de ma traduc ... si vous avez mieux ...

4
in -> cache\autoloader.php

change all direct paths on each lines :

$GLOBALS['autoloader_classes']['ACCESSCONTROLLER'] = '/home/www/application/controllers/AccessController.class.php';

by :

   $GLOBALS['autoloader_classes']['ACCESSCONTROLLER'] = ROOT . '/application/controllers/AccessController.class.php';

5
Point 8

6
Point 7

7
Point 6

8
Point 5

9
Point 4

10
Point 3

11
Point 2 :

Now, i have to control the "ALL" context ...

1st, put some new language strings :

in -> language\en_us\site_interface.php, at the end of the file

Code: [Select]
 'choose something' => 'Please choose one Workspace ...',

For this point, i'm gonna developping a Hook ...

To be followed ...

12
This post is about Adapting FO for my own "Outsourcing IT company"

So, i need to understand many things, and crawl the code ...   8)

And i also need help from the ancient coders who know well FO  ;)
......

Link to the topic :

forums.fengoffice.com/index.php?topic=14202.0

13
Ce sujet  concerne l'Adaptation de FO pour ma propre société "Outsourcing IT company"

J'aimerai avoir un "Contrôle Plus Fin des Droits Utilisateurs"

Donc, j'ai besoin de comprendre beaucoup de choses, et de me plonger dans le code ...  8)

Et j'ai aussi besoin de l'aide des anciens codeurs qui connaissent bien FO  ;)
......

Je travaille avec la version 1.7.5

Je posterai toutes les modifs à faire dans ce sujet :

  -->  forums.fengoffice.com/index.php?topic=14202.0

En attendant, on peut discuter en français, aussi dans ce sujet ci-présent ...

1. Je ne veux pas que le nom de famille soit affiché à mes employés, ni à mes clients, juste aux admin & aux personnes autorisées

2. Je ne veux pas que les personnes puissent ajouter des contacts, etc ... (actuellement, si quelqu'un est sur le contexte "TOUS", comme son propre contexte fait partie de "TOUS", il peut ajouter... )

14
Point 1 :

in -> application\models\contacts\Contact.class.php , ~ line 169

Not finished yet, cause :

// || $contact->canEdit(logged_user() commented, can't access object

Code: [Select]
<?php

//****************************************//
//****    © Captain FLAM - 06/2011    ****//

/**
 * Return display name for this contact.
 *
 * @access public
 * @param void
 * @return string
 */
function getDisplayName()
{
$fn '';  $fn parent::getFirstName();  $mn parent::getMiddlename();  $ln parent::getLastName();

if ($ln != '')
{
//$contact = Contacts::findById(get_id());
if (! logged_user()->isAdministrator())
$ln substr_utf($ln01). '.';
}
if ($mn != '' && $fn != ''$fn .= ' ';
$fn .= $mn;
if ($ln != '' && $fn != ''$fn .= ' ';
$fn .= $ln;

return trim($fn);
}

/**
 * Return display name with last name first for this contact
 *
 * @access public
 * @param void
 * @return string
 */
function getReverseDisplayName()
{
$ln '';  $fn parent::getFirstName();  $mn parent::getMiddlename();  $ln parent::getLastName();

if ($ln != '')
{
//$contact = Contacts::findById(get_id());
if (! logged_user()->isAdministrator() && ! logged_user()->isAccountOwner()) // && ! $contact->canEdit(logged_user()))
$ln substr_utf($ln01). '.';
}
if ($fn != '' && $ln != ''$ln .= ' ';
$ln .= $fn;
if ($mn != '' && $ln != ''$ln .= ' ';
$ln .= $mn;

return trim($ln);
}
//****                                ****//
//****************************************//

?>

(Don't put the PHP tags, it's just here to have hilighted code)

15
This post is about Adapting FO for my own "Outsourcing IT company"

I wish to adapt it to have more "Fine Tune Rights Control"

So, i need to understand many things, and crawl the code ...  8)

And i need help from the ancient coders who know well FO  ;)

i work with version 1.7.5

1. Don't want the last name be showed for my employees or customers, just for admin & authorized people

2. Don't want the people can add contacts, etc ... (actually, if some is on "ALL" context, as it own context is part of "ALL", they can add ...)

Pages: [1] 2