Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
0answers
8 views

Refresh Parent Popup from Second Popup

I know this may seem like a confusing question. I am building my extension which has a popup within a popup. The first popup is to edit the parent entity. Within that popup form, there is a sub-form, ...
5
votes
1answer
42 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
31 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
2answers
34 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? ...
1
vote
1answer
28 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 ...
2
votes
1answer
10 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
37 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
26 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
35 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
33 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
17 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
71 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
34 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 ...
4
votes
3answers
98 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
31 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
50 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
43 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
14 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.
1
vote
1answer
21 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
327 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
30 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
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 ...
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 ...
2
votes
0answers
79 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
34 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
21 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 ...
3
votes
1answer
32 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
47 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
22 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 ...
4
votes
1answer
49 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: ...
2
votes
1answer
80 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
19 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
40 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
74 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
134 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
1k 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
40 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
63 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
92 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 ...
3
votes
3answers
209 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
32 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
13 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
92 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
957 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
562 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
39 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
21 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 ...