[imp] turba's name format prefs in message composition's address
	book
    Benoit St-André 
    ben at benoitst-andre.net
       
    Sun Oct 26 17:14:07 PST 2003
    
    
  
Hi everyone
There is in turba a "name_format" preference that can show the contact's name 
either by first_last or last_first .
I can see where that preference is being used, and how the name is modified  
to firstname lastname or lastname, firstname depending of the pref.
Anyway, I tried to figure how to use that turba's preference in IMP message 
composition window, when a user uses the Address book contact list window. 
I'd like to make it use the same preference, if a user has chosen last_first, 
it should reflect there.
in turba, the contactrow.inc templates uses 
Turba::formatName($ob->getValue('name')) to show the name of the contact 
according to the pref. 
However, I'm stuck trying to do the same thing in the contact.inc imp 
template. I don't understand how to use the same feature around line 47 in
<option value="<?php echo rawurlencode($addr['email']) ?>"><?php echo 
$addr['name'] ?></option> 
to change the $addr['name'] the right way.
Any ideas ? 
Thanks
-- 
Benoit St-André
Conseiller pédagogique à la CS des Affluents
ben at benoitst-andre.net
Connaissez-vous Linuxédu-Québec ? http://linuxeduquebec.org
    
    
More information about the imp
mailing list