Skip to content

Instantly share code, notes, and snippets.

@brendo
brendo / LoveforXMLElement.md
Created June 17, 2011 01:26
Some love for XML Element

Some love for XMLElement

With the upcoming release of Symphony 2.2.2 (see the thread), XMLElement has been given some love with some a couple of new methods to help make working with XMLElement easier for developers. XMLElement's biggest shortcoming previously had been the lack of methods to manipulate the children of an XMLElement, often resulting in some pretty head-slapping moments. No more, we've got five new methods to make this a breeze, getChildrenByName, removeChildAt, insertChildAt, replaceChildAt and setChildren.

Our Source

For the purposes of this quick tip, we'll use the following DOM structure.

<div>

Hello World

@brendo
brendo / releasenotes223.md
Created August 12, 2011 03:56
Symphony 2.2.3 Release Notes

Symphony 2.2.3

This release is primarily a hotfix for issues that have cropped up in Symphony's submodules:

Fixes

  • #738 - Symphony Fatal Database Error when adding Author field
  • #713 - Fix year-month filtering in the core Date field on PHP 5.2
  • Restore the DatabaseException handler for incorrect database details. Fixes a regression since 2.1.x
  • Update the Devkit class to use SYMPHONY_URL constant
@brendo
brendo / symphony23.md
Created August 16, 2011 12:36
Symphony 2.3

The release of 2.2.3 marks the end of the 2.2 branch development and the Symphony Team and Working Groups are really excited on the next upcoming release, Symphony 2.3. I thought I'd take some time to outline a couple of the upcoming changes that the team and Working Groups are working towards in this release.

Symphony 2.3 aims to give a complete refresh of Symphony's backend user experience, from the theme, to the widgets you interact with everyday. The UX Working Group has been working really hard over the last couple of months meeting to discuss new concepts and ideas (which you can see a full snapshot of on the Working Group wiki) which will see the Symphony 2.3 be one of the best releases yet. Interface widgets, such as the Duplicator, Collapsible and Tags will become easier to create with additions to the Widget class, and newcomers, Drawer and [Tabs](https://github.com/symph

@brendo
brendo / current.json
Created August 21, 2011 11:01
Remote JSON conversion
{
"trends": {
"2011-08-21 11:00:00": [
{
"name": "#peopleiveseenlive",
"query": "#peopleiveseenlive",
"events": null,
"promoted_content": null
},
{
@brendo
brendo / Symphony23.md
Created August 22, 2011 11:53
Symphony 2.3 Release Notes

Symphony 2.3 Release Notes

These release notes are a work in progress and will be updated regularly through the development cycle, things may change from time to time. Symphony 2.3 supports updating from any 2.2.x release.

This is a major release and may break backwards compatibility with existing extensions. It is recommended that extension developers read the Migration Guide for 2.3 and look out for Dev Notes released by the team to help migrate their extensions to this new release.

Release Candidate 4

Features

@brendo
brendo / symphony224.md
Created October 8, 2011 06:42
Symphony 2.2.4 Release Notes

Symphony 2.2.4

This is a recommended update for all users, regardless of PHP environment, which aims to resolve Date related issues that have arise since Symphony 2.2.2. This release rolls back functionality for PHP5.2 users that was introduced in Symphony 2.2.2 that allowed Symphony to better support European date formats. PHP 5.3 is recommended for all European date formats. In addition, this release makes the first time unit tests have been used in a Symphony release, which were used to ensure that the core Date filtering returned the correct results for all supported filters.

Some low risk security vulnerabilities reported by Mavituna Security have also been resolved in this release.

Fixes

  • #838 - Fixed bug when grouping Checkboxes
  • #815 - Prevent possible MySQL error when creating a Page
@brendo
brendo / ajax-upload.js
Created January 13, 2012 00:54
Uploading a File with AJAX with Symphony
$(document).ready(function() {
// FormData is magic.
var formData = new FormData();
// Listen for drag/drop events.
$('#drop-here')
.on('dragover', function(event) {
event.preventDefault();
})
.on('drop', function(event) {
diff --git a/fields/field.advancedupload.php b/fields/field.advancedupload.php
index b13f6e3..6cc206c 100755
--- a/fields/field.advancedupload.php
+++ b/fields/field.advancedupload.php
@@ -143,8 +143,7 @@
'pages',
'utilities'
);
- $directories = General::listDirStructure(WORKSPACE, true, 'asc', DOCROOT, $ignore);
-
@brendo
brendo / Issue746.md
Created March 10, 2012 12:40
Goodbye old friend, hello new friends!

Goodbye old friend, hello new friends!

The Symphony 2.3 release opens up a whole new range of possibilities for developers to create awesome sites and applications. We've cleaned up a lot of the codebase and we are always looking at ways to make it leaner and more efficient. Because of this reason, we've decided that the Symphony 2.3 line will be the final releases that we test against PHP5.2.

We feel that with the recent release of PHP 5.4, now is a good time to end our relationship and look forward to the new possibilities that developing with a PHP 5.3+ codebase brings.

@brendo
brendo / markup.md
Created March 10, 2012 16:27
Symphony 2.3 Markup Transition

Markup and You

Symphony 2.3 features a significantly improved UI over it's predecessors due to the hard work of the UX Working Group and contributions by other dedicated members of the Symphony community. In making these changes, there's been a number of minor updates to the HTML, CSS and JS throughout the backend. The purpose of this guide is to help document some of these new features, and outline differences that extension developers can implement while updating their extension for 2.3. Eventually a dedicated style guide for Symphony will be available, but this will fill the void for the meantime.

HTML