Author Topic: Adding new contact  (Read 2310 times)

element

  • Guest
Adding new contact
« on: February 25, 2010, 03:37:04 pm »
When you add a new contact, it defaults to 'work' address. Is it possible to default it to 'home' address?
That would save me a few clicks every time.

Also, are there people here with a lot of contacts in their installation? Does it work well?

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: Adding new contact
« Reply #1 on: February 25, 2010, 11:06:50 pm »
I won't be using it fully until search is improved.
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

Henry

  • Full Member
  • ***
  • Posts: 159
    • View Profile
Re: Adding new contact
« Reply #2 on: February 26, 2010, 05:50:44 am »
Hi,

If you want to change the view , you must change this file.

application\views\contact\edit_contact.php

Step 1: change the line 48 from
Code: [Select]
<a href="#" class="option" style="font-weight:bold" onclick="og.toggleAndBolden('<?php echo $genid ?>add_contact_work', this)"><?php echo lang('work'?></a> - to
Code: [Select]
<a href="#" class="option" onclick="og.toggleAndBolden('<?php echo $genid ?>add_contact_work', this)"><?php echo lang('work'?></a> -
Step 2: change the line 50 from

Code: [Select]
<a href="#" class="option" onclick="og.toggleAndBolden('<?php echo $genid ?>add_contact_home', this)"><?php echo lang('home'?></a> - to
Code: [Select]
<a href="#" class="option" style="font-weight:bold" onclick="og.toggleAndBolden('<?php echo $genid ?>add_contact_home', this)"><?php echo lang('home'?></a> -
Step 3: change the line 76 from
Code: [Select]
<div style="display:block" id="<?php echo $genid ?>add_contact_work">
to
Code: [Select]
<div style="display:none" id="<?php echo $genid ?>add_contact_work">

Step 4: change the line 238 from
   
Code: [Select]
<div style="display:none" id="<?php echo $genid ?>add_contact_home">to
   
Code: [Select]
<div style="display:block" id="<?php echo $genid ?>add_contact_home">
You can also move the birthday field in this block if you want.

Notice: This is not upgrade safe!!

Henry