Creative communities platform

Communities platform powered by Silex Labs, dedicated to the creation, support and communication of open source projects

by lexa

Ateliers Silex à l’IESA Multimedia, le retour des PTT

November 8, 2011 10:45 am in Blog Silex, Blog Silex Labs, The Blog

 
This post is for the French users only since it announces a Silex workshop in Paris…
Les PTT sont sur Facebook ici 

Silex Labs, l’association qui représente les projets open source Silex et amfPHP, vous réunit pour un atelier gratuit à l’attention des designers, web designers et web masters, dans les locaux de l’IESA multimédia, l’école des métiers numériques.

Participez à cet évènement incontournable organisé par la communauté elle même, en mode “dev camp” – venez avec vos connaissances et vos projets – et votre ordi si possible, sinon il y en aura sur place. Vous y rencontrerez des acteurs du web Français, des gens de terrain, indépendants, entrepreneurs, activistes de l’open source. Quel que soit votre niveau technique, vous repartirez avec un site vitrine en Flash ou HTML5.

Et cet atelier devrait être le premier d’une série de rendez-vous mensuels, grâce à la participation de CIFACOM, qui nous fait l’honneur d’avoir intégré Silex à son programme pédagogique.

INSCRIVEZ VOUS CI-DESSOUS SVP Read the rest of this entry →

by lexa

Soirée Silex Labs, l’assos qui vous sort de vos projets open source

October 18, 2011 11:48 am in Blog Silex Labs, The Blog

Vendredi 28 à Paris, Silex Labs sort les confettis et le chapeau à élastique!

3 bons prétextes :
• une nouvelle version de Silex : Silex v1.6.2 Carbon, avec une ergonomie proche de celle d’illustrator, et beaucoup de nouveaux plugins
• la version très attendue d’amfPHP, amfPHP v2.0 Reloaded
• nous quittons les locaux de Montreuil (pour de vrai cette fois)

Read the rest of this entry →

by lexa

Modern Design Theme

October 14, 2011 5:41 pm in Themes

Modern Design Theme is a free corporate theme for Silex

This Silex theme has been made in order to test the beta version of Silex v1.6.3. I share it with you because it is very simple and easy to customize with your content.

I have found the design in the great article 20 High Quality, Extraordinary & Free Web PSD Templates by Kendra Gaines. It took me 1 hour to make it a Silex site, starting from the psd template provided by the author. The license of this theme is the same as the license of the design (which I could not find… hum).

Here is the online demo of this great theme, which you can install from within your manager (after downloading Silex).

ServicePropertySetter Plugin

October 13, 2011 11:40 am in Exchange amfPHP

ServicePropertySetter (on github) is a plugin for AMFPHP (v2.0) to centralize the setting of shared properties/resources between services. From the plugin documentation :

Since service classes are created internally by AMFPHP it is not possible to pass (at construction or with setters) parameters to services.

With ServicePropertySetter, it is now possible. This plugin can be used to centralize configuration parameters and dispatch them to the services.

For instance, if services need a connection to a database by using a PDO object, instead of creating one in each services, only one can be created in a configuration file and passed to the services with this plugin : no need to have a database configuration (or an include file) in each services.

by ariels

The First Third Party amfPHP Plugin

October 6, 2011 1:22 pm in Blog amfPHP, The Blog

We’re very pleased to announce that amfPHP has it’s first third party plugin, just weeks after releasing v2.0. It’s called ServiceAccess, and it’s by Bastien Aracil, at http://femtoparsec.net/ . You can find the plugin page here on the exchange platform. http://www.silexlabs.org/exchange/exchange-amfphp/serviceaccess-plugin/ If you too would like to share an amfPHP plugin with the community, you can also create a page here, so let us know!

From the post: ServiceAccess is a AMFPHP plugin to secured access to PHP services easily.

 

ServiceAccess Plugin

October 6, 2011 1:07 pm in Exchange amfPHP

ServiceAccess (on github) is a AMFPHP plugin to secure access to PHP services easily. For instance with a minimal configuration, a method can be secured like this :

/**
* @rolesAllowed USER_WRITE, GROUP_WRITE
*
* The access to the function is granted to users that have the role USER_WRITE or GROUP_WRITE only.
*/
public function myFunction1() {...}

/**
* the next annotation can be removed since it is the default behavior
* @comityMode VETO
* @rolesAllowed USER_WRITE, GROUP_READ_ONLY
* @isCurrentUserLogin 1, login
* @checkMethod complexCheck
*
* The access is granted if
* the current user has the role USER_WRITE or GROUP_READ_ONLY
* OR
* the value of $userInfo->login is equal to the current user login
* OR
* the method 'complexCheck' returns true
*/
public function myFunction2($dataInfo, $userInfo) {...}

/**
* @comityMode ALL
* @rolesAllowed USER_WRITE, GROUP_READ_ONLY
* @isCurrentUserLogin 0, modifiedLogin
* @checkMethod simpleCheck
*
* The access is granted if
* the current user has the role USER_WRITE or GROUP_READ_ONLY
* AND
* the value of $dataInfo->modifiedLogin is equal to the current user login
* AND
* the method 'simpleCheck' returns true
*/
public function myFunction3($dataInfo, $userInfo) {...}

Check the documentation in the plugin package for more information on how to configure and customize ServiceAccess.

by ariels

amfPHP v2 Reloaded is out

September 26, 2011 7:46 pm in Blog amfPHP, The Blog

It’s been a long time coming, but it’s here.

The first release candidate came out in June. Since then there have been quite a few bugfixes and enhancements. A lot of this was in reaction to the feedback from the community, so a big shout goes out to everyone who took the time to help us make this the best release of amfPHP yet.

Get it here:

http://sourceforge.net/projects/amfphp/files/amfphp/amfphp-2.0.zip/download

From the changelog:

AmfPhpGet plugin, for requests just using GET, and cross domain AJAX calls
config shared between plugins support added
switch to return or not error details, and support for custom error messages
service browser design
support for multiple plugin folders
plugins can now add services

by lexa

Cocktail, for an open bar community !

September 7, 2011 3:55 pm in Blog Silex Labs, The Blog

Cocktail, what cocktail?!

Cocktail is the name of a new project @ Silex Labs.

This is an article for developers about the haXe library Cocktail, cross platform haXe!

Please use up-to-date Firefox 6, Chrome or Safari, as there are still issues with other browsers.

According to the website in The Labs, Cocktail is a cross-platform library for the haXe programming language. It bridges the gap between all the targets supported by haXe, removing inconsistencies behind a common API. With it, the same code base is used to deploy to these targets: HTML5 + javaScript, Flash, PHP.

It helps multi device application development and should be used by haXe projects requiring cross-target compilation.

And of course, it is released under GPL.

In this alpha1 release, DOM manipulation basis are present, with assets loading, external libraries and native code includes, as well as drawing API. The text can be used, but the text style is not handled yet, so it may be different in js and Flash, as you can see it bellow.

Javascript and Flash version of the clock, try to guess which one is which :)
For now, the text styles are not handled yet, so it may appear different in js and Flash
 

In this article, we will see some demo of cross platform code, and focus on the Cocktail part of the sample code. The first example, the “clock” is very simple, we load png images and manipulate them to display the time it is. The “ski game” sample is a bit more complex, and uses a classic technique in games, where the game is drawn on a screen at each frame – the scree is a canvas in HTML, and a Sprite in Flash, but this is transparent with Cocktail.

press the space bar to play
guess what, this is not Flash !
 

Feel free to check the get started with Cocktail article on the haXe wiki for more technical information and getting started with haXe article for more details about haXe.

Links


by yannick

Creating a Wysiwg plugin

August 16, 2011 3:17 pm in Tutorials Silex

In this section, we will create a silex plugin that will display a “hello silex !” text in the properties panel of the wysiwyg.

The plugin will be based on an index.php file initialising the plugin, on a Flex application that will be displayed in the Wysiwyg, and on a button, visible in the properties toolbox header and displaying our plugin.

This document implies a knowledge of object-oriented PHP5, ActionScript3/Flex and Javascript. It also implies that you know how to create a Silex plugin and how to use the Silex Toolbar system (i.e. ViewMenu). Read the rest of this entry →

by yannick

Creating a specific panel

August 16, 2011 3:16 pm in Tutorials Silex

A specific panel is an individual SWF file that will be displayed in the wysiwyg properties toolbox and loaded based on the type of the selected component. For instance, if an image is selected, the image specific panel will be displayed, if it a text, the text specific panel is displayed. Creating a specific panel is useful when you create a new component for Silex. You can associate a specific panel to this component. The resulting specific panel will then be tailored for the specific needs of the component, highlighting it’s main properties. The Specific panels are displayed in the wysiwyg in the properties toolbox when the specific plugin is selected (symbolised by the “s” button in the properties toolbox header). The Specific plugin is in charge of loading the right panel based on the selected component(s) data. The url of the panel to load is specified in the metadata of the components object coming from the SilexAdminAPI. We we will see how to add these url in the XMLDescriptor of the components. Read the rest of this entry →