![]() |
|
|
|||||||
For more information about the ads and why they're here, please see the FAQ
![]() |
|
|
LinkBack (16) | Thread Tools | Display Modes |
#31
|
||||
|
||||
|
and i have optimized the fieldset html output on show add and editpage for an better display and formating. Code:
ALTER TABLE `contacts` ADD `birth` VARCHAR( 10 ) NOT NULL ; Last edited by lacri; 03-13-2009 at 12:33 PM. |
|
#32
|
|||
|
|||
|
Hello lacri,
would it be possible for you to create a patch for the changes you have described in your "port to 0.2 stable / 0.2.1 " posting ? It would be much easier to apply :-) Thanks for your great work !!! kind regards Andreas |
|
#33
|
||||
|
||||
|
i commit a patch at next monday,
the weekend is time for my kids
|
|
#34
|
||||
|
||||
|
here is the patch
not forgett Code:
# Database Additions for contact multiple emails # Run in PhpMyAdmin on the database that holds the RC Contacts table. Change the table name rc_contacts to your contacts table name: # ALTER TABLE `contacts` ADD `global_contact` TINYINT(1) NOT NULL default '0'; ALTER TABLE `contacts` ADD `firm` VARCHAR(128) NOT NULL ; ALTER TABLE `contacts` ADD `position` VARCHAR(50) NOT NULL ; ALTER TABLE `contacts` ADD `p_tel` VARCHAR(30) NOT NULL ; ALTER TABLE `contacts` ADD `p_fax` VARCHAR(30) NOT NULL ; ALTER TABLE `contacts` ADD `p_mob` VARCHAR(20) NOT NULL ; ALTER TABLE `contacts` ADD `p_address` TEXT NOT NULL; ALTER TABLE `contacts` ADD `w_tel` VARCHAR(20) NOT NULL ; ALTER TABLE `contacts` ADD `w_fax` VARCHAR(20) NOT NULL ; ALTER TABLE `contacts` ADD `w_mob` VARCHAR(20) NOT NULL ; ALTER TABLE `contacts` ADD `w_address` TEXT NOT NULL; ALTER TABLE `contacts` ADD `notice` TEXT NOT NULL; ALTER TABLE `contacts` ADD `email2` VARCHAR(128) NOT NULL ; ALTER TABLE `contacts` ADD `email3` VARCHAR(128) NOT NULL ; ALTER TABLE `contacts` ADD `email4` VARCHAR(128) NOT NULL ; ALTER TABLE `contacts` ADD `birth` VARCHAR(10) NOT NULL ; Last edited by lacri; 03-16-2009 at 08:31 AM. |
|
#35
|
|||
|
|||
|
Based on work of lacri
I remove global contact from database, we use ldap for this part 1 Add /etc/ldap/schema/mozillaorgperson.schema (debian) and include it on /etc/ldap/slapd.conf Code:
#
# mozillaOrgPerson schema v. 0.6.3
#
# req. core
# req. cosine
# req. inetorgperson
# attribute defs
attributetype ( 1.3.6.1.4.1.13769.2.1.1
NAME ( 'mozillaNickname' )
SUP name )
attributetype ( 1.3.6.1.4.1.13769.2.1.2
NAME ( 'mozillaUseHtmlMail' )
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.13769.2.1.3
NAME 'mozillaSecondEmail'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
attributetype ( 1.3.6.1.4.1.13769.2.1.4
NAME 'mozillaHomeLocalityName'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )
attributetype ( 1.3.6.1.4.1.13769.2.1.5
NAME 'mozillaPostalAddress2'
EQUALITY caseIgnoreListMatch
SUBSTR caseIgnoreListSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 )
attributetype ( 1.3.6.1.4.1.13769.2.1.6
NAME 'mozillaHomePostalAddress2'
EQUALITY caseIgnoreListMatch
SUBSTR caseIgnoreListSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 )
attributetype ( 1.3.6.1.4.1.13769.2.1.7
NAME ( 'mozillaHomeState' ) SUP name )
attributetype ( 1.3.6.1.4.1.13769.2.1.8
NAME 'mozillaHomePostalCode'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{40} )
attributetype ( 1.3.6.1.4.1.13769.2.1.9
NAME ( 'mozillaHomeCountryName' )
SUP name SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.13769.2.1.10
NAME ( 'mozillaHomeFriendlyCountryName' )
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
attributetype ( 1.3.6.1.4.1.13769.2.1.11
NAME ( 'mozillaHomeUrl' )
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
attributetype ( 1.3.6.1.4.1.13769.2.1.12
NAME ( 'mozillaWorkUrl' )
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
# un-comment for all LDAP server NOT supporting SYNTAX 2.16.840.1.113730.3.7.1
attributetype ( 1.3.6.1.4.1.13769.2.1.13
NAME ( 'nsAIMid' )
DESC 'AOL Instant Messenger (AIM) Identity'
EQUALITY telephoneNumberMatch
SUBSTR telephoneNumberSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )
attributetype ( 1.3.6.1.4.1.13769.2.1.14 NAME ( 'mozillaHomeStreet' )
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )
# un-comment for Netscape 6.x and all other LDAP server supporting SYNTAX 2.16.840.1.113730.3.7.1
# attributeTypes ( 2.16.840.1.113730.3.1.2013
# NAME ( 'nsAIMid' )
# DESC 'AOL Instant Messenger (AIM) Identity'
# SYNTAX 2.16.840.1.113730.3.7.1 )
attributetype ( 1.3.6.1.4.1.13769.2.1.96
NAME ( 'mozillaCustom1' )
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.13769.2.1.97
NAME ( 'mozillaCustom2' )
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.13769.2.1.98
NAME ( 'mozillaCustom3' )
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.13769.2.1.99
NAME ( 'mozillaCustom4' )
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
# defined in "A Summary of the X.500(96) User Schema for use with LDAPv3" - RFC 2256
#
# attributetype ( 2.5.4.6 NAME ( 'c' 'countryName' )
# DESC 'RFC2256: ISO-3166 country 2-letter code'
# SUP name SINGLE-VALUE )
# defined in "The COSINE and Internet X.500 Schema" - RFC 1274
#
# attributetype ( 0.9.2342.19200300.100.1.43
# NAME ( 'co' 'friendlyCountryName' )
# DESC 'RFC1274: friendly country name'
# EQUALITY caseIgnoreMatch
# SUBSTR caseIgnoreSubstringsMatch
# SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
# objectClass defs
objectclass ( 1.3.6.1.4.1.13769.2.2.1
NAME 'mozillaOrgPerson'
SUP top
AUXILIARY
MAY (
sn $
givenName $
cn $
mozillaNickname $
title $
telephoneNumber $
facsimileTelephoneNumber $
mobile $
pager $
homePhone $
street $
postalCode $
mozillaPostalAddress2 $
mozillaHomeStreet $
mozillaHomePostalAddress2 $
l $
mozillaHomeLocalityName $
st $
mozillaHomeState $
mozillaHomePostalCode $
c $
mozillaHomeCountryName $
co $
mozillaHomeFriendlyCountryName $
ou $
o $
mail $
mozillaSecondEmail $
mozillaUseHtmlMail $
nsAIMid $
mozillaHomeUrl $
mozillaWorkUrl $
description $
mozillaCustom1 $
mozillaCustom2 $
mozillaCustom3 $
mozillaCustom4 ) )
# not part of the official Mozilla schema but read by Mozilla: 'departmentNumber' and 'postOfficeBox'
#
and add this on your $rcmail_config['ldap_public']['XXX'] section PHP Code:
search for PHP Code:
PHP Code:
search for PHP Code:
PHP Code:
add the lines PHP Code:
|
|
#36
|
|||
|
|||
|
part 2
modifie /program/include/rcube_ldap.php search for PHP Code:
PHP Code:
search for PHP Code:
PHP Code:
search for PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
search for PHP Code:
PHP Code:
search for PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
search for PHP Code:
PHP Code:
modiefie how lacri has :
execute on your db this sql script PHP Code:
thunderbird add book like screenshots |
|
#37
|
|||
|
|||
|
Hi lacri,
thank you very much for the patch :-) kind regards Andreas |
|
#38
|
|||
|
|||
|
Hi,
How can I apply the patch *.diff? Thanks Dan |
|
#39
|
|||
|
|||
|
Enybody using global adresbook on version 0.3 ?
|
|
#40
|
|||
|
|||
|
Hi,
Please I'm sorry for my dumb question.. Can anyone tell me what for this global addressbook plugin.. thanks.. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|