Skip to content

Instantly share code, notes, and snippets.

View brookinsconsulting's full-sized avatar
😀
Creating NeXT Generation eZ Platform Software

Brookins Consulting brookinsconsulting

😀
Creating NeXT Generation eZ Platform Software
View GitHub Profile
@brookinsconsulting
brookinsconsulting / kernel_patch_for_ezpublish46_lib_ezutils_for_php54.patch
Created September 10, 2014 18:28
eZ Publish 4.6 Kernel Patch to Run Using PHP 5.4 (or greater). Apply patch with these commands: cd /path/to/ez; patch -s -p0 < kernel_patch_for_ezpublish46_lib_ezutils_for_php54.patch; Forum Reference: http://share.ez.no/forums/install-configuration/php-5.4.1-no-call-method-defined-for-function
diff -ruN lib/ezutils/classes/ezmodulefunctioninfo.php lib-for-ezp46-patched-for-php-54/ezutils/classes/ezmodulefunctioninfo.php
--- lib/ezutils/classes/ezmodulefunctioninfo.php 2014-09-10 13:11:28.000000000 -0500
+++ lib-for-ezp46-patched-for-php-54/ezutils/classes/ezmodulefunctioninfo.php 2014-09-10 13:03:15.000000000 -0500
@@ -112,12 +112,12 @@
return false;
}
$functionDefinition = $this->FunctionList[$functionName];
- if ( !isset( $functionName['call_method'] ) )
+ if ( !isset( $functionDefinition['call_method'] ) )
{
@brookinsconsulting
brookinsconsulting / ezmatrix.xml
Created September 23, 2017 18:46
Example eZMatrix XML Storage Document
<?xml version="1.0" encoding="utf-8"?>
<ezmatrix>
<name />
<columns number="3">
<column num="0" id="identifier1">
Name1
</column>
<column num="1" id="identifier2">
Name2
</column>
@brookinsconsulting
brookinsconsulting / BcLowerCaseUnderscoreUrlAliasSlugConverter.php
Last active March 10, 2017 02:31 — forked from skrosoft/SlugConverterLC.php
ezpublishplatform and ezplatform SlugConverter class to transform all urlalias(es) into lowecase (ezp v3 style)
<?php
/**
* File containing the BcLowerCaseUnderscoreUrlAliasSlugConverter class part of the BcLowerCaseUrlAliasBundle package.
*
* @copyright Copyright (C) Brookins Consulting. All rights reserved.
* @license For full copyright and license information view LICENSE and COPYRIGHT.md file distributed with this source code.
* @version //autogentag//
* @package BcLowerCaseUrlAliasBundle
*/
@brookinsconsulting
brookinsconsulting / bcrolehaspolicykernelclassesezrole.php
Created January 21, 2012 04:13
This is a copy of the kernel/classes/ezrole.php PHP class from eZ Publish GitHub master 8a25d8730ec06cb4cbcdb9d47f13dca8b3fe9aab modified to provide hasPolicy method by default.
Name: BC Role hasPolicy Kernel Override (extension kernel override)
About this Gist
This Gist based solution graduated on 2012/01/22 to a full fledged, ready to use out of the box, eZ Publish based extension.
The extension based solution is ready to use with eZ Publish right out of the box with no additional configuration required.
Distribution
@brookinsconsulting
brookinsconsulting / settingsoverridecontentstructuremenu.ini.append.php
Created January 17, 2012 01:55
Example settings/override/contentstructuremenu.ini.append.php file which enables an additional content class
<?php /* #?ini charset="utf-8"?
[TreeMenu]
ShowClasses[]=blog
*/ ?>
@brookinsconsulting
brookinsconsulting / extensionbclayoutpatch4.6index.php.patch.diff
Created January 16, 2012 00:02
This is the patch file (diff) which adds view parameter support to ezmodule rerun calls including layout/set module view. This solution is also provided as a kernel override extension class. https://gist.github.com/1651245
1072a1073,1087
> // START EDIT BC: Add view parameter support
> $viewParameters = array();
> $uriUserParameters = $uri->userParameters();
>
> foreach( $uriUserParameters as $key => $param )
> {
> if( $param != '' )
> {
> $viewParameters = array_merge( $viewParameters, array( $key => $param ) );
@brookinsconsulting
brookinsconsulting / README.tmp.txt
Created January 14, 2012 08:15
This is a copy of a very old copy of the certify.php command line script created by eZ Systems. You can use this script to test your extension for compliance to eZ Publish (Enterprise) extension development guidelines. Also tests for extension errors ...
README.txt
Solution Name: eZP Certify Extension
Extension Identifier: ezpcertifyextension
Script Name: ezpcertifyextensionbinphpezpcertifyextension.php
About
eZP Certify Extension is an eZ Publish extension script for eZ Publish
@brookinsconsulting
brookinsconsulting / README
Created December 14, 2011 19:16
'bcsubtreecopyretainsections.php' is a improved / modified copy of 'ezsubtreecopy.php' which provides a new feature the default script does not provide, it allows you to retains existing content object section assignments (tested) for any version of eZ Pu
Name: BC Subtree Copy Retain Sections (extension script)
About this Gist
This Gist based solution graduated on 2011/12/14 to a full fledged, ready to use out of the box, eZ Publish based extension.
The extension based solution is ready to use with eZ Publish right out of the box with no additional configuration required.
Distribution
@brookinsconsulting
brookinsconsulting / TestCaseMissingTranslationContent
Created November 26, 2011 12:08
2011.11.26 - Translation extension settings troubleshooting
Error Message:
Debug: ezpI18n::translateText Nov 26 2011 11:45:09 Missing translation for message in context: 'extension/bcloremipsum/create'. The untranslated message is: 'Create nodes in content tree for eZ Publish'
Related Settings:
Extension translation settings:
File: extension/bcloremipsum/settings/site.ini.append.php
[RegionalSettings]
@brookinsconsulting
brookinsconsulting / README
Created November 23, 2011 21:38
README for upcoming eZ Publish extension to create customized audio files on the fly. http://projects.ez.no/vxaudiosample
This extension will create automatically (using the 'content,after,publish' trigger) a audio sample from object related mp3 audio file.
With this workflow event it's possible to setup the playtime, the cutstart and the fadein-/fadeouttime in seconds to get a automatically created audio sample.
For optimal use the server needs ffmpeg and sox installed, but also worked without it too (simple mp3 cutting in php without fading).
I still need some time to change the hard coded paths and to write a doc/README. If u need info you are welcome in IRC #ezpublish on freenode server.