Risultati della ricerca

WordPress 2.2

inserito in open source, php, webdev da fullo @ 16-05-2007 14:25

E’ arrivato finalmente WordPress 2.2, dopo aver annunciato stanotte in ML il tag in svn, è stato nel giro di poche ore rilasciata la versione stabile del blog engine su cui gira anche questo blog.

Le novità introdotte da questa nuova release sono molte, ma la più importante (imho) è l’abbandono di prototype per passare a jQuery. Questo obbligherà molti sviluppatori a modificare i propri plugin per adattarsi alla nuova libreria, ma aiuterà sicuramente chi (come il sottoscritto) già la stava usando per alcuni plugin.

Altre cose interessanti di WordPress 2.2 sono l’inclusione delle funzionalità dei widget direttamente nel codice dell’applicazione (senza quindi passare da un plugin) e la possibilità di escludere i plugin che danno problemi. Inoltre, sempre per venire incontro alle esigenze degli sviluppatori di plugin, WordPress ora include la libreria phpMailer per gestire l’invio di email, cosa che approvo moltissimo per il mio piccolo Contact Form Generator (che vedrà a breve una completa riscrittura).. ;)

Chissà quando riuscirò a finire tutti le cose che mancano a questa template per migrare a Wp 2.2…

ciuaz

WordPress Contact Form Generator

inserito in php, webdev da fullo @ 12-03-2007 14:58

Contact Form Generator Nata come esigenza di un cliente ho iniziato a slavoricchiare su un plugin per wordpress utile alla gestione delle classiche form di contatto. La cosa che lo differenzia dalla miriade di altri plugin è che il mio può utilizzarne diverse contemporaneamente ed un pochino più complesse delle classiche, nome, email, messaggio, salvandole su un file a parte.

Inoltre è possibile con poca fatica validare via server alcune tipologie di valori (ie. integer, string) ed utilizzare regex preimpostate per email, domini e poco altro.

Per ora il plugin, che ho chiamato Contact Form Generator, è in alfa testing ma ha tutto quello che serve per funzionare (compresa l’integrazione di Akismet).

Leggi il resto »

Symfony 1.0 ed Ajax

inserito in ajax, php, webdev da fullo @ 01-03-2007 15:03

E’ finalmente stata rilasciata la prima versione stabile di Symfony 1.0. Noto application framework per PHP 5 di cui ho già discusso più volte e che ho iniziato ad usare attivamente nell’ultimo mese e mezzo grazie ad un lavoro con Ciccio (mio guru sull’argomento).

Tra le magie di questa versione, perchè alcune cose ancora non me le spiego, ieri mi sono imbattuto nella gestione degli script con ajax. Symfony integra al suo interno Prototype (più o meno come fa anche Ruby) dando allo sviluppatore alcuni helper per attivarne le funzionalità.

La cosa stupenda è che il sistema sa se il metodo che è invocato è ajax o meno e gestisce di conseguenza il relativo templating. Cosa utilissima per non dover riscrivere due volte lo stesso codice e soprattutto per permetterne un certo livello di degradazione.

Leggi il resto »

Prototype 1.5

inserito in ajax, webdev da fullo @ 19-01-2007 10:42

prototype 1.5Finalmente Prototype ha un sito decente e della documentazione decente, il tutto è stato fatto per lanciare la nuova versione 1.5 rilasciata insieme al nuovo Ruby on Rails 1.2.

Le novità sono troppe e siccome è venerdì e mi sento pigro ecco il changelog.. leggetevelo! :P

ciuaz

FireStat per Wordpress

inserito in php da fullo @ 24-10-2006 15:43

firestatRiprendendo il post dello Skypecast sulle statistiche se vi interessa avere qualcosa di semplice da installare in WordPress (ma anche su Drupal, MediaWiki e Gregarius) date un occhio al progettino FireStat.

La cosa interessante è che questo piccolo script (caricato tramite include di php) permette di avere il conteggio degli accessi al proprio sito in tempo reale, grazie all’uso delle librerie prototype.

Leggi il resto »

TextPattern Plugins

inserito in tecnologia da fullo @ 18-09-2006 03:11

ful_ajax_gallery

Description

This plugin helps to create a dynamic archive browsing using ajax, it uses ajax to query the textpattern db and to retrieve post information such title, text and whatever.
The plugin is strongly ispired on the cbs_live_search but it doesn't use hardcoded query. So you can choose how to display your results simply creating a new layout form.

Release

v0.7

Download

Demo

http://php.fullo.net/textpattern/ click on "next" to start the demo

Reference

  • add in the <head> section of the page template the

    <txp:ful_ajax_gallery_js />
    it will add the necessaries javascript function to call ajax with prototype and scriptacoulus
  • the <txp:ful_ajax_gallery /> tag is the main tag of the plugin.

    This tag uses those attributes:

    • section: the section where to search data, note that is the same of custom_article
    • category: the category where to search data, note that is the same of custom_article
    • form: the form layout for the results
    • limit: how many articles are retrieved, note that is the same of custom_article
    • offset: the offset from which the data is retrieved, note that is the same of custom_article
    • label: show the menubar label
    • menu (true/false): show the menubar
    • sortby (posted): how to sort the results, note that is the same of custom_article
    • spinner (true/false): add the spinner div directly
    • top (true/false): add the top div directly
    • label_menu_next: the label for the 'next' link
    • label_menu_prev: the label for the 'prev' link
  • if you want to add the menu bar in another position you can use the tag <txp:ful_ajax_menu>
    it uses a limited sets of the attributes of <txp:ful_ajax_gallery />

    • section: the section where to search data, note that is the same of custom_article
    • category: the category where to search data, note that is the same of custom_article
    • form: the form layout for the results
    • limit: how many articles are retrieved, note that is the same of custom_article
    • offset: the offset from which the data is retrieved, note that is the same of custom_article
    • label (next/prev): used to create the link to previous o next articles

    and it need also a nested text as the label

  • if you want to add the ajax container for the article in another position you have to set the attribute top=false for
    <txp:ful_ajax_gallery /> and then you can use <txp:ful_ajax_top />.
    This tag accept 2 attributes and can manage text.

    • tag (div): the type of tag for the ajax container
    • class: the css class for the tag
      • as before if you want to add the ajax spinner in another position you have to set the attribute spinner=false for
        <txp:ful_ajax_gallery /> and then you can use <txp:ful_ajax_spinner />.
        This tag accept 2 attributes and can manage text.

        • tag (div): the type of tag for the ajax container
        • class: the css class for the tag
          • you can configure the default value for all the plugin changing the ful_ajax_config() array.

css style

Every object created by the plugin has its own css ID:

  • menu and menu links: ajax-menu, ajax-menu-next, ajax-menu-prev
  • title browsing (bottom interface): ful-ajax-bottom
  • article content: ful-ajax-top
  • spinner: ful-ajax-spinner

usage example

create a layout page, cloning the default template. Add then in the html head section the calling for the js libraries.
note that I\'ve installed prototype and scriptaculous in the /js directory

PHP:
  1. <script type="text/javascript" src="<txp:site_url/>js/prototype.js"></script>
  2. <script type="text/javascript" src="<txp:site_url/>js/scriptaculous.js"></script>
  3. <txp:full_ajax_gallery_js />

then in the body of the page I add the tag to create the ajax gallery

PHP:
  1. <h1>ajax article gallery</h1>
  2. <txp:ful_ajax_gallery limit="5" category="mycat" form="myform" />

now an archive gallery for the category mycat is created by textpattern, and I have also a 5 title pagination.
The archive uses a generic article form myform

PHP:
  1. <div class="articolo">
  2. <txp:ful_ajax_show_link form="myTopForm">##<txp:article_id />##<txp:title />&</txp:ful_ajax_show_link />
  3. </div>

it is very important that the value inserted in the ful_ajax_show_link tag start with ##ID-OF-THE-POST## This is due a
textpattern limitation which cannot permit to use a txp:tag inside another txp:tag as attribute. After that pattern you can add anything.
Here I use a article form called myTopForm.

PHP:
  1. <h2><txp:permlink><txp:title /></txp:permlink></h2>
  2. <txp:body />

if you want to add the spinner or the top container in another place you can change the page layout as follow:

PHP:
  1. <txp:ful_ajax_spinner><img src="path.to/spinner.img" alt="my ajax spinner" /></txp:ful_ajax_spinner>
  2.        
  3. <txp:ful_ajax_menu label="prev" limit="5" category="mycat" form="myform" menu="false" />
  4. <txp:ful_ajax_menu label="next" limit="5" category="mycat" form="myform" menu="false" />
  5.        
  6. // some html code here
  7.    
  8. <h1> ajax article gallery </h1>
  9. <txp:ful_ajax_gallery limit="5" category="mycat" form="myform" spinner="false" top="false" menu="false"/>
  10.        
  11. // some html code here
  12. <txp:ful_ajax_top class="myCSS" tag="p">SOME TEXT HERE</txp:ful_ajax_top>

note that is very important to add the same attributes to the ful_ajax_menu and ful_ajax_gallery tags.

note: This plugin need the scriptacoulus and prototype js libraries loaded in the head of your site template

Tre chicche Javascript/Ajax

inserito in ajax da fullo @ 26-04-2006 11:47

La prima è JQuery, un piccolo script (solo 10Kb) che permette di creare complesse azioni tramite una sorta di linguaggio a cascata. JQuery è inoltre personalizzabile ed è possibile scrivere dei plugin per estenderne le potenzialità.

La seconda è la nuova versione di LightBox, script utile a visualizzare le immagini all'interno di una finestra facendo andare in secondo piano il resto del testo. Questa versione integra (ancora meglio) al suo interno il framework Prototype e gli effetti di Scriptaculous.

Ultima è uno spredsheet chiamato EditGrid, ha al suo interno oltre 135 funzioni di calcolo preimpostate ed alcune template con cui è possibile iniziare a lavorare. Di programmi del genere (perchè ormai si tratta di programmi e non di semplici script) se ne sta parlando ultimamente molto anche su downloadblog.

ciuaz

Prototype datasheet

inserito in ajax da fullo @ 20-02-2006 12:23

Stupendo, finalmente qualcuno ha fatto un datasheet decente per Prototype. E' stato documentato tutto.. ma proprio tutto! :)

ciauz

Ajax + Imp = DImp

inserito in ajax, open source, php da fullo @ 16-02-2006 18:26

Dynamic Imp è l'evoluzione di Horde/Imp che presto vedremo sulla maggior parte dei server.

Questo webmail sfrutterà al suo interno le ormai stra-note librerie Prototype e Script.alicio.us per gestire l'interfaccia utente.

Oltre a DIMP è in sviluppo anche MIMP che ha un'interfaccia ottimizzata per i display di device portatili (la M sta infatti per Mobile) e per sprecare la minor quantità di banda possibile.

ciuaz

Developer notes per prototype.js

inserito in ajax, altri linguaggi da fullo @ 10-01-2006 11:41

Prototype è una libreria js per creare animazioni, usare ajax e fare altre mille cosette. Ed è alla base di molte delle funzionalità di Ruby on Rails.

Grande difetto di questa libreria è che, a parte qualche scarno esempio, non esiste un manuale decente e l'unico modo per conoscere il funzionamento dei metodi è quello di spulciarsi il codice.

Ed ecco che ci vengono incontro queste comode developers note, ricche di esempi ed aggiornate all'ultima versione. Queste sono state tradotte in molte lingue, italiano escluso... qualcuno vuole pensarci? Magari sul wiki del Gr.U.S.P.?

ciauz

CSS, javascript e dintorni

inserito in pensieri, webdev da fullo @ 23-08-2005 12:13

Non so per quale arcano motivo ma mi hanno convinto a lavorare ad un sito pseudo-dinamico con una marea di file statici da includere di volta in volta ed un backend di pubblicazione eventi scritto da un dislessico con grossi problemi di afasia. Quindi per necessità di rinfrescarmi la memoria ho ripreso a leggere alcuni siti come a list apart che evitavo da un annetto avendo deciso di decarmi solo alla programmazione in php, al lavoro di sysadmin, a quello di project manager e soprattutto avendo deciso di non voler più scrivere neanche una riga di css o di aprire photoshop se non per qualcosa di personale...

Beh ecco i link che ho trovato oggi:

[update]
a list apart cambia layout... per le motivazioni c'è un articolo di zeldman

ciauz

Script.aculo.us, Prototype e PEAR

inserito in ajax, php da fullo @ 03-08-2005 16:56

Cosa c'entrano le prime due librerie con il repository di classi per php? La risposta ce la da il sito pearified.com, un nuovo repository di librerie, classi e script compatibili con pear. D'ora in avanti per installare una delle succitate librerie basterà quindi digitare da shell

pear channel-discover pearified.com
pear install pearified/nome_pacchetto

più comodo di così si muore :)

[via phpDeveloper]

un po’ di links..

inserito in linux, php, tecnologia, webdev da fullo @ 23-06-2005 20:48
  • http://www.quirksmode.org/, js, php, css ed altro per gli sviluppatori
  • Sebastien Bacher, uno degli sviluppatori gnome, ha rilasciato i pacchetti deb per ubuntu/debian experimental di gtk 2.8+ e gnome 2.12 inoltre fa appello a tutti gli interessati sul fatto che c'è carenza di bug hunter. Quindi se avete voglia di aiutare il progetto accomodatevi!
  • Sono già in discussione le features della release 5 di Fedora Core, speriamo che creino un software per la gestione dei pacchetti all'altezza di synaptic... ma per yum
  • script.aculo.us è l'ennesimo figlio di prototype, con qualche funzione in più e la possibilità di gestire il drag'n drop
  • EffectPack invece è il figlio di script.aculo.us [quindi nippote di prototype? ;)] ed è ottimo per gestire tab e menu

ciuaz

rico

inserito in ajax da fullo @ 08-06-2005 15:53

Nata come fork di prototype (ne ho parlato qualche tempo fa) Rico è una libreria javascript opensource che permette di realizzare applicazioni web di un certo calibro (e di sfruttare tra l'altro ajax)

Rico is a Spanish word meaning rich. The goal of Rico is to provide a rich experience for web sites using Ajax technology.

Rico is just one small part of a larger effort at Sabre Airline Solutions to create a suite of rich internet components, behaviors and effects for the web application space.

The library is a fully object-oriented JavaScript library. Recently we refactored the library to extend the excellent prototype.js effort from the Ruby on Rails folks.

da guardare assolutamente uno degli esempi messi sul sito, sembra quasi una gdesklet o un widget per dashboard!

backpack

inserito in ajax, tecnologia da fullo @ 16-05-2005 11:37

BackPack è il nuovo progetto di 37signal, gli stessi che hanno realizzato l'ottimo Basecamp, ed è anche un buon esempio di utilizzo intelligente delle tecniche ajax. Si tratta essenzialmente di un planner evoluto, capace di organizzare non solo appuntamenti ma anche informazioni strutturate e di interazione con l'utente grazie a funzioni di notifica tramite sms (per ora in italia è supportata solo Vodafone) ed email o sharing delle risorse.

All'interno del software vengono usati un pò tutti i criteri di usabilità che si stanno iniziando a leggere in giro sull'argomento, come le conferme di avvenuta modifica (fatte con un fade giallo->bianco sul campo modificato), purtroppo però usabilità non significa accessibilità quindi se il vostro browser non supporta js lasciate perdere...

Da notare che backpack utilizza la libreria prototype per semplificare le interazioni con l'interfaccia! :)

ciuaz


phpday 2008