عربي | Deutsch | English | Español | français | italiano | Nederlands

289 Plugins, 197 contribs On SPIP-Zone, 87 visitors now

Home > Outils pour plugins > SPIP Bonux > SPIP Bounce

SPIP Bounce

Enjoy the fresh functions of Bounce all over your Spip site !

15 January 2009 – by Cerdic, Loiseau2nuit, Matthieu Marcillaud, tetue

All the versions of this article: [English] [Español] [français] [italiano]

7 Votes

This plugin will “wash” your SPIP laundry more than ever, with nice gifts inside ! Soften private user interface, loops POUR (for... to...) and CONDITION, arrays, counters, and so on...

Because we just could not put everything in SPIP 2.0 (the box was to small), here comes a plugin with little more tweaks in it ! Take it as a gift, with our kind regards !

How soft it is ! Is it new ?

According to its fans, SPIP-Bounce improves the comfort of your user experience with forms in the private area, whose colours last longer than before.

It is just a slight variation on the private area’s styles. This one now offers a new set of colours, softer for the eyes, leading to more concentration abilities on your editorial work. Bounce-gift : those forms stay accessible, even when pictures display is desactivated in the browser.

A loop (POUR) to get for... to... effects

A loop (POUR) (french equivalent for “FOR”) now lets you loop on all php arrays, although they are passed through #ENV, #GET or whatever.

  1. <BOUCLE_test(POUR){array #ENV{array}}>
  2. #KEY=>#VALUE<br />
  3. </BOUCLE_test>


KEY and VALUE can then be used in criterions, as for a certain number of criterions in traditionnal SPIP’s loops (pagination for exemple)

Those arrays might already be present in <code#ENV because they are brought as an argument for an include (#INCLURE), or as a context for a CVT form, or come from any filter returning a PHP array() : (#ENV{something}|my_filter), or at last, from every tag returning an array(), like #ARRAY ...

Numerous exemples available in the plugin’s /tests/ directory.

A loop (CONDITION) to get if... then... else... effects

  1. <BOUCLE_test(CONDITION){si #ENV{test}|>{5}}>
  2. true
  3. </BOUCLE_test>
  4. false
  5. <//B_test>


“si...” is the french for “if...”

Tags to play with arrays

SPIP already lets you initialize an array with

  1. #SET{my_array,#ARRAY{1,first_value,2,second_value,3,third_value}}

SPIP-Bounce adds a #SET_MERGE tag which allows to merge and to allocate a value at the same time.

  1. #SET_MERGE{name_of_my_array,#GET{my_array},#ARRAY{key,value}}

and a tag #SET_PUSH, to add any element to it :

  1. #SET_PUSH{my_array,value}

A new criterion compteur ( = counter)

Inspired by Classer les articles par nombre de commentaires, this criterion compteur lets you count elements issued from a table, associated to elements issued from another table.

For exemple, to display authors (AUTEUR) with their number of articles :

  1. <BOUCLE1(AUTEURS){compteur articles}{par compteur_articles}>
  2. #ID_AUTEUR : #COMPTEUR{articles}
  3. </BOUCLE1>


#COMPTEUR tag is associated to criterion and allows to display the counter value for each author.


Plugin originally developped by Cedric Morin, tetue and Matthieu Marcillaud.
Notice translated from French to English by Etienne BRACKERS aka ’Loiseau2nuit’.

updated on 5 November 2017

Back to top

Comment on this article

Who are you?
  • [Log in]

To show your avatar with your message, register it first on gravatar.com (free et painless) and don’t forget to indicate your Email addresse here.

Enter your comment here Les choses à faire avant de poser une question (Prolégomènes aux rapports de bugs. )
Add a document

Back to top

Here they're talking

  • (fr) Les crayons

    23 avril 2008 – 825 commentaires

    Ce plugin permet d’éditer les contenus sur les pages publiques du site, sans passer par l’espace privé de SPIP.

  • (fr) Champs Extras 3

    16 janvier 2012 – 630 commentaires

    Ce plugin permet de créer et/ou de gérer des champs supplémentaires dans les objets éditoriaux de SPIP. Il permet donc de prendre en compte et d’afficher de nouveaux éléments dans n’importe quel objet éditorial de SPIP. Screencast Vous n’aimez pas (...)

  • (fr) Rang : ordonner une liste par Drag&Drop

    9 octobre 2017 – 27 commentaires

    Dans l’espace privé, pouvoir ordonner une liste par glisser-déposer. Par exemple la liste des articles d’une rubrique. Il devient possible d’utiliser le critère par rang dans vos squelettes. Ce plugin est un POC : Proof of concept, permettant de (...)

  • (fr) Formidable, le générateur de formulaires

    23 janvier 2012 – 2391 commentaires

    Un générateur de formulaires facilement configurable pour les non-informaticiens et facilement extensible pour les développeurs. Introduction L’objectif était de créer un plugin permettant de générer des formulaires. Historiquement, 2 plugins (...)

  • (fr) doc2img

    14 octobre 2007 – 25 commentaires

    Ou comment convertir des documents multipages (pdf, tiff, etc.) en une succession d’images.