Skip to content

Instantly share code, notes, and snippets.

View eileenmcnaughton's full-sized avatar

Eileen McNaughton eileenmcnaughton

View GitHub Profile
It seems like you're asking about the **new configurable CiviCRM Autocomplete powered by Search Kit (SK)**. Here's how this feature works and how you can customize it:
---
## 🔍 What’s “configurable SK autocomplete” in CiviCRM?
CiviCRM has modernized its autocomplete system using Search Kit. This means autocompletion fields (in forms, afforms, SearchKit etc.) now leverage the **SearchDisplay** functionality and return results using the **APIv4 “autocomplete” action**, displayed via a **Select2 widget** ([docs.civicrm.org][1]).
---
ChatGPT wrote this - it has not been separately verified
The New Zealand Taxpayers’ Union (NZTU) is well-known for scrutinizing government spending, but a range of criticisms and controversies have emerged over time. Here's a clearer breakdown:
1. Allegations of being a right‑wing or astroturf group
NZTU is widely considered a conservative, right‑wing pressure group, closely aligned with the ACT and National parties. Its founders have long-standing connections to right‑leaning politics
newsroom.co.nz+15en.wikipedia.org+15reddit.com+15
.
Drupal 7 -> Standalone migrate recipe
In our case we started with a folder structure
->our root(git root)->drupal (webroot)
We decided to use our root as the new webroot - and to transitionally enable BOTH sites ie
- standalone in our root
- drupal 7 in root/drupal (as prior)
1) We moved root/drupal/sites/all/modules/civicrm to root/core and created a symlink where it used to be
2) We moved root/drupal/sites/default/civicrm/extensions to root/private and created a symlink where it used to be
( ! ) Fatal error: Uncaught CRM_Core_Exception: [-26: DB Error: insufficient permissions thrown in /srv/civi-sites/wmf/core/CRM/Core/Error.php on line 986
( ! ) Civi\Core\Exception\DBQueryException: DB Error: insufficient permissions in /srv/civi-sites/wmf/core/CRM/Core/Error.php on line 986
Call Stack
# Time Memory Function Location
1 0.0081 383376 {main}( ) .../index.php:0
2 0.0785 438416 Civi\Standalone\WebEntrypoint::index( ) .../index.php:35
3 0.0785 438760 Civi\Standalone\WebEntrypoint::invoke( ) .../WebEntrypoint.php:21
4 0.0785 438760 CRM_Core_Config::singleton( $loadFromDB = ???, $force = ??? ) .../WebEntrypoint.php:52
5 0.1511 2765328 CRM_Utils_Hook::config( $config = class CRM_Core_Config { private ${CRM_Core_Config_MagicMerge}map = ['doNotResetCache' => [...], 'inCiviCRM' => [...], 'keyDisable' => [...], 'userFrameworkFrontend' => [...], 'userPermissionTemp' => [...], 'dsn' => [...], 'initialized' => [...], 'userFramework' => [...], 'userFrameworkClass' => [...], 'userFrameworkDSN' => [...], 'use
[
[
"SavedSearch",
"save",
{
"records": [
{
"name": "DR_high_level_dedupe_report",
"label": "DR: high level dedupe report",
"api_entity": "Activity",
**** Clone Donut wiki
src/donut exists. Remove and re-clone Donut wiki repo? [yN] y
Are you sure? This will delete src/donut, including local branches. [yN] y
Cloning into 'src/donut'...
remote: Counting objects: 177972, done
remote: Finding sources: 100% (177972/177972)
remote: Getting sizes: 100% (91133/91133)
remote: Compressing objects: 100% (4753839/4753840)
remote: Total 177972 (delta 145491), reused 104765 (delta 82325)
@eileenmcnaughton
eileenmcnaughton / gist:d0fd748092ab7b6492ddc2155c99d654
Created March 26, 2025 02:40
securely check a password is not in the have-i-been-pawned database
<?php
/**
* Basic script to securely check if an entered password is in a known security breach
*
* Allows you to avoid sending your password data out...
* https://www.troyhunt.com/ive-just-launched-pwned-passwords-version-2
*
* Sample output
* php pwncheck.php
<?php
namespace Civi;
use Civi\Core\Exception\DBQueryException;
/**
* Queue helper.
*
* This comes from https://gist.github.com/totten/fa830cfced9bb7a92dea485f5422055a
civibuild create wmff
drush @wmff cvapi Contact.create first_name=Bob last_name=Robertson [email protected] contact_type=Individual
drush @wmff cvapi Contact.create first_name=Bob last_name=Robertson [email protected] contact_type=Individual
drush @wmff cvapi Email.create contact_id=207 [email protected] location_type_id=Billing
drush @wmff cvapi Email.create contact_id=207 [email protected] location_type_id=Other
drush @wmff cvapi Email.create contact_id=208 [email protected] location_type_id=Billing
Updgrader function
/**
* Delete now-orphaned records in civicrm_mailing.
*
* @return bool
*/
public function upgrade_4385() : bool {