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 - waldo2188

Pages: [1]
1
Community Contributions / Adding a filter to users in the time module
« on: September 28, 2010, 04:22:46 am »
First, please excuse my approximate English (I'm French (Yes I know, it isn't a good excuse...)).

The little story.
In my work we use the Feng Office's Time module for register our time on projects.
Many of us use the Time module, and it was be rapidly unreadable. we can not verify a look of our time.
This is why we have made a filter on users.

we modified three files and create one.

fengOffice/public/assets/javascript/og/time/TimeBottomToolbar.js was created for construct the tools bar that contains the comboBox.
The comboBox is the same as the Task's module.

fengOffice/application/views/time/index.php was modified to incorporate the tools bar.
I had to add a variable in the paging system.

fengOffice/application/controllers/TimeController.class.php was modified to integrate the management of new filter settings.

fengOffice/application/models/timeslot/Timeslots.class.php was modified to integrate
was modified to include a further condition to both queries

in the zip file you will find the four files described above.
files were reviewed (hopefully enough).
If you have questions or comments, I am listening to you.

2
This is a short how-to for use the Mozilla Firefox extension, FirePHP.

Reminder : FirePHP enables you to log to your Firebug Console using a simple PHP method call.

First you need Firefox and the FireBug extension (https://addons.mozilla.org/fr/firefox/addon/1843/).
Next, you must install the FirePHP extension (https://addons.mozilla.org/fr/firefox/addon/6149/) and download the corresponding PHP classes (http://www.firephp.org/).

Unzip PHP Classes in 'fengOffice/environment/library/FirePHPCore/' directory.
If you use PHP 5 you can delete PHP 4 classes (fb.php4 and FirePHP.class.php4).

Rename the file fb.php to FB.class.php. We rename this file for a better integration in the FengOffice class autoload system.

Edit 'fengOffice/init.php'.
After :
Code: [Select]
// Set handle request timer...
if(Env::isDebugging()) {
benchmark_timer_set_marker('Handle request');
} // if

insert this code :
Code: [Select]
// Enable FirePHP
if(Env::isDebugging()) {
FB::setEnabled(true);
} // if

Now you can use FirePHP static methods, like :
Code: [Select]
FB::log('Log message');
FB::info('Info message');
FB::warn('Warn message');
FB::error('Error message');

Have a nice day!

3
Development / javascript Debug
« on: September 13, 2010, 04:21:28 am »
Hello !

I've a JavaScript bug.
"C is null"
How I can display the JavaScript error in the firebug tool?
How I can have the stack trace of the error or the file where she is.

Thanks in advance!

4
Community Contributions / Add a panel in time module
« on: September 10, 2010, 05:39:33 am »
Hi everybody!

I try to add a Panel bar at the top of the time module.
This panel is for add some filter options,  like in the tasks module.

I try to understand how it's work with the tasks module. I've found three thing :
in the time view :
 - HTML Div for be the container of the filter's form
 - Javascript that instantiate a JS objet
 - a JS object that make the form and control actions.

I've miss some thing, because, my implantation dosen't work.

I search some information about the panel and how it work with the data.

Thanks in advance!

5
Older versions / Re: calendar event showing on wrong day
« on: March 24, 2010, 11:20:33 am »
Right, it's regarding the Eduter's problem

6
Older versions / Re: calendar event showing on wrong day
« on: March 24, 2010, 10:33:32 am »
Hello,

This issue is caused by an access to an inexistant "userSel.options" property.

It's just one line of code to add in the main.js (public/assets/javascript/og/time/main.js) in the function EditTimeslot at the line 216.

We must add a condition to test if the property exists.

before
Code: [Select]
if (userSel){
   for (var i = 0; i < userSel.options.length; i++){
      if (userSel.options[i].value == ts.userId){
         userSel.selectedIndex = i;
         break;  
      }
   }
}


Correction
Code: [Select]
if (userSel){
    if(userSel.options) {
        for (var i = 0; i < userSel.options.length; i++){
            if (userSel.options[i].value == ts.userId){
                userSel.selectedIndex = i;
                break;  
            }
        }
    }
}

Regards

Pages: [1]