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
0 votes
1 answer
28 views

Install Civicrm ESR on Buildkit wp-empty build

I am trying to set up a local development environment to test new extensions with an ESR version of CiviCRM (currently CiviCRM 5.45.6). To this end I use the civicrm-buildkit-docker projekt. So far I ...
2 votes
3 answers
204 views

How to Override System Workflow message template variables, single and batch

My client has advanced invoice requirements. In the past we had a custom Drupal module and a custom template file. Added a link "Print Invoice" to the individual contributions Form.tpl and then did a ...
2 votes
1 answer
39 views

Deny access to a set of records

I've been battering my head against this on-and-off for months now. Why isn't there a simple way to deny access to a specific set of records? We use a lot of groups, so manually assigning each group ...
12 votes
1 answer
1k 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 ...
2 votes
2 answers
55 views

How is Civi::lockManager supposed to be used?

I'm confused about how Civi::lockManager is supposed to be used in handling sql-level locks on certain processes. I'm looking at a few existing code usages (as in Omnipay here and in civicrm core here)...
6 votes
4 answers
860 views

CiviCRM and Docker

Are any of the CiviCRM core team using docker? and is there a preferred installation? I note there are a few drupal docker projects, such as this but couldn't see anything for Civi.
1 vote
1 answer
43 views

Using CRM_Utils_Mail and logs

I have a custom extension which I have working great- sends out email using the CRM_Utils_mail function. The emails go out fine, look fine, but are not registered to the contact's profile (not under ...
5 votes
1 answer
68 views

Will unsupervised dedupe rules be used in API Contact create?

I want to import an old database using API Contact create. In the de-dupe rule documentation it mentions "They are also used when you Import contacts". I see in the API documentation that there exists ...
0 votes
1 answer
64 views

How can I write custom entites/ actions for api v3 - usage of api v4 for scheduled jobs

I want to define some scheduled jobs so that old data is deleted from time to time. For example contacts in trash, mailings older than X year, drafted mailings never sent... For scheduled jobs I need ...
0 votes
1 answer
28 views

Development Environment for Custom Reports?

I'm looking at getting a development environment set up so I can more easily create and test custom reports and templates. Are there any guides on doing this? Would I be better off just setting up a ...
3 votes
2 answers
501 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
2 answers
118 views

How to programmatically check if an extension is installed

I want to progressively enhance one of my extensions by altering the code paths to use another extension, if it's installed, and fall back to my own extension's code if not. How can I check if an ...
1 vote
1 answer
18 views

Security aspects of Civicrm SMS API functionality

We are aiming to implement SMS messaging in the UK Research environment We are concerned about the Information Governance and Data Security aspects of SMS messaging, and are therefore interested in ...
5 votes
2 answers
188 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'...
2 votes
2 answers
94 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? ...
4 votes
4 answers
309 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 ...
4 votes
2 answers
171 views

What character is VALUE_SEPARATOR?

I need to run a MySQL query to split the values in the fee_level field of the civicrm_participant table. I just can't determine what character to use as the delimiter. When I look at VALUE_SEPARATOR ...
1 vote
0 answers
116 views

Angularjs - Loading form in popup

I've seen some old questions about this with limited response so I'm hoping I get better responses with this question. I have an angular form that grabs a bunch of baseline information, and has a ...
0 votes
1 answer
93 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/...
2 votes
2 answers
61 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 ...
2 votes
2 answers
75 views

Help for developing an extension for SMS

We are trying to create a new extension for an SMS provider and after days of struggling, we're still not successful, even if a great part of the job is probably done. We followed the documentation ...
2 votes
3 answers
168 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 ...
3 votes
2 answers
66 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....
7 votes
1 answer
176 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
3 answers
779 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 ...
3 votes
0 answers
228 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 ...
4 votes
2 answers
71 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
1 answer
91 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
2 answers
117 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 ...
1 vote
0 answers
22 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
1 answer
30 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 ...
2 votes
0 answers
33 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
3 answers
918 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
2 answers
319 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
2 answers
67 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
2 answers
814 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
1 answer
102 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
1 answer
43 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
1 answer
44 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
1 answer
59 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.
3 votes
1 answer
55 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
3 answers
414 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
4 answers
89 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
1 answer
79 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
1 answer
174 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
1 answer
65 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
2 answers
115 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
1 answer
20 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
1 answer
178 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 ...
0 votes
1 answer
211 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 ...