Roundcube Community Forum

SVN Releases => Requests => Topic started by: flosoft on August 01, 2006, 07:49:11 AM

Title: Address Book Contact Mod - Initial Version - Repost
Post by: flosoft on August 01, 2006, 07:49:11 AM
Hey,

Here is a repost of the Mod on the old Forum from Essien.

The address book was a little too simple for me so I added some options to it. Once I figure out the structure of roundcube a bit more I'll make it look purdier.

This is my first attempt at a mod ever so let me know if I should document this different.

Run the following on your roundcube database using phpmyadmin.
Code: [Select]
ALTER TABLE `contacts` ADD `zip` VARCHAR(10) NOT NULL AFTER `surname` ;
ALTER TABLE `contacts` ADD `state` VARCHAR(40) NOT NULL AFTER `surname` ;
ALTER TABLE `contacts` ADD `city` VARCHAR(40) NOT NULL AFTER `surname` ;
ALTER TABLE `contacts` ADD `address` VARCHAR(255) NOT NULL AFTER `surname` ;
ALTER TABLE `contacts` ADD `cellphone` VARCHAR(15) NOT NULL AFTER `surname` ;
ALTER TABLE `contacts` ADD `workphone` VARCHAR(15) NOT NULL AFTER `surname` ;
ALTER TABLE `contacts` ADD `homephone` VARCHAR(15) NOT NULL AFTER `surname` ;

Open program/localization/en_US/labels.inc
Around line 139 After
Code: [Select]
$labels['email']   = 'E-Mail';add
Code: [Select]
//Added for modified addressbook
$labels['homephone']   = 'Home Phone';
$labels['workphone']   = 'Work Phone';
$labels['cellphone']   = 'Cell Phone';
$labels['address']   = 'Address';
$labels['city']   = 'City';
$labels['state']   = 'State';
$labels['zip']   = 'Zip Code';
Save and Close.

Open program/steps/addressbook/show.inc
Around line 56 replace
Code: [Select]
$a_show_cols = array('name', 'firstname', 'surname', 'email' );with
Code: [Select]
$a_show_cols = array('name', 'firstname', 'surname', 'email', 'homephone', 'workphone', 'cellphone', 'address', 'city', 'state', 'zip');Save and close

Open program/steps/addressbook/edit.inc
Around line 68 replace
Code: [Select]
$a_show_cols = array('name', 'firstname', 'surname', 'email' );with
Code: [Select]
$a_show_cols = array('name', 'firstname', 'surname', 'email', 'homephone', 'workphone', 'cellphone', 'address', 'city', 'state', 'zip');Save and close

Open program/steps/addressbook/save.inc
around line 31 replace
Code: [Select]
$a_show_cols = array('name', 'firstname', 'surname', 'email' );With
Code: [Select]
$a_show_cols = array('name', 'firstname', 'surname', 'email', 'homephone', 'workphone', 'cellphone', 'address', 'city', 'state', 'zip');Save and close

All Done...assuming I didn't miss anything it should look like the attached images.

Have Fun!

Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: Reload on August 01, 2006, 08:53:12 AM
tnx Flosoft.
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: SKaero on August 05, 2006, 05:05:48 AM
Thanks! This is a nice add to roundcube!
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: darkcoder on August 06, 2006, 03:28:35 PM
Since this is a mod or extension, why not move the thread to Third Party Contributions > Plug-Ins
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: Reload on August 07, 2006, 02:32:06 PM
Why not ad this to the next SVN... That way Í don't have to hack every time a file is changed...
And some extra conact info is alway's handy...  ;D
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: SKaero on August 08, 2006, 04:52:50 PM
I will be added at some point
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: Reload on August 10, 2006, 09:26:05 AM
Now default within SVN 306  ;D
http://trac.roundcube.net/trac.cgi/changeset/306
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: jimliddle on November 10, 2006, 01:24:34 PM
Can anyone tell me whether this post is supposed to work with the latest beta ? everything appears to work but the save.inc when modified does not - has anyone used this mod' on the latest build or is there another similar mod' ?
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: jimliddle on November 13, 2006, 08:30:55 AM
anyone tried to implement on the latest beta ? Got Save.inc working ?
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: jimliddle on November 23, 2006, 11:45:02 AM
I still have had no annswer to this. If you use this mod with the latest version save.inc does not work for the new fields. Has anyone come across this or found a workaround ?
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: oxygens on December 03, 2006, 06:28:29 PM
has it been removed from the latest svn?
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: Ralf on December 05, 2006, 05:02:51 PM
Quote from: Reload
Now default within SVN 306  ;D
http://trac.roundcube.net/trac.cgi/changeset/306

has it been removed from SVN 391?? And Why??
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: Reload on December 06, 2006, 01:57:57 AM
No, it's moved from the SVN Trunk to the SVN Branches (SVN 317)
http://trac.roundcube.net/trac.cgi/browser
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: yllar on December 06, 2006, 04:18:48 AM
Quote from: Ralf
Quote from: Reload
Now default within SVN 306 ;D
http://trac.roundcube.net/trac.cgi/changeset/306

has it been removed from SVN 391?? And Why??
it's not enough "roundcube" style, search mailinglist archive for it
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: Ralf on December 06, 2006, 05:53:59 AM
Quote from: Reload
No, it's moved from the SVN Trunk to the SVN Branches (SVN 317)
http://trac.roundcube.net/trac.cgi/browser

OK sorry but i´m a noop ... this means that it wouldn´t be implement in the rc version??
Made anybody a Mod ???

@ yllar

It´s a pity that, it´s not enough "roundcube" style. Thanks i will look.
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: Reload on December 06, 2006, 06:42:37 AM
It means, currently the dev team isn't happy with the way it's build.
But the idea is still there and will be implemented in another way in the future... :)
Title: Re: Address Book Contact Mod - Initial Version - Repost
Post by: Ralf on December 09, 2006, 12:02:50 PM
Quote from: Reload
It means, currently the dev team isn't happy with the way it's build.
But the idea is still there and will be implemented in another way in the future... :)


 ;) :D 8)

cool thanks!!