Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
8 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....
3
votes
1answer
18 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
19 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
30 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 ...
1
vote
2answers
21 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 ...
1
vote
1answer
10 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
33 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 ...
1
vote
2answers
23 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 ...
1
vote
2answers
77 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
1answer
25 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 ...
1
vote
0answers
20 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
1answer
43 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
1answer
24 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
1answer
13 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.
0
votes
0answers
23 views

New Event form opened via .crm-popup stays in modal until “Save and Done”

We open civicrm/event/add?reset=1&action=add link in Drupal node/add form by adding .crm-popup class to it. Event form has several steps to fill ( Location, Online Registration, Fees etc.,) but ...
1
vote
1answer
17 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 ...
4
votes
1answer
252 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 ...
0
votes
1answer
27 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 ...
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 ...
0
votes
0answers
18 views

Owners and Pets register for class (Event)

I want an owner or owners to be able to register for pet training class. There is a single fee for each pet. The pet counts as a contact (Individual->Animal). On registration I want to create ...
0
votes
2answers
30 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 ...
2
votes
1answer
48 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 ...
2
votes
0answers
74 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
33 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 ...
1
vote
1answer
17 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 ...
4
votes
1answer
28 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.
3
votes
1answer
32 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 ...
2
votes
1answer
20 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 ...
3
votes
1answer
41 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: ...
1
vote
1answer
59 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 ...
1
vote
1answer
18 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" ...
3
votes
1answer
39 views

Click-throughs not being recoreded

We sent out a mailing this week - one in a series - and have so far had 1400+ opens from a list of 2600 or so. However, despite the URL Click-through tracking being set to "On" we have only recored 3 ...
2
votes
1answer
56 views

How can I generate an internal URL to a CiviCRM page based on certain parameters?

What functions exist within CiviCRM that make it easy for me to generate internal URLs?
0
votes
1answer
25 views

hey guys, i need some help to add some features to civicrm locally using phpstorm?

the question is how to edit something in contact page and how to debug my code. is there anyway to debug it without install it again to DRUPAL and test my code if its work or not.
3
votes
0answers
118 views

How can I put an AngularJS page inside a crm-popup modal window?

If I add class="crm-popup" to an internal hyperlink in CiviCRM, I can make CiviCRM open the target page inside a modal dialog. Cool! But if the target page is an AngularJS page (e.g. /civicrm/a/#/...
2
votes
1answer
772 views

How can I trigger a selection for a Select2 EntityRef element via javascript?

The CiviCRM EntityRef form element uses a Select2 select box to make lots of CiviCRM forms more awesome. A user can, for example, search for contacts to choose one. Great. I am building an extension ...
4
votes
1answer
35 views

How do I make one hyperlink which shows its target page as a modal dialog when clicked?

There are lots of links in CiviCRM which will: (a) open an overlaid modal dialog when clicked, and (b) open the same content in a new page when Ctrl+clicked or middle-clicked. This is cool and I want ...
2
votes
1answer
58 views

Recommended way to deal with delete action in a page?

When developing extensions I have always followed this path when I had a page listing stuff (for example books) and an action link to delete the book: Create the page and add a link to the form ...
0
votes
0answers
69 views

UML diagram, Use case diagram

I am in need of Use-Case diagram, UML diagrams for CiviCRM. Not because I am very much need of them to use CiviCRM. just to show something in my presentation to my management :) !! . Any pointers ...
1
vote
3answers
152 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 ...
4
votes
1answer
29 views

How do I see which permissions are necessary to execute a given API call?

If I pick a random entity and action, what steps can I take (manually if necessary) to see which specific permissions are necessary for CiviCRM to execute an API call with check_permissions=1?
1
vote
0answers
8 views

Which javascript features can I use in CiviCRM core?

Does CiviCRM have an agreed-upon browser version to target for javascript features? For example: Can I use Object.create() (IE 9+)? Can I use 'use strict'; (IE 10+)? Can I use let (IE 11+)? Can I ...
2
votes
2answers
74 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 ...
1
vote
0answers
682 views

ngChange event fired twice when using multi-select with crmUiSelect

I'm trying to use CiviCRM's crmUiSelect AngularJS directive to create a select2 element in a form. I want to call a function in my controller when the user changes this element, so I'm using the ...
0
votes
1answer
434 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", "...
3
votes
2answers
38 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
0answers
20 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 ...
2
votes
2answers
34 views

How to reset the headless test db?

I'm using headless phpunit tests. I noticed that the first time I do this it pauses and says about installing schema for xxxx - a test database. If you break stuff enough, you can end up with a ...
3
votes
0answers
52 views

Should I use implicit annotation for AngularJS dependency injection?

I am learning AngularJS and have read that it supports three different ways to specify dependencies. Their docs say that inline array notation "is the preferred way to annotate application ...
0
votes
1answer
125 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 ...