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 ...
Simon Hermann's user avatar
2 votes
1 answer
38 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 ...
Gav Massingham's user avatar
0 votes
1 answer
63 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 ...
Tobias Krause's user avatar
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 ...
Dave's user avatar
  • 236
0 votes
2 answers
116 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 ...
artfulrobot's user avatar
  • 3,910
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)...
TwoMice's user avatar
  • 1,794
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 ...
John Boucher's user avatar
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 ...
Norm Dressler's user avatar
1 vote
0 answers
114 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 ...
Norm Dressler's user avatar
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 ...
Guillaume Sorel's user avatar
3 votes
0 answers
227 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 ...
Francesco Garganese's user avatar
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 ...
Rupert Raphael Amodia's user avatar
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 ...
Jason Brown's user avatar
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 ...
Shai's user avatar
  • 609
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 ...
Simon Walden's user avatar
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 ...
Stephen Palmstrom's user avatar
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 ...
artfulrobot's user avatar
  • 3,910
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?
Coleman's user avatar
  • 17.5k
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 ...
Harrumph's user avatar
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? ...
Jon G - Megaphone Tech's user avatar
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 ...
Jon G - Megaphone Tech's user avatar
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....
Norm Dressler's user avatar
3 votes
1 answer
78 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?
Jon G - Megaphone Tech's user avatar
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-...
user6620's user avatar
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 ...
Cyril Marion's user avatar
2 votes
2 answers
114 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 ...
Norm Dressler's user avatar
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 ...
Norm Dressler's user avatar
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 ...
HomoTechsual's user avatar
  • 1,128
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 ...
TwoMice's user avatar
  • 1,794
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 ...
artfulrobot's user avatar
  • 3,910
2 votes
1 answer
67 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 ...
Jaap Jansma - CiviCooP's user avatar
1 vote
0 answers
28 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)....
Norm Dressler's user avatar
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/...
Dutch's user avatar
  • 1
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.
KarinG - Semper IT's user avatar
3 votes
1 answer
26 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.
ErikH - CiviCooP's user avatar
1 vote
1 answer
26 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 ...
ñull's user avatar
  • 1,208
5 votes
2 answers
812 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 ...
Djordje Marjanovic's user avatar
0 votes
1 answer
59 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 ...
Djordje Marjanovic's user avatar
1 vote
1 answer
35 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 ...
michaelmcandrew's user avatar
0 votes
2 answers
48 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 ...
Jon G - Megaphone Tech's user avatar
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 ...
Andyg8's user avatar
  • 1,611
2 votes
0 answers
94 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 ...
fconelli's user avatar
0 votes
1 answer
46 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 ...
ñull's user avatar
  • 1,208
1 vote
1 answer
28 views

How can I get $params into my own scheduled job?

Looking for some help on getting $params to be passed on from the scheduled job -> GUI page -> into my scheduled job; so: function civicrm_api3_job_ecocalculate($params) { I'd like to be able to ...
KarinG - Semper IT's user avatar
4 votes
1 answer
46 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.
Mike Steigerwald's user avatar
4 votes
2 answers
170 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 ...
Mike Steigerwald's user avatar
2 votes
1 answer
25 views

Custom Top Donors (Contributions) report with the name of Relationship Managers

Followed the instructions on civix and built an extension, copied the Top Donors report and set up the new template. Now I see the original report. Need to modify the php so that I can pull in the ...
Onglipo's user avatar
  • 21
4 votes
1 answer
102 views

Within an extension how can load a custom `Civi` name-spaced class?

Within my extension I can load classes from CiviCRM's core codebase like this: $foo = new \Civi\Core\AssetBuilder(); And I can also load custom classes that I've written in my extension like this: ...
Sean's user avatar
  • 3,158
2 votes
1 answer
130 views

Multiple values for custom fields in Activities?

Anyone has seen any custom implementation/extension of custom group multiple values for Activities? Since we are using Activities for many different scenarios, many times the requirement of having ...
luciano_s's user avatar
  • 556
1 vote
1 answer
24 views

How can I make civibuild use "Seven" as the default Drupal theme instead of "Bartik"?

Every time I run civibuild create or civibuild reinstall to create a local Drupal/CiviCRM development site, I find myself running drush vset theme_default seven afterwards so that I get the "Seven" ...
Sean's user avatar
  • 3,158