Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
8

As of CiviCRM v5.12.1 the menubar color is a configurable setting. On your main site you can change the color via the UI by visiting Administer -> Customize Data & Screens -> Display Preferences. Since this preference is stored in a system setting, you can override it on your various dev/staging sites by adding a line like this to civicrm.settings.php: ...


4

[This all assumes you have civicrm-buildkit already working and that you can run CiviCRM phpunit tests successfully from the command line.] 1. Tell Netbeans which phpunit executable you're using. Go to Tools » Options, then PHP tab, PHPUnit subtab. Set the path of your PHPUnit script. See screenshot: 2. Create a shell script with your environment ...


3

Here is an example using the named parameter syntax: CRM_Utils_Hook::singleton()->invoke( ['pdf', 'pdf_variables', 'receipt'], $pdf, $pdf_variables, $receipt, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, 'cdntaxreceipts_writeReceipt'); One advantage of this syntax, is that extension can then implement ...


2

There is now an extension for EventBrite integration.


2

With even version 5 of civicrm it is still using angular 1.5. I checked it on the demo site https://demo.circle-interactive.co.uk/civicrm/a on the console i ran: angular.version, and it returned this :- {full: "1.5.11", major: 1, minor: 5, dot: 11, codeName: "princely-quest"}


2

Ok, I think I figured this bit out by using... $this->_contactId = CRM_Utils_Request::retrieve(... and making sure the calling url has cid={$contactId} included. I'm getting the contactID in the php code, which will allow me to execute the queries and such I need to list out the details. Norm


1

The command you're running, on Ubuntu 16.04, attempts to install the nodejs-legacy package. As it says, it can't because it relies on a particular version of nodejs that won't be installed. So first - this problem should be replicable with a simple sudo apt install nodejs-legacy, which simplifies the variables and takes CiviCRM out of the equation. It's ...


1

From what I can see, it seems that SPIP is a CMS and not a CRM. While there are no plans for native integration between CiviCRM and other CMSes beyond the four currently supported, many organizations still integrate CiviCRM with their existing CMS. Simple integration options include remote profile submissions using snippets. You can also use remoteform, ...


1

This isn't really a question specific to civicrm, but in general unless you never plan to upgrade or do any customization after the initial installation, you'll want to have the dev to production direction set up anyway.


1

You can add the class "crm-loading-element" to the element, and then in your ajax success handler remove the class. If you want the actual CiviCRM logo, you can add both the classes "blockUI blockOverlay" instead, but depending on the field size it may look off. The other one seems to fit better. If you want the screen to gray out the way some of the ...


1

Ok, again solved my own problem after doing more research. This apparently is a known issue with mySql and MariaDB where strict mode seems to be default. Adding sql_mode="" to your /etc/my.cnf file will resolve the issue.


1

Based on the answer of @artfulrobot (thanks!), i have made a version of the code that use the definition of the custom field itself. If we have a default value, then force the creation of the field, otherwise, just ignore. Of course, it's probably a bit slower because we do some extra api calls, but it means we could change the defaults in the UI without ...


1

I use Civi::log()->debug('my message') to write to the log file.


Only top voted, non community-wiki answers of a minimum length are eligible