SPIP-Contrib

SPIP-Contrib

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

273 Plugins, 191 contribs On SPIP-Zone, 38 visitors now

Homepage > Admin and maintenance solutions > Aides administration > Boutons admin supplémentaires > Additional administration buttons in a plugin

Additional administration buttons in a plugin

4 February 2007 – by Loiseau2nuit – <blink style='color:red;'>public|spip|ecrire:commentaires</blink>

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

1 vote

Plugin updates : See on bottom.

Description

This plugin will add a few additional administration buttons to your SPIP site’s public area. These buttons will allow you to directly edit the content of an article or section, access a private area from anywhere in your site, or create a new article (among other things) without having to leave the “public side” of your site.

The plugin will also allow you to show or hide the full button bar with a click of a button, so you can free up some screen space while in the site’s public area. Your preference for the button bar ("visible" or “hidden”) is saved in a cookie so the only time you will have to set this option is the first time you use it.

The technology at work in this plugin (which overrides file formulaire_admin.html) is not new or unique; it is already in use and explained here. The only difference is that it now works as a plugin and there is no need to modify any files or templates, and it also allows for easy upgrades.

The text on the buttons is localized, and is displayed in your chosen language. The “show/hide” capability is quite new and uses javascript.

Please note that all edits made using this plugin are automatically classified in the section you are visiting on the public side of your site.

This plugin is distributed under the GNU/GPL licence.

Installation

As for any other plugin, you just need to download following archive, unzip it, and move extracted folder to SPIP’s /plugins directory. The plugin must be activated through the private area.

Zip - 22.2 kb
Download the latest release
From http://files.spip.org/spip-zone/

Please refer to the Spip official documentation for any further detail concerning plugins.

New buttons available

The plugin proposes following options, some of these appearing according to the context. Bold descriptions indicates that the button appears only for administrators who activated their administration cookie, and not to contributors who have no rights to perform such action :

-  Keep the buttons on-top and fixed (

PNG - 1 kb
Icône indiquant que la barre de boutons est au premier plan

) or not (

PNG - 602 bytes
Icône indiquant que la barre de boutons n’est pas au premier plan

) ;
-  Name of the current connected user and link to its page ;
-  XML debugger ;
-  Write a new article (in active section) ;
-  Create a new section (as a subsection of the active one) ;
-  Reference a new website (in active section) ;
-  Write a news item (in active section) ;
-  Edit content of active section, article, news item ;
-  Modify active section, article, keyword, referenced website, author ;
-  Refresh page (

PNG - 1.1 kb
Icône de recalcul de pages
Tirée du jeu d’icônes Nuvola, sous licence LGPL

or

PNG - 1 kb
Icône de recalcul de pages (recalcul nécessaire)

if a refresh is needed) ;
-  Statistics ;
-  Preview ;
-  Acces private area (button appears on each page on not only on summary) ;
-  Template debugger ;
-  Logging out (

PNG - 995 bytes

) ;
-  Hide (

PNG - 574 bytes
Icône servant à masquer la barre de boutons
Tirée du jeu d’icônes Nuvola, sous licence LGPL

) / Show (

PNG - 1.1 kb
Icône servant à afficher la barre de boutons
Tirée du jeu d’icônes Nuvola, sous licence LGPL

) buttons bar.

Some of these buttons allready exists in spip’s core distribution.

A few screenshots

JPEG - 44.5 kb
View the bar on the home page
JPEG - 50 kb
View the bar on an article
JPEG - 47.9 kb
View the bar on a (sub)section
JPEG - 10.2 kb
View when the bar is hidden

Updates

This plugin is now developped collectively through SVN on Spip-Zone. The present archive is consequently likely to be updated frequently with minor modification which won’t be reported here anymore.

See http://zone.spip.org/trac/spip-zone/browser/_plugins_/_stable_/boutons_admin_supp to check for versioning.

-  Last known major modifications :

Version 1.2 :
-  This version now displays some of its options to administrators only (and not to all contributors) in order to avoid error messages relative to rights granted on the private area).
-  The “refresh” button is also replaced by an icon, to gain space.

Version 1.3 :
-  The “Preview” button, which has been removed by mistake, has been replaced.
-  New option added : “Edit this News Item”.

Version 1.4 :
-  The “show / hide” option is now Internet Explorer 6 complient.
-  When a user logged off, buttons now disappear (they stood in place before, until you broke the identification cookie, meaning “connecting using a different ID” for exemple...).

Version 2 :
-  A PHP configuration file has been added, allowing to hide some options. As it is written in PHP, it’s now possible to use conditions to handle options’ display.

Version 2.1 :
-  A new button now allows to keep the bar fixed on top of your screen while scrolling on your website’s pages. This option does NOT work on Internet Explorer 6 (which does not handle the position:fixed; CSS property.

Version 2.2 :
-  The plugin has been made Spip 1.9.2 complient (and also Spip 2.0 complient, as I could notice on my own. Feedbacks warmly welcome !)
-  Adding a configuration option allowing to display the buttons vertically on the right side of your screen.

Version 2.3 :
-  Adding a confirmation message behind the “Log Off” button (mainly to avoid accidental disconnections in case of a mistaken click)

Version 2.4 :
-  Buttons which were not “localized” are now available in ever languages you maintain in the plugin’s /lang directory.
-  The “refresh” button now becomes like

PNG - 1 kb
Icône de recalcul de pages (recalcul nécessaire)

when a refresh of the page is needed.

Compatibility

This plugin works fine on SPIP 1.9.1, 1.9.2. and 2.0 (versions : SVN, RC & Stable)

P.S.

-  Plugin originally developped by Vincent RAMOS, following a contribution by Balluche.
-  This notice was translated from French by Etienne B..
-  Many thanks to Shelly from Spip-En mailing list for her help and correction work on this notice.

Back to top

Your comments

  • On 30 July 2007 at 19:17, by reza ayati Replying to: Additional administration buttons in a plugin

    hi
    i installed this plugins and acctive it in plugins setting but don’t show that’s icon in my site
    please guide me

    • On 31 July 2007 at 03:35, by Loiseau2nuit (formerly Zzz.) Replying to: Additional administration buttons in a plugin

      Hi,

      May you please be more precise ?
      Which icon can’t you see ?
      What’s your exact spip version ?

      Thanks for your feedbacks ;)

    • On 1 August 2007 at 18:41, by reza Replying to: Additional administration buttons in a plugin

      hi
      my spip ver is SPIP 1.9.2a & can’t see additional administration buttons for example
      XML debugger ;
      Write a new article (in active section) ;
      Create a new section (as a subsection of the active one) ;
      Reference a new website (in active section) ;
      Refresh page ( ) ;
      Statistics ;
      Preview ;
      Template debugger ;
      Logging out ( ) ;
      Hide ( ) / Show ( ) buttons bar.
      that you show in your article!
      sorry for my bad english :( !

    • On 2 August 2007 at 13:29, by Loiseau2nuit (formerly Zzz.) Replying to: Additional administration buttons in a plugin

      Yep ! I’ve noticed that the original contribution had been updated to be 1.9.2 complient but the author did not warn me. Give me some time to bring and translate the modifications then it will be available there.

      But if you can’t wait, you may download the French version of this contrib. here

      C.U. ;)

    • On 15 December 2008 at 14:06, by Loiseau2nuit Replying to: Additional administration buttons in a plugin

      hi my spip ver is SPIP 1.9.2a & can’t see additional administration buttons for example XML debugger ; Write a new article (in active section) ; Create a new section (as a subsection of the active one) ; Reference a new website (in active section) ; Refresh page ( ) ; Statistics ; Preview ; Template debugger ; Logging out ( ) ; Hide ( ) / Show ( ) buttons bar.

      Hi and sorry for the delay but if ever you are still reading this and meeting the issue, , try rename your /dist-squelettes/formulaires/formulaire_admin.html into .../_formulaire_admin.html, it should work after that (it worked for me)

    Reply to this message

  • On 15 December 2008 at 13:59, by Loiseau2nuit Replying to: Additional administration buttons in a plugin

    Translation updated today (December, 15th)

    The downloadable zip file now comes from a repository (Spip-zone) were plugins are updated daily, so you’re sure to always get the plugin’s latest version.

    Adding a note for Spip 2.0 compliance (verified with SVN, Beta, RC and the latest Stable versions).

    Feedbacks regarding this compliance are warmly welcome.

    Regards.
    Etienne.

    Reply to this message

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) Squelettes « Chez nous »

    17 avril 2008 – 26 <blink style='color:red;'>public|spip|ecrire:commentaires</blink>

    Jeu de squelettes prêts à l’emploi pour site de maison : visite des lieux, présentation des habitants, chronique et livre d’or.

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

    23 janvier – 55 <blink style='color:red;'>public|spip|ecrire:commentaires</blink>

    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 avaient (...)

  • (fr) Transaction : créer des formulaires avec paiement en ligne

    13 mars 2011 – 33 <blink style='color:red;'>public|spip|ecrire:commentaires</blink>

    Transaction est une extension du plugin de création de formulaires Formidable pour concevoir des formulaires de paiement en ligne et les connecter aux principales API bancaires françaises. Présentation Transaction introduit 3 nouveaux types de (...)

  • (fr) Plugin SPIP-Géoportail

    17 août 2010 – 169 <blink style='color:red;'>public|spip|ecrire:commentaires</blink>

    Plugin pour l’intégration d’objets géographiques dans SPIP avec l’API Géoportail. Affichage de cartes Géoportail, OpenStreetMap (OSM), Google Maps ou Yahoo !... Préambule : Travaillant sur un projet utilisant SPIP et le Géoportail, il nous a semblé (...)

  • (fr) Navigation AJAX

    31 janvier – 13 <blink style='color:red;'>public|spip|ecrire:commentaires</blink>

    Ce plugin permet de modifier automatiquement une parties des liens internes de manière à ce qu’ils ne déclenchent pas un chargement complet de la page cible, mais un chargement en AJAX de certains éléments spécifiés à l’avance. Il permet aussi de (...)