Roundcube Community Forum

 

Address Book Contact Mod - Initial Version - Repost

Started by flosoft, August 01, 2006, 07:49:11 AM

Previous topic - Next topic

flosoft

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.
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
$labels['email']   = 'E-Mail';add
//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
$a_show_cols = array('name', 'firstname', 'surname', 'email' );with
$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
$a_show_cols = array('name', 'firstname', 'surname', 'email' );with
$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
$a_show_cols = array('name', 'firstname', 'surname', 'email' );With
$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!



SKaero


darkcoder

Since this is a mod or extension, why not move the thread to Third Party Contributions > Plug-Ins

Reload

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

SKaero



jimliddle

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' ?

jimliddle

anyone tried to implement on the latest beta ? Got Save.inc working ?

jimliddle

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 ?

oxygens


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

Reload


yllar

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

Ralf

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.