Sites Web : SPIP commits - by tech-nova

Publié le lundi 21 avril 2008

⇒ http://my.opera.com/tech-nova/blog/

Un site qui recense les astuces et évolutions des possibilités de SPIP.

A small list of code tips for SPIP

Septembre 2008, par tech-nova

Howto detect if a plugin is activated :
1. PHP : if (defined(’_DIR_PLUGIN_XXX’)) /* My action for this plugin */
2. SPIP1.9.2 :
#EVALDIR_PLUGIN_PREFIX| ?’ ’,”) My action for this plugin ]
3. SPIP2.0 : [(#PLUGINXXX) My action for this plugin ]

Howto do not display the admin toolbar in the public area :
Put at the first line (with #CACHE) : [(#HTTP_HEADERContent-type : text/html[ ; charset=(#CHARSET

)]

Howto replace any text with an image :

#REM|==’’| ?My beautifull text|image_typopolice=Victor.ttf,taille=14,largeur=150

Howto directly link an element :
Link

Howto get the articles that are tagged with a keyword  :
Instead of using the keword id, you can directly refere to it’s value :
#TITRE

And you :
Which are the best code tips that you use ?

→ Lire la suite sur le site d’origine…


Revenir en haut