Piero V.

Plugin BBToolbar (v1.0) [Flatpress]

English

This plugin is a replacement for the default BBCode toolbar but it also adds a toolbar to write comments.

It also replaces all the Emoticons plugins and it adds an emoticons toolbar.

You can select the emoticons set (the default one is powered by Lantaca) or you can create your own: you create the directory e_yourset, then you put here your emoticons and you create a file called set.txt. This file is in this format:

# This is a comment
symbol1 char2	image.ext

The replacements are separated by a space and the image by a tab.

You can also add buttons via javascript: there are two arrays: bbtCustomAdmin and bbtCustomComms respectively for the entry editor and for the comment editor. If you want to customize the function of a tag, you have to use the bbtCustomFunctions object:

bbtCustomFunctions={
	'mytag' : function() {
		// Do some stuff
	},
}

The function must return true or false: with false the tag is complete, with true the default function is run.

You can change all options from the administration panel: go to Plugins -> BBToolbar.

The appearance of the plugin must be customized with css: you have to use these classes: bbtoolbar, comm_toolbar, admin_toolbar, emo_toolbar.

The plugin uses always cache so if you have problems first of all clean the cache. Clean it also when you change the lang.

License: GNU GPLv2

jQuery is needed

Download: bbtoolbar_v1.0.tar.gz

Italiano

Questo plugin sostituisce la toolbar del BBCode di default e ne aggiunge una all’editor dei commenti.

Il plugin sostituisce anche tutti i vari plugin per le faccine e crea una toolbar apposita per inserirle.

Puoi scegliere tu un set di facine (quello di default è stato fatto da Lantaca) o puoi crearne uno tu: crea la cartella e_tuoset, quindi mettici dentro le faccine e crea un file chiamato set.txt. Il file deve essere in questo formato:

# Questo è un commento
symbol1 char2	image.ext

I simboli sono separati da uno spazio e le immagini da una tabulazione.

Con javascript puoi personalizzare i bottoni: ci sono due array: bbtCustomAdmin e bbtCustomComms rispettivamente per l’editor dei post e per quello dei commenti. Se vuoi personalizzare la funzione di un tag, devi usare l’oggetto bbtCustomFunctions:

bbtCustomFunctions={
	'mytag' : function() {
		// Fai qualcosa
	},
}

La funzione deve restituire un booleano: con false il tag è completo, con true è eseguita anche la funzione di default.

Inoltre è possibile cambiare le opzione del plugin dal pannello di controllo: vai su Plugin -> BBToolbar.

L’aspetto del plugin deve essere personalizzato con i css: si possono usare queste classi: bbtoolbar, comm_toolbar, admin_toolbar, emo_toolbar.

Il plugin usa la cache per velocità e ridurre l’uso di CPU, perciò se cambi lingua o hai problemi, per prima cosa pulisci la cache.

License: GNU GPLv2

jQuery è richiesto

Download: bbtoolbar_v1.0.tar.gz

4 commenti