Recherche avancée

Médias (0)

Mot : - Tags -/publication

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (88)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (9752)

  • Anomalie #4799 (Nouveau) : Validité du RSS

    26 mai 2021

    Marc, sur https://discuter.spip.net/t/rss-atom-enclosures-et-w3c/152922 signale quelques points de validité à améliorer sur le RSS de la dist

    backend.html

    • balise rss : rajout d’un lien xmlns:atom="http://www.w3.org/2005/Atom"
    • balise channel : rajout de
    • réf : Missing atom:link with rel="self"

    squelette rss-item.html (ou inc-rss.html)

    • enclosures multiples : item contains more than one enclosure
    • suggestion (discutable) rajouter un critère {0,1} dans la boucle document de rss-item.html
    <span class="CodeRay">
    <span class="tag">span><span class="error">(</span><span class="attribute-name">DOCUMENTS</span><span class="error">)</span><span class="error">{</span><span class="attribute-name">id_article</span><span class="error">}</span><span class="error">{</span><span class="attribute-name">mode</span>=<span class="attribute-value">document</span><span class="error">}</span><span class="error">{</span><span class="attribute-name">doublons</span><span class="error">}</span><span class="error">{</span><span class="attribute-name">0</span><span class="error">,</span><span class="attribute-name">1</span><span class="error">}</span><span class="tag">></span>[
    <span class="tag">span> <span class="attribute-name">url</span>=<span class="string"><span class="delimiter">"</span><span class="content">(#URL_DOCUMENT|url_absolue|unique)</span><span class="delimiter">"</span></span><span class="error">[</span> <span class="attribute-name">length</span>=<span class="string"><span class="delimiter">"</span><span class="content">(#TAILLE)</span><span class="delimiter">"</span></span><span class="error">]</span><span class="error">[</span> <span class="attribute-name">type</span>=<span class="string"><span class="delimiter">"</span><span class="content">(#MIME_TYPE)</span><span class="delimiter">"</span></span><span class="error">]</span> <span class="tag">/></span>]
    <span class="tag"></span>
    </span></span></span>
  • Anomalie #2307 : md5_boutons_plugins()

    21 juillet 2014, par marcimat ☺☮☯♫

    Et les traces pour voir plus clairement les 2 créations du même define (_UPDATED_boutons_plugins) :

    Premier passage (constante non définie)

    array (size=5)
      0 => 
        array (size=4)
          ’file’ => string ’[...]spip/ecrire/inc/plugin.php’ (length=57)
          ’line’ => int 636
          ’function’ => string ’plugin_ongletbouton’ (length=19)
      1 => 
        array (size=4)
          ’file’ => string ’[...]spip/ecrire/inc/plugin.php’ (length=57)
          ’line’ => int 530
          ’function’ => string ’plugins_precompile_xxxtions’ (length=27)
      2 => 
        array (size=4)
          ’file’ => string ’[...]spip/ecrire/inc/plugin.php’ (length=57)
          ’line’ => int 431
          ’function’ => string ’ecrire_plugin_actifs’ (length=20)
      3 => 
        array (size=4)
          ’file’ => string ’[...]spip/ecrire/inc_version.php’ (length=58)
          ’line’ => int 391
          ’function’ => string ’actualise_plugins_actifs’ (length=24)
      4 => 
        array (size=4)
          ’file’ => string ’[...]spip/ecrire/index.php’ (length=52)
          ’line’ => int 21
          ’function’ => string ’include’ (length=7)
    

    Second passage (constante déjà définie)

    array (size=5)
      0 => 
        array (size=4)
          ’file’ => string ’[...]spip/ecrire/inc/plugin.php’ (length=57)
          ’line’ => int 636
          ’function’ => string ’plugin_ongletbouton’ (length=19)
      1 => 
        array (size=4)
          ’file’ => string ’[...]spip/ecrire/inc/plugin.php’ (length=57)
          ’line’ => int 530
          ’function’ => string ’plugins_precompile_xxxtions’ (length=27)
      2 => 
        array (size=4)
          ’file’ => string ’[...]spip/ecrire/inc/plugin.php’ (length=57)
          ’line’ => int 431
          ’function’ => string ’ecrire_plugin_actifs’ (length=20)
      3 => 
        array (size=4)
          ’file’ => string ’[...]spip/plugins-dist/svp/exec/admin_plugin.php’ (length=74)
          ’line’ => int 52
          ’function’ => string ’actualise_plugins_actifs’ (length=24)
      4 => 
        array (size=4)
          ’file’ => string ’[...]spip/ecrire/index.php’ (length=52)
          ’line’ => int 151
          ’function’ => string ’exec_admin_plugin_dist’ (length=22)
  • Anomalie #3799 : appliquer_filtre ne s’applique pas aux filtres image_

    10 février 2017

    L’intention que tu cites n’était peut être pas forcément le but de la fonction appliquer_filtre() à l’origine.

    Bon, j’ai un problème. Comme je disais en #note-7 il y a un bug sur appliquer filtre et l’option qui avait été ajoutée en r71781.

    En plein dans le bug

    Il y a un cas intéressant sur la zone dans SarkaSPIP, parmi d’autres :

    [(#ENVid_rubrique|appliquer_filtreaccesrestreint_rubrique_restreinte,0|oui) #SETretour_logout, #URL_PAGEsommaire]
    

    function accesrestreint_rubrique_restreinte($id_rubrique, $id_auteur = null)

    Le zéro passé en second paramètre, on ne sait pas s’il était
    - à destination de appliquer_filtre() pour éviter absolument qu’il retourne la valeur id_rubrique SI accès restreint est absent, ou s’il était
    - à destination de accesrestreint_rubrique_restreinte() pour indiquer l’auteur 0 (ce qui est peu probable)
    Et du coup, ça casse le fonctionnement de accesrestreint_rubrique_restreinte() car ça ne prend pas en compte le visiteur courant car $id_auteur ne vaut plus null

    À d’autres endroits au contraire, par exemple dans Emballe Medias, on trouve :

    [(#INCLUREjavascript/jquery.shiftcheckbox.js|appliquer_filtreminifier,js)]
    

    Ici, la présence de l’option ’js’ fait que appliquer_filtre va comprendre qu’il doit toujours retourner le contenu d’origine même en absence du filtre.
    C’est d’ailleurs très certainement ce qui est souhaité ici. Sauf que ce n’est pas voulu explicitement a priori.

    On trouve aussi un usage avec |sinon :

    ["geometry" : (#GEOMETRY|appliquer_filtrewkt_to_json|sinon"type" : "Point", "coordinates" : [#LON, #LAT]),]
    

    Corrections de appliquer_filtre en créant une seconde fonction ?

    Ces 2 derniers exemples montrent que quelque soit l’option choisie pour corriger on va casser des usages (en créant une seconde fonction pour faire l’inverse), ie :

    Option Historique)
    - T|appliquer_filtre{F} retourne ’’ si F introuvable
    - T|appliquer_filtre_ou_continuer retourne T si F introuvable

    Option Chaînage)
    - T|appliquer_filtre{F} retourne T si F introuvable
    - T|appliquer_filtre_sinon_rien{F} retourne ’’ si F introuvable

    Ou déprécier appliquer_filtre()

    Une autre solution est de créer 2 nouvelles fonctions pour remplacer appliquer_filtre et son fonctionnement incertain.
    Contrainte : elles ne doivent pas commencer par filtre_.
    - T|utiliser_filtre{F} retourne T si F introuvable (chaînage)
    - T|utiliser_filtre_sinon_rien{F} retourne ’’ si F introuvable

    C’est peut être une solution acceptable. On aurait du être plus vigilent en introduisant une nouvelle fonction plutôt qu’un paramètre en plus à appliquer_filtre() alors que celle ci utilise func_get_args…