Piero V.

Make comments always visible on Flatpress

Italiano

Può capitare di far sempre visibili i commenti su Flatpress.

Ecco il plugin che fa al caso vostro:

<?php
/*
Plugin Name: Comments Always Visible
Version: 1.0
Plugin URI: http://www.vdfn.altervista.org/2010/09/29/make-comments-always-visible-on-flatpress/
Description: Make comments always visible
Author: Piero VDFN
Author URI: http://www.vdfn.altervista.org/
*/
function plugin_commentsvisible() {
	global $fp_params;
	if(!empty($fp_params['entry']))
		$fp_params['comments']=true;
}

add_filter('init', 'plugin_commentsvisible', 20);

Salvatelo per esempio in fp-plugins/commentsvisible/plugin.commentsvisible.php.

Licenza: Pubblico Dominio

English

If you use Flatpress, maybe you want to show comments always.

This is the code to do that (see on the top of entry).

Save it for example in fp-plugins/commentsvisible/plugin.commentsvisible.php.

License: Public Domain

Plugin Internal URLs (v1.6) [Flatpress]

Italiano

Ho scritto una nuova versione del plugin Internal URLs.

Ha un leggerissimo miglioramento per le prestazioni: se non usate Pretty URLs, non eseguirà il suo hack creato a posta.

Per vedere come funziona, andate a vedere la versione 1.5.

Licenza: GNU GPLv2

Download: Internal URLs v1.6.tar.gz

English

I’ve written a new version of Internal URLs Plugin.

It’s a small fix for performances: if you don’t use Pretty URLs, it won’t use the Pretty URLs hack.

For usage, see version 1.5.

License: GNU GPLv2

Download: Internal URLs v1.6.tar.gz

Plugin Emoteseditor (v1.0) [Flatpress]

Italiano

Ho scritto un plugin che serve per avere una lista delle faccine da inserire sopra la textarea dell’editor dei post.

Non penso che funzioni anche con TinyMCE.

L’uso è semplice: appena decompresso aprite con un editor di testo semplice il file plugin.emoteseditor.php e da linea 14 inserite le vostre faccine come fatto nelle linee 12 e 13, senza però il # che è un commento.

La funzione in javascript è presa da phpMyAdmin e scritta per tutte le textarea da alexking.org.

Licenza: GNU GPLv2

Download: emoteseditor_v1.0.tar.gz

English

I’ve written a plugin that inserts the smileis list before the textarea of entries editor.

I think it won’t works with TinyMCE.

Before using it you have to edit the plugin.emoteseditor.php file with a php editor or just with notepad and insert from line 14 your emoticons like as done it in line 12 and 13, without the #.

Javascript function was originally in phpMyAdmin and it was written for all textareas by alexking.org.

Licence: GNU GPLv2

Download: emoteseditor_v1.0.tar.gz

Plugin Internal URLs (v1.5) [Flatpress]

Italiano

Ho scritto un plugin che estende bbcode permettendo di mettere link interni senza difficoltà.

Si chiama Internal URLs e implementa il tag iurl (che sta per internal url).

È una cavolata da usare. Ecco alcuni esempi (examples):

[iurl=index]Index[/iurl]
[iurl=contact title="Inviami una mail"]Contact me[/iurl]
[iurl=relative:fp-content/attachs/opensearch_v2.0.tar.gz]File in Flatpress root[/iurl]
[iurl=static:about]About Me[/iurl]
[iurl=page:legalese]Legalese[/iurl]
[iurl=post:entry100715-113627]Plugin Brute Force[/iurl]
[iurl=entry:entry100714-155550 comments=true]Plugin Open Search[/iurl]
[iurl=entry:100714-120802 comments=true anchor=comment100715-120544]Commento di Lantaca[/iurl]
[iurl=category:1]Musica[/iurl]
[iurl="tag:Linux"]Linux[/iurl] (with TAG Plugin >=1.1)
[iurl=redirect:plugin_redirect.html]Plugin Redirect[/iurl] (with Redirect Plugin)

Index
Contact me
File in Flatpress root
About Me
Legalese
Plugin Brute Force[Leggi il resto]

Plugin Tabmenu (v2.0) [Flatpress]

Italiano

Ho riscritto da capo questo plugin.

Esso aggiunge la classe sel se ci si trova in quella pagina (l’equivalente HTML di class=”sel”).

Questo è un esempio di uso (per l’homepage):

<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li>

Al posto di index potete mettere:

  • index o blog per l’indice del blog
  • contact per la pagina contact.php
  • admin per il pannello di amministrazione
  • login per il login
  • post:entry_id oppure entry:entry_id con al posto di entry_id l’identificatore di flatpress per il post
  • static:static_id o page:static_id con al posto di static_id l’identificatore di Flatpress per la pagina statica (quello che decidete voi)
  • category:id o cat:id per una categoria con id il numero di categoria
  • tag:tag_name con il nome di un tag al posto di tag_name

Licenza: GNU GPL 2.0.

Download: tabmenu_v2.0.tar.gz

English

I’ve rewritten this plugin from scratch.

It adds “sel” class if you are in that page (in HTML, class=”sel”).

This is an example (for the homepage):

<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li>

Replace index with:

  • index or blog for the blog homepage
  • contact for contact.php
  • admin for admin panel
  • login for login page
  • post:entry_id or entry:entry_id for entries (with entry_id the ID of the entry)
  • static:static_id for static pages (with static_id a static page id)
  • category:id o cat:id for a category with category number as id
  • tag:id with tag name as id

License: GNU GPL 2.0.

Download: tabmenu_v2.0.tar.gz