CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Community Sponsored Improvements (Moderator: Donald Lobo) »
  • adding callto:// link to phone numbers
Pages: [1] 2

Author Topic: adding callto:// link to phone numbers  (Read 15446 times)

businessbroker

  • Guest
adding callto:// link to phone numbers
August 02, 2008, 06:59:19 am
I can support callto:// link creation in tpl file of phone numbers with international phone prefix coming from nation of contact

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: adding callto:// link to phone numbers
August 09, 2008, 01:36:34 am
Good idea

I think the country table has already a field for the prefix (or shouldn't be complicated to add)

As for adding the prefix, I suppose that's a bit more complicated than that, as the prefix might already be in the phone field, with various encoding (eg 0041 or +41 or ++41 for swiss numbers)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

businessbroker

  • Guest
Re: adding callto:// link to phone numbers
August 09, 2008, 05:27:02 am
ok, now I have more clear ideas, I think the best street to take is it:
1) if importing phone numbers, take care to add in the csv file to import the international prefix
2) if adding data from registration form: ask to people inserting data to write also the international prefix

then voipstunt and similars go both with 0041 or +41 or ++41

at my eyes this look to be the more easy and elastic way, trying to skipe errors coming from internationa companies or people
for exampl I have landline phone in italy and london and mobile phone in italy, poland and soon in brasil but I'm italian, and my international prefix is not always 0039 , bu also 0048 etc....

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: adding callto:// link to phone numbers
August 09, 2008, 07:53:48 am
Well, then that's just a change on the template then.

As for having users and end users that are disciplined enough to add the prefix in a correct format, and all the time, I have to say that I haven't experienced it, no matter how hard I've tried... but that's probably because I'm not in a country as disciplined as Italy ;)

If you find a list of country code prefix, could you update the civicrm table with it ?

X+

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: adding callto:// link to phone numbers
August 09, 2008, 08:20:54 am
The civicrm_country table does contain columns for idd_prefix (between country) and ndd_prefix (within country) which could be populated and used.
Protect your investment in CiviCRM by  becoming a Member!

businessbroker

  • Guest
Re: adding callto:// link to phone numbers
August 14, 2008, 07:35:10 pm
in the next 10 days I'll give to my developer to work on this little project, i just need to know if there are some changes on tpl files from 2.0.5 to 2.1 alfa2 in listing, edit and view of contancts here a sample of case of organizations:

http://sandbox.civicrm.org/civicrm/contact/search?_qf_Basic_display=true&qfKey=319e496ab3aeca69bac0aef520a016bb
http://sandbox.civicrm.org/civicrm/contact/add?reset=1&action=update&cid=327
http://sandbox.civicrm.org/civicrm/contact/view?reset=1&cid=327

for example:
http://sandbox.civicrm.org/civicrm/contact/add?reset=1&action=update&cid=327
and
http://sandbox.civicrm.org/civicrm/contact/view?reset=1&cid=327

adding a link with callto:// function n the phone number or close to field of phone number in case of edit form (edit page is very comfortable while at phone and editing data bout the contact, but also first to go to edit some people could like to click the phone call in advance.. to use less time in work)

businessbroker

  • Guest
Re: adding callto:// link to phone numbers
August 14, 2008, 09:28:50 pm
I thinked about your words, and you are right, is mroe simple don't ask to all people to insert international code (many peopledon't know it) and don't loose time addign international code anytime we import data, because strange people like me with many phone numbers in many nations is probably less of 1% and is better to do 80% of work in 20% of tiem instea that stay all the time on computer adding data, me and all my clients.. so now i go to check the table you told me and i go to populate data, also htis work that i'm doing could help commnity? also if i do only partially? because I work only with main world countries, not all..

businessbroker

  • Guest
Re: adding callto:// link to phone numbers
August 14, 2008, 09:36:02 pm
for who don't know like me few minutes ago, here is exlanation of difference between "beteen country" and "within country" prefix:
IDD Prefix (International Direct Dialing) and country code:

http://www.kropla.com/dialcode.htm

I checked this table civicrm_country  and I know that for voip systems the country code is enough to cal all around the world, also without ndd and idd:
I'll try to populate only the country code, and do the tpl work and then after 25 august (or first of this sunday) I'll give you news about it
I added prefix to about 60 countries (of a total of more of 250), this part of work could be useful for community? in which format is better that i export it, wnd whre I'll give it, to who? here in forum orwhere?

looking quickly db, it look that is missing vatican city , that has +39 like italy or also : +379
and I don't understand good the difference between "Korea, Republic of" and "Korea, Democratic People's Republic of" when instead I know: korea (north) and korea (South)
« Last Edit: August 14, 2008, 11:15:17 pm by businessbroker »

businessbroker

  • Guest
Re: adding callto:// link to phone numbers
August 20, 2008, 08:03:47 am
to add the callto:// link with international country prefix to:
contacts results,
view contacts.
edit contacts.
On which tpl files exactly I have to work on?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: adding callto:// link to phone numbers
August 20, 2008, 09:28:33 am
View source, there is a comment about the location of the file
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

businessbroker

  • Guest
Re: adding callto:// link to phone numbers
August 24, 2008, 07:32:24 am
location file founded, but now I have problem to find the connection between the contact and him country, I don't find it in Db, where I have to look exactly please?

businessbroker

  • Guest
Re: adding callto:// link to phone numbers
August 28, 2008, 08:22:12 am
here attached is a sample of the work that I'm doing, to add butttons to phone with a click via voip
it ould be used by community by default os as option in configuration?

businessbroker

  • Guest
Re: adding callto:// link to phone numbers
August 30, 2008, 06:51:37 pm
work done! prefix of phone numbers change when changing nation in contact, ye!
My super developer done changes in these 3 files for this:
/administrator/components/com_civicrm/civicrm/templates/CRM/Contact/Form/Selector.tpl
/administrator/components/com_civicrm/civicrm/templates/CRM/Contact/Form/Phone.tpl
/administrator/components/com_civicrm/civicrm/templates/CRM/Contact/Page/View/Tabbed.tpl
where I have to publish or put these files to evaluate to add them in a future release?

businessbroker

  • Guest
Re: adding callto:// link to phone numbers
August 31, 2008, 11:15:05 am
what I have to do to purpose this adding to a new version of civicrm?
I got experience in many profit and not profit telemarketing realities, and they are all excited to use tools like this: phone with a click instead to get stressed loosing time an mind writing numbes by hand or with copy and paste.. thsi is soul of part of crm!
also vtiger has a similar function, just is less nice, because less comfortable, but in listing of contacts give option to click on links and phone directly, is just mising in most useful part: view and edit contacts, and I done for civicrm!
I hope to receive some positive answer so much..

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: adding callto:// link to phone numbers
August 31, 2008, 11:54:03 am

can you please do the following:

1. Make sure you read and understand: http://civicrm.org/licensing

2. File an issue on http://issues.civicrm.org/

3. Attach your changes as a diff to the issue.

We'll check it out and potentially integrate the changes in the 2.2 release

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Community Sponsored Improvements (Moderator: Donald Lobo) »
  • adding callto:// link to phone numbers

This forum was archived on 2017-11-26.