Skip to content

Instantly share code, notes, and snippets.

View eileenmcnaughton's full-sized avatar

Eileen McNaughton eileenmcnaughton

View GitHub Profile
Index: api/v3/MailingJob.php
===================================================================
--- api/v3/MailingJob.php (revision 0)
+++ api/v3/MailingJob.php (revision 0)
@@ -0,0 +1,65 @@
+<?php
+// $Id$
+
+/*
+ +--------------------------------------------------------------------+
<?php
/**
* @file
* Migrate members from old DB to CiviCRM
*/
/**
*
*/
@eileenmcnaughton
eileenmcnaughton / gist:8037128
Last active December 31, 2015 19:59
Mock code of what api test for new partial payments would look like
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
<h1>Hard Coded report name - Current Case Clients By Gender</h1>
<div id="gender"/>
<script>
'use strict';
var data = {crmAPI entity="report_template" action="getrows" instance_id=51 report_id="case/pivot"}
{literal}
//data['values'] = {0 : {'gender_id_1' : "26", 'gender_id_2' : 36, 'gender_id_3' : 0, 'gender_id_null' : 1, 'gender_id_total' : 63}})
dc.pieChart("#gender")
.width(300)
{assign var='instance_ids' value=','|explode:"51,52,59,54,55"}
{foreach from=$instance_ids item=instance_id}
<div><h1 id='report-title-{$instance_id}'>Hard Coded report name</h1>
<div id="rpt-{$instance_id}"></div>
</div>
{/foreach}
<script>
'use strict';
var reports = [];
<div><input name="hidden_custom" type="hidden" value="1" />
<input name="hidden_custom_group_count[]" type="hidden" value="1" />
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
CREATE TABLE `civicrm_system_log` (
`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key: ID.',
`contact_id` INT(11) NULL DEFAULT NULL COMMENT 'Optional record of the logged in user',
`type` VARCHAR(64) NOT NULL DEFAULT '' COMMENT 'Type of log message',
`message` LONGTEXT NULL COMMENT 'JSON encoded data',
`severity` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'I dont really want to use a lookup here as I want to log before any processing if desired',
`timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Unix timestamp of when event occurred.',
PRIMARY KEY (`id`),
INDEX `type` (`type`),
INDEX `contact_id` (`contact_id`),
diff --git a/42mail.tpl b/42mail.tpl
index 3e40d51..d55e664 100644
--- a/42mail.tpl
+++ b/42mail.tpl
@@ -23,7 +23,9 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
-
+<div id="civicrm-multipage-enabled" style="display: none;"></div>