Skip to content

Instantly share code, notes, and snippets.

View xurizaemon's full-sized avatar
🌻
SPRING

Chris Burgess xurizaemon

🌻
SPRING
View GitHub Profile
@xurizaemon
xurizaemon / civicrm-3.4.x-upgrade.patch
Created May 6, 2012 00:15
CiviCRM Upgrade to 3.4.8 - fix issue with missing civicrm_preferences.domain_id column
diff -urw /tmp/civicrm/CRM/Core/BAO/Preferences.php civicrm/CRM/Core/BAO/Preferences.php
--- /tmp/civicrm/CRM/Core/BAO/Preferences.php 2011-04-27 23:17:34.000000000 +1200
+++ civicrm/CRM/Core/BAO/Preferences.php 2012-05-06 11:57:35.000000000 +1200
@@ -49,7 +49,7 @@
static function systemObject( ) {
if ( ! self::$_systemObject ) {
self::$_systemObject = new CRM_Core_DAO_Preferences( );
- self::$_systemObject->domain_id = CRM_Core_Config::domainID( );
+ //self::$_systemObject->domain_id = CRM_Core_Config::domainID( );
self::$_systemObject->is_domain = true;
@xurizaemon
xurizaemon / mpgClasses.php
Created May 25, 2012 08:28
Moneris PHP library
<?php
#################### mpgGlobals ###########################################
class mpgGlobals{
var $Globals=array(
@xurizaemon
xurizaemon / extIPN.php
Created May 25, 2012 08:33
CiviCRM shared IPN wrapper
<?php
/**
* Until CiviCRM ships with a method to allow extensions to receive IPN,
* this file needs to be copied to your civicrm/extern folder for full
* IPN functionality.
*/
session_start( );
require_once '../civicrm.config.php';
@xurizaemon
xurizaemon / CRM-8873-4.patch
Created May 29, 2012 01:55
CRM-8873-4.patch
diff -urw /tmp/c3d6/sites/all/modules/civicrm/CRM/Core/Extensions.php CRM/Core/Extensions.php
--- /tmp/c3d6/sites/all/modules/civicrm/CRM/Core/Extensions.php 2012-05-29 13:40:25.000000000 +1200
+++ CRM/Core/Extensions.php 2012-05-29 13:53:59.107529815 +1200
@@ -341,15 +341,15 @@
$outdated = (int) $timestamp < ( time() - 180) ? true : false;
if( !$timestamp || $outdated ) {
- $remoties = $this->grabRemoteKeyList();
+ $remotes = $this->grabRemoteKeyList();
$cached = false;
+------------------------------------------------+
| |
| +--------------------------------------------+ |
| | | |
| | | |
| +--------------------------------------------+ |
| |
| +-------------------+ +----------------------+ |
| |node body | |view1 | |
@xurizaemon
xurizaemon / CRM-9779-4.1.3.patch
Created June 13, 2012 11:16
CRM-9779 rebuilt for CiviCRM v4.1.3
index CRM/Core/Payment.php
--- a/CRM/Core/Payment.php 2012-06-13 23:18:13.518639036 +1200
+++ b/CRM/Core/Payment.php 2012-06-13 23:18:02.198639237 +1200
@@ -202,5 +202,74 @@
function isCancelSupported(&$paymentObject) {
return method_exists(CRM_Utils_System::getClassName($paymentObject), 'cancelSubscription');
}
-}
+ /**
<?php
$lyrics = array(
'Never gonna give you up',
'Never gonna let you down',
'Never gonna run around and desert you',
'Something something something, and hurt you',
);
foreach ($lyrics as $lyric) {
@xurizaemon
xurizaemon / example-drush-civicrm.make
Created June 21, 2012 22:06
example drush makefile
;; simplified example, this is snipped from http://github.com/GiantRobot/drush-makefiles which is slightly outdated
; Drush_make API version
api = "2"
; Drupal core
core = "7.x"
projects[drupal][version] = "7.14"
; CiviCRM core
- $this->removeFiles();
- $this->_removeExtensionByType();
- $this->_removeExtensionEntry();
+ if ($this->_removeExtensionByType()) {
+ if ($this->_removeExtensionEntry()) {
+ if ($this->removeFiles()) {
+ return TRUE;
+ }
+ }
+ }
@xurizaemon
xurizaemon / openid_selector-1350732-22-update_fb_script.patch
Created August 17, 2012 00:39
not tested, just using gist as a remote copybuffer
diff --git a/openid_selector_fb.js b/openid_selector_fb.js
index 3ff0024..d54576d 100644
--- a/openid_selector_fb.js
+++ b/openid_selector_fb.js
@@ -13,7 +13,7 @@ delete providers_large[replace_id];
providers_large.facebook = {
name: 'Facebook',
- url: "javascript: $('.fb-login-button a').click();"
+ url: "javascript: FB.login();""