Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Plugins/Modules/Addons

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
View Poll Results: Would you like to see a mailuser interface for Roundcube & Squirrelmail?
Yes 211 98.60%
No 3 1.40%
Voters: 214. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #141  
Old 23rd February 2010, 16:28
NeeChee NeeChee is offline
Member
 
Join Date: May 2009
Posts: 64
Thanks: 14
Thanked 20 Times in 9 Posts
Default

Quote:
Originally Posted by moglia View Post
My translator of brazilian portuguese and use latest version SVN head on my prodution server.
What exactly do you mean? I don't understand. Try changing the file mentioned in post #133 accordingly
Reply With Quote
Sponsored Links
  #142  
Old 23rd February 2010, 22:54
moglia moglia is offline
Member
 
Join Date: Apr 2009
Posts: 92
Thanks: 7
Thanked 15 Times in 11 Posts
Exclamation Investigations.

Im making tests with $mail_user = $client->mail_user_get($session_id, $params); and return 4 me.

Code:
# php -q test.php
Logado:d14c9669b71540a82c376ae3cf874b3d<br />Array
(
    [0] => Array
        (
            [mailuser_id] => 312
            [sys_userid] => 2
            [sys_groupid] => 2
            [sys_perm_user] => riud
            [sys_perm_group] => riud
            [sys_perm_other] =>
            [server_id] => 1
            [email] => moglia@xpto.com
         )
Code:
Logado:a7e88cacfd9e6189e46a6a8b47e10f6f<br />Array
(
    [0] => Array
        (
            [mailuser_id] => 315
            [sys_userid] => 3
            [sys_groupid] => 3
            [sys_perm_user] => riud
            [sys_perm_group] => riud
            [sys_perm_other] =>
            [server_id] => 1
            [email] => teste@anotherdomain.net
Fact, no have sys_userid 2 on sys_user table.
Code:
mysql> select sys_userid,userid,username from sys_user;
+------------+--------+--------------+
| sys_userid | userid | username     |
+------------+--------+--------------+
|          1 |      1 | admin                   |
|          1 |      2 | xptouser                     |
|          1 |      3 | anotherdomainuser     |
|          1 |      4 | xxx1 |
|          1 |      5 | xxx3      |
|          1 |      6 | xxx4           |
+------------+--------+--------------+
6 rows in set (0.00 sec)
On sys_user table the field used is userid =D i discovered it now. =D

Last edited by moglia; 23rd February 2010 at 22:57.
Reply With Quote
  #143  
Old 24th February 2010, 13:35
moglia moglia is offline
Member
 
Join Date: Apr 2009
Posts: 92
Thanks: 7
Thanked 15 Times in 11 Posts
Exclamation New Code For loadUserProfile

Corespondent field is userid i keep sysuser_id for any compatibility issues no have idea of impact of this modifications. Anyone need check it on future. Modifications turns working of remote functions from horifc roundcube ispconfig integration .

Just made a simple test write values to console to check whats client_id are resiving and results is userid field =D

Look the modifications above:

PHP Code:
//* Load the user profile
        
function loadUserProfile($client_id 0) {
            global 
$app,$conf;

            
$client_id intval($client_id);
            
            if(
$client_id == 0) {
                
$this->sys_username         'admin';
                
$this->sys_userid            1;
                
$this->sys_default_group     1;
                
$this->sys_groups            1;
            } else {
                
//* load system user - try with sysuser and before with userid (workarrond)
                
$user $app->db->queryOneRecord("SELECT * FROM sys_user WHERE sysuser_id = $client_id");
                if(empty(
$user["userid"])) {
                        
$user $app->db->queryOneRecord("SELECT * FROM sys_user WHERE userid = $client_id");        
                        if(empty(
$user["userid"])) {
                                
$this->errorMessage .= "No sysuser with the ID $client_id found.";
                                return 
false;
                        }
                }
                
$this->sys_username         $user['username'];
                
$this->sys_userid            $user['userid'];
                
$this->sys_default_group     $user['default_group'];
                
$this->sys_groups             $user['groups'];
            }

        return 
true;
        } 

Last edited by moglia; 24th February 2010 at 13:40.
Reply With Quote
The Following User Says Thank You to moglia For This Useful Post:
NeeChee (25th February 2010)
  #144  
Old 24th February 2010, 13:42
moglia moglia is offline
Member
 
Join Date: Apr 2009
Posts: 92
Thanks: 7
Thanked 15 Times in 11 Posts
Exclamation Thanks! Just look #143 and #142

Quote:
Originally Posted by NeeChee View Post
What exactly do you mean? I don't understand. Try changing the file mentioned in post #133 accordingly
Look for #143
http://www.howtoforge.com/forums/sho...&postcount=143
Reply With Quote
  #145  
Old 24th February 2010, 19:22
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 325
Thanks: 55
Thanked 95 Times in 60 Posts
Send a message via Skype™ to Horfic
Default

Yep, moglia you are right. Thanks for the change, forgot about that bit.
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
  #146  
Old 26th February 2010, 13:24
Nicke Nicke is offline
Member
 
Join Date: Jun 2009
Posts: 44
Thanks: 8
Thanked 14 Times in 9 Posts
Default

Swedish translation for mailfilter.

Last edited by Nicke; 26th February 2010 at 17:34.
Reply With Quote
The Following 2 Users Say Thank You to Nicke For This Useful Post:
Horfic (26th February 2010), NeeChee (26th February 2010)
  #147  
Old 26th February 2010, 17:35
Nicke Nicke is offline
Member
 
Join Date: Jun 2009
Posts: 44
Thanks: 8
Thanked 14 Times in 9 Posts
Default

Made a small change to the Swedish language file.
Attached Files
File Type: txt sv_SE.inc.txt (955 Bytes, 117 views)
Reply With Quote
The Following 2 Users Say Thank You to Nicke For This Useful Post:
falko (28th February 2010), NeeChee (26th February 2010)
  #148  
Old 26th February 2010, 18:05
NeeChee NeeChee is offline
Member
 
Join Date: May 2009
Posts: 64
Thanks: 14
Thanked 20 Times in 9 Posts
Default

Quote:
Originally Posted by Nicke View Post
Made a small change to the Swedish language file.
Committed
Reply With Quote
  #149  
Old 1st March 2010, 01:54
airton airton is offline
Junior Member
 
Join Date: Jan 2009
Posts: 7
Thanks: 0
Thanked 10 Times in 4 Posts
Default Italian translation for mailfilter plugin.

This is a great plugin!
Thanks.
Attached Files
File Type: zip it_IT.zip (532 Bytes, 136 views)
Reply With Quote
The Following 3 Users Say Thank You to airton For This Useful Post:
falko (1st March 2010), Horfic (1st March 2010), NeeChee (1st March 2010)
  #150  
Old 1st March 2010, 23:51
NeeChee NeeChee is offline
Member
 
Join Date: May 2009
Posts: 64
Thanks: 14
Thanked 20 Times in 9 Posts
 
Default

Slovenian and French translation for the filterplugin are still absent... If the authors of those languages could translate That'd be awesome!
Reply With Quote
Reply

Bookmarks

Tags
interface, ispconfig 3, mail, roundcube, squirrelmail, webmail

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
Debian Lenny: waiting for interface eth0:1 before doing NFS mounts (warning) edge Installation/Configuration 2 9th June 2009 08:55
IPtables rule to let PPTP access LAN brianwebb01 Installation/Configuration 0 1st May 2008 22:23
How to create a dhcp server for intranet (with multi-homed alias)? zenny HOWTO-Related Questions 8 29th February 2008 16:16
No DHCP on second LAN interface DrJohn Server Operation 2 8th November 2007 03:58


All times are GMT +2. The time now is 14:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.