Results 1 to 6 of 6

Thread: Add link on a phone number

  1. #1
    Orbiplanax is offline Member
    Join Date
    Nov 2007
    Posts
    8

    Default Add link on a phone number

    First sorry for my english.

    I try from few day to add link on the phone numbers ( display on the contacts, leads, acount list ).
    I think i must change someone on the template of this page (.\modules\Contacts\index.php )

    I try to add things on this page, but nothing change :
    \modules\Contacts\ListView.html
    \modules\Contacts\tpls\ListView.html

    Merci

    French post
    Last edited by Orbiplanax; 2007-11-27 at 10:12 AM.

  2. #2
    collinlee is offline Sugar Team Member
    Join Date
    Sep 2006
    Posts
    187

    Default Re: Add link on a phone number

    Hi,

    Yes there is some confusion here. What happens for ListViews is that the module's PHP file calls a generic ListView template. For example, in modules/Contacts/ListView.php you have:

    $lv->setup($seedContact, 'include/ListView/ListViewGeneric.tpl', $where, $params);

    So the template is actually the one in include/ListView/ListViewGeneric.tpl

    -Collin

  3. #3
    longreach Guest

    Default Re: Add link on a phone number

    What are you trying to do with the link - make a phone call? If so - with what software - Asterisk, Trixbox, Skype, X-Lite?

    If you are indeed trying to automate dialing out, you might try our free plug-in Click-to-dial for Firefox, by info@hand - it lets you make all phone numbers displayed in the Firefox browser into clickable links that can dial out using any of the telephony systems above.

    http://infoathand.com/iah_pbx.html

  4. #4
    Orbiplanax is offline Member
    Join Date
    Nov 2007
    Posts
    8

    Default Re: Add link on a phone number

    Thanks you
    Yes, i trying to make a phone call. I have look for free plugin but i can't use it. it's just for use a script i have made.

    Now i can create links for phone number. I have modified on the file : Contact.php
    On line 478 : the function get_list_view_data()

    Code:
    $temp_array['PHONE_WORK'] = <a href=\"#\" onClick=\"javascript:window.open('include/mydir/myfile.php?num=".$phone_number_to_call."','','width=800,height=600,toolbar=no,resizable=no,dependent=yes')\">". $temp_array['PHONE_WORK'] ."</a>" ;
    It's ok, i have my popup. But it's not my files who are display but the login page of sugar

    I have seen someone who use open_popup("Contacts", 600, 400 );
    So i try open_popup("include/mondossier/mapopup.php", 600, 400 ); it also not work

    I'm very sorry, for my english

  5. #5
    Orbiplanax is offline Member
    Join Date
    Nov 2007
    Posts
    8

    Default Re: Add link on a phone number

    Nobody know how to open a javascript popup which is not a sugar's module page?

    No problem for open a pop up, but i have always the sugar's login page instead of my personal page.

    thanks
    Last edited by Orbiplanax; 2007-11-28 at 02:47 PM.

  6. #6
    Orbiplanax is offline Member
    Join Date
    Nov 2007
    Posts
    8

    Thumbs up Re: Add link on a phone number

    Yop

    It's ok now. It's beacuse i try to display pages which i have put on te "inclued" directory. When i put them on an other directory it's ok.

    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 8
    Last Post: 2012-02-08, 11:57 AM
  2. Replies: 4
    Last Post: 2008-10-01, 03:21 PM
  3. Add Phone Number to Call Detail
    By Lestonian in forum Help
    Replies: 2
    Last Post: 2008-09-22, 01:14 PM
  4. Fix for the Phone Number Search bug
    By kbrill in forum Downloads
    Replies: 7
    Last Post: 2007-06-27, 05:20 PM
  5. Bug: international phone number formatting
    By rickster in forum Help
    Replies: 1
    Last Post: 2006-08-01, 07:39 PM

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
  •