Results 1 to 5 of 5

Thread: Need to disable the "vCard Button"

  1. #1
    Mag
    Mag is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    15

    Default Need to disable the "vCard Button"

    Hi,

    I just put some rules and Nobody can export anything
    But I just discover that people can select an contact and add into their Outlook, via the vCard button

    Do you know how to disable it ?

    Thanks in advance

  2. #2
    Tossulino is offline Junior Member
    Join Date
    Jun 2007
    Posts
    1

    Question Re: Need to disable the "vCard Button"

    I want to disable the vCard button too. If someone knows how to do this. My version is 5.x.

    Thanks!

  3. #3
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Need to disable the "vCard Button"

    Copy the file <sugar root>/modules/Contacts/metadata/detailviewdefs.php
    to
    <sugar root>/custom/modules/Contacts/metadata

    Edit the copy in <sugar root>/custom/modules/Contacts/metadata and change this line:
    Code:
    'customCode' => '{$fields.full_name.value}&nbsp;&nbsp;<input type="button" class="button" name="vCardButton" value="{$MOD.LBL_VCARD}" onClick="document.vcard.submit();">',
    to this:

    Code:
    //'customCode' => '{$fields.full_name.value}&nbsp;&nbsp;<input type="button" class="button" name="vCardButton" value="{$MOD.LBL_VCARD}" onClick="document.vcard.submit();">',
    Save your changes and check for the vCard button to make sure all is fine.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  4. #4
    michamamo2 is offline Senior Member
    Join Date
    Sep 2008
    Posts
    64

    Default Re: Need to disable the "vCard Button"

    Hi,

    I did what you described ...

    Quote Originally Posted by Angel
    Copy the file <sugar root>/modules/Contacts/metadata/detailviewdefs.php
    to
    <sugar root>/custom/modules/Contacts/metadata

    Edit the copy in <sugar root>/custom/modules/Contacts/metadata and change this line:
    Code:
    'customCode' => '{$fields.full_name.value}&nbsp;&nbsp;<input type="button" class="button" name="vCardButton" value="{$MOD.LBL_VCARD}" onClick="document.vcard.submit();">',
    to this:

    Code:
    //'customCode' => '{$fields.full_name.value}&nbsp;&nbsp;<input type="button" class="button" name="vCardButton" value="{$MOD.LBL_VCARD}" onClick="document.vcard.submit();">',
    Save your changes and check for the vCard button to make sure all is fine.
    ... but the vCard button won't disappear!

    where else to look using 5.1?

    Micha

    OK - now I got it ... thanks 2 all
    Last edited by michamamo2; 2008-09-24 at 02:18 PM.

  5. #5
    jeffbrumbaugh is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    20

    Default Re: Need to disable the "vCard Button"

    I believe the vCard is tied to the "Name" field. If you drop the name field in studio and add first name/last name, the vCard button will disappear.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •