Questions tagged [developer]

A developer is a person with the technical IT skills to change the code base of CiviCRM. Preferably s/he knows about PHP, SQL, HTML and Javascript.

Filter by
Sorted by
Tagged with
2
votes
2answers
65 views

Custom field default values at database level, not form level?

When you set a default value for a custom field, it only exists at the form level. Is there a practical way to enforce them at the database level? For instance, by altering the SQL table definition? ...
3
votes
2answers
31 views

CiviReport - Error when registering new Report

I've generated a new report in my extension, but when I try to register it with CiviReport, I'm getting the following DB error: Database Error Code: Field of view 'sporti62_wp4....
2
votes
3answers
134 views

How to customise the activities tab listing

I used to hack the Activities BAO to change the search results to make the subject line something more useful; i.e. extract other data from particular activity types and auto-create a summary in place ...
7
votes
1answer
156 views

Are we going to switch to angular 2?

Angular has a new shiny version that seems to offer several new features and a faster experience. https://angular.io/features.html https://medium.com/google-developer-experts/angular-2-introduction-...
4
votes
3answers
499 views

How to set a default value for a custom field

EDIT: this is NOT working, at least in CiviCRM 5.24.2 EDIT: this is done automatically by CiviCRM from 5.18+ I have a custom fieldset on Contributions that uses an option list. The option list has a ...
0
votes
1answer
61 views

How can I setup a Manage Magazine Subscriptions in CiviMember

I'm new to this CiviCRM and it looks great so far. We are looking to using it in out Magazines. But we need the functions as per blog below. How can we do this? thanks. https://civicrm.org/blog/johnd/...
3
votes
0answers
49 views

Is there any developing activity to integrate Elementor and CiviCRM?

Probably many of you know Elementor, a powerful and high diffused page builder for the WordPress world. Elementor works having widgets, which realize tasks in shaping, db connections and dynamic ...
3
votes
2answers
37 views

Custom API Action: Access Request Body

I'm developing a custom API v3 action which is intended to handle a webhook request from Zoom (https://marketplace.zoom.us/docs/api-reference/webhook-reference). Zoom follows REST standards by putting ...
4
votes
1answer
57 views

How to manage AngularJS dependencies within an extension

I'm creating an extension and using AngularJS within it. I've found a 3rd party AngularJS library that I'd like to use in my extension (in this case ngInfiniteScroll). What is the proper way to make ...
3
votes
2answers
93 views

Create new contact sub-type when extension is installed

I'm building a new extension using civix and buildkit. I need to create a new ContactType (sub-type of individual) on install (if it doesn't already exist). I know how I would do it, but I'd prefer ...
2
votes
1answer
29 views

Where to Download 5.13.7 ESR

Where/how do I get the tarball for CiviCRM 5.13.7 ESR Drupal 7 edition. I have two different $20/month membership subscriptions to CiviCRM. Logged in to my civicrm.org account I have twice filled ...
1
vote
0answers
19 views

Create API not updating database in new extension - what have I missed?

Help, built new extension, form displays, accepts input, but never updates the database The returns I get from all functions do not show errors. What the heck am I doing wrong???? It's going to be ...
1
vote
1answer
18 views

API Explorer 4 under Joomla and Windows/IIS gives fields like {{ ts('CiviCRM API v4') }}

I am running a development system under Joomla and IIS with CiviCRM 5.19.1 (5.19.0 had the same issue). When using API Explorer 4 I get windows like this. Under LAMP, the window makes sense. Any ...
4
votes
3answers
173 views

How to create a hook in an extension?

I want to give others the chance to do something when certain events happen in my extension. So to be clear: I'm not wanting to use existing hooks in my extension, I'm wanting to create a new hook ...
2
votes
0answers
27 views

How to loop and update BAO objects

I was trying to be down with the cool kids and use DB_Object models for a looped database update. I've found somethning I thought should work, but doesn't so I must be doing/understanding something ...
6
votes
3answers
569 views

What's the correct way to log debug info to log?

The "current" wiki says to use CRM_Core_Error::debug and says, "Most runtime errors are logged here, as well as data that you explicitly write to log using the CRM_Core_Error::debug log=true parameter....
3
votes
2answers
207 views

Which version of Angular/AngularJS does CiviCRM use?

I'm working on learning Angular/AngularJS for use with CiviCRM and confused about which version I should be learning. How can I see which version CiviCRM is using?
1
vote
2answers
58 views

Where is the developer documentation for making core CiviCRM database changes, to the schema and to the initial data?

I'm working on a (newer) PR for CRM-19751, which requires some database schema changes and addition of an option group with its options. Obviously I knew something about this when I created the ...
5
votes
2answers
495 views

CiviCRM integration with Eventbrite

I would like to create/update events in CiviEvent by using Eventbrite webhooks. One of the requirements is having an endpoint page that will receive data sent by Eventbrite API. How can I create that ...
5
votes
1answer
60 views

How do I make the menubar a different color on my dev/staging sites

Wouldn't it be nice if I could visually distinguish my various dev/staging sites with a different menubar color for each one? Is this possible in CiviCRM and if so what version?
1
vote
1answer
39 views

Is it better to install civi (Wordpress) on a dev server first then migrate to production or is the reverse better?

Assuming the goal is to install clones of Civi + WP + MySQL on two servers (let's call them "production" and "dev" with those roles in mind): These days, is it better to install first on dev then ...
1
vote
1answer
31 views

How do I use the CiviCRM “spinner” in an extension?

My extension places a field on a page that loads data via AJAX from the database. The field appears blank until the data is loaded. How can I show the CiviCRM spinning logo if my data isn't loaded ...
3
votes
1answer
51 views

How can I help review/test a Webform CiviCRM PR

Please describe the exact steps and requirements - of what I can do if I see a PR in https://github.com/colemanw/webform_civicrm/pulls - that I think would be useful to our organization.
11
votes
1answer
653 views

How would you anonymise (or redact) private data for developer stage?

Private information is confidential. However for developers to debug errors they need a copy of your data that's close enough to production to effectively debug. How can we redact, strip or remove ...
3
votes
1answer
52 views

what is the correct method for upgrading an extension on a live site after pulling its updated code from a development site?

We use a development site and github.com repository, and then pull from github.com down to our live site. So when upgrading our extensions we update the code on our dev site, test it's all ok, then ...
3
votes
3answers
284 views

ER diagram for the latest Civicrm , Foreign key in Structure, test cases/plans

Where can I get the ER diagram for the latest CiviCRM? I need it for internal reporting purposes in our organization. I am able to download the Table structure from phpMyAdmin. However, it does not ...
1
vote
4answers
75 views

How do I control the order in which hooks fire?

If I have two extensions that both use, say, hook_civicrm_post, how can I control the order in which the two extensions fire?
3
votes
1answer
50 views

How do I run CiviCRM PHPUnit tests from within Netbeans?

I want to run PHPUnit tests from within my IDE - and I know Karin G. has created excellent directions for PHPStorm, but I use Netbeans 8.2. What can I do?
2
votes
1answer
118 views

Installation issues - unmet dependencies

trying to install the civicrm buildkit using the instructions found here : https://docs.civicrm.org/dev/en/latest/tools/buildkit/ I am on ubuntu 16.04. When I run curl -Ls https://civicrm.org/get-...
0
votes
1answer
50 views

Is it planned to use SPIP as a basis CMS for CIVICRM?

SPIP is a multilingual open-source CMS created in 2001, and a lot of non-profit use it as their website tool in France and other countries. Is it planned, or do you heard about some people willing to ...
2
votes
2answers
48 views

Development - Refresh of parent page

Wordpress with CiviCRM 5.3.2 Hi guys, I'm struggling with a small problem. I've added a tab (using tabset) to create a new tab while viewing a contact. That tab lists any dogs registered to that ...
2
votes
1answer
18 views

Development on a plugin - How to transfer values

I have created a new plugin structure using civix. It has created the elements I wanted in the database. I have used dogregistry_civicrm_tabset to add a tab to my contacts pages. I used civix to ...
0
votes
1answer
139 views

CiviCRM BuildKit install fails on Ubuntu 18.04.1 LTS

Running the BuildKit installer script on Ubuntu 18.04.1 LTS doesn't work - it fails trying to resolve the conflict between the openssl libraries used by Ubuntu's NodeJS/NPM packages and the libssl-dev ...
3
votes
1answer
286 views

Any CiviCRM integrations with Zapier or IFTTT?

There was a forum thread some months back regarding integrations with external tools like Zapier and If This Then That (IFTTT), which automate tasks based on triggers between separate apps. Has ...
0
votes
1answer
172 views

How to create entity in CiviCRM

I am trying to create the Entity in CiviCRM with my extension. But I am struck here. Unable to find the XML folder in my CiviCRM installation. After running the below command civix generate:entity ...
2
votes
1answer
50 views

Long running Scheduled Job

In the Areas extension (https://lab.civicrm.org/extensions/org.civicoop.areas) an administrator can define areas such as West Coast and a contact living in a city in West Coast is linked to the area ...
0
votes
1answer
807 views

Multi-select not working with crmUiSelect AngularJS select2 directive

I created a select2 element with CiviCRM's crmUiSelect AngularJS directive by using the following code in my controller: $scope.options = [ {"value": "foo", "label": "Foo"}, {"value": "bar", "...
1
vote
0answers
23 views

Contact SubTypes and Display Preferences

I'm really trying to utilize the core CiviCRM for my custom purposes by using the tools provided. I need to have a database of dogs with specific custom fields, that are related to an owner (Contact)....
0
votes
2answers
36 views

How can I use the Omnipay processor to audit missing payments?

I was told that I could use the Omnipay processor to detect missing payments. I've determined that I need the API action PaymentProcessor.getmissing, and I can call this with: wp cv api ...
3
votes
1answer
20 views

Add language files in civibuild

Checking the civibuild create parameters I do not see an option to include the translation/language files? That would be really helpfull, I now add them manually after a civibuild.
4
votes
1answer
137 views

Fetch data over the web: curl, file_get_contents or something else?

I've written quite a few extensions that need a way to fetch data from the web. Sometimes I've used file_get_contents sometimes cURL, other times I've sucked in (geddit!) Guzzle. Each of those has it'...
4
votes
1answer
33 views

How does in-line editing editing work in CiviCRM?

Is there a reference anywhere for the in-line editing, e.g., 'Click Here to Edit' in CiviCRM? I need something similar for my extension and want to reuse as much as I can.
1
vote
1answer
24 views

How to extract views integration setting from the command line?

Is there a way to output from the command line the views integration settings as listed in Administer > System Settings > CMS Database Integration? I need this as part of our upgrade script to ...
0
votes
1answer
47 views

Send new SMS from SMS callback function

I need to automatically send MT SMS message as a response to forwarded MO SMS message. For that purpose, I created a new send_mt() function, but I cannot access Provider object to pick up parameters ...
3
votes
2answers
58 views

How do I write the _spec function for my custom API?

When I run... civix generate:api foo bar ...civix generates the following code: function _civicrm_api3_foo_Bar_spec(&$spec) { $spec['magicword']['api.required'] = 1; } From this example, I ...
1
vote
1answer
32 views

Is the free() method being called inadvertently on my DataObject?

This behaviour happens on a certain environment, but not on another. I am trying to work out why. There is a while loop in CRM_Mailing_BAO_MailingJob::deliver() that cycles through emails to be ...
4
votes
1answer
159 views

How can I use CiviCRM's cache table?

When developing an extension, I'd like to cache some data to avoid the expense of re-calculating it. Is there a civicrm version of the Drupal's caching interface for developers?
2
votes
0answers
84 views

Generate new entity in CiviCRM extension

I have same problem mentioned here: How to add a new entity in CiviCRM extension I followed the documentation to generate skeletal files and completed steps 1 - 3. However I get stucked when ...
0
votes
1answer
40 views

LTS requirements?

4.6.x is the LTS version, right? Previously, before the documentation was "upgraded" I could switch to previous versions and see what their system requirements were. Now I only see "latest", which I ...
6
votes
4answers
252 views

API: How do I delete a custom value?

I may be blind but I can't see any api call to delete a custom value?! CustomValue entity is missing a delete action. What am I missing?