Social Bookmarking Plugin per CMS Made Simple

Ho ripreso il mantenimento e lo sviluppo di questo plugin per il content management system CMS Made Simple che permette di inserire facilmente in una pagina web una serie di icone per postare la pagina o il contenuto del modulo su una selezione di oltre 90 siti di Social Bookmarking come Facebook, Twitter, Linkedin, Myspace, Google+1 e tanti altri

Attraverso l’utilizzo di una serie di parametri, tutti opzionali e combinabili tra di loro, è possibile per esempio:

  • controllare quali e quanti link generare
  • le dimensioni delle icone o se generare solo link testuali
  • gli attributi target e title del link
  • specificare una cartella di immagini diversa da quella di default
  • se l’url della pagina è quello reale del modulo o è quello sovrascritto tramite URL rewrite

Esempio

Ecco qualche immagine di esempio dell’output generato dal plugin Social Bookmarking.
In fondo ad ogni pagina di questo sito trovi un esempio funzionante.

Tutti i link disponibili con immagini di dimensione 32×32 px
(sintassi usata {socialBookmarking})

Social Bookmarking Plugin - Esempio 1

Solo i link specificati con immagini di dimensione 32×32 px e Google+1

(sintassi usata {socialBookmarking submitto="email|facebook|twitter|linkedin" plusone="1" plusone_lang="it"})

Social Bookmarking Plugin - Esempio 2

Tutti i link disponibili con immagini di dimensione 16×16 px
(sintassi usata {socialBookmarking img_size="small"})

Social Bookmarking Plugin - Esempio 3

Tutti i link disponibili in formato testuale senza immagini
(sintassi usata {socialBookmarking img_size="none"})

Social Bookmarking Plugin - Esempio 4

Social Bookmarking Managers supportati

La versione attuale del plugin Social Bookmarking 1.7 supporta il tagging ed il posting sui seguenti siti: A1-Webmarks, Adfty, ALLVOICES, Bebo, BibSonomy, BlinkList, Blogged, Blogmarks, Brainify, Buddymarks, Business Exchange, Buzzup, CHIQ, CiteUlike, Connotea, coRank, Corkboard, Current, del.icio.us, DesignFloat, Digg, Diigo, DotNetKicks, .Net Shoutout, Douban, DZone, eKudos, Evernote, Facebook, Fark, Faves, Favoriten, Folkd, Formspring, Fresqui, FriendFeed, funP, Furl, fwisp, Google+1, Google Buzz, Google Bookmarks, Google Translate, Hyves, Instapaper, Jamespot, Jumptags, linkaGoGo, LinkARENA, LinkedIn, Linksilo, Live.com, MailRu, Menéame, Mister Wong, Mixx, Myspace, N4G, Netlog, Netvibes, Netvouz, Newsvine, NUjij, Odnoklassniki.ru, OKNOtizie, Oneview, Orkut, Pinboard, Plaxo, Posterous, Reddit, Renren, Scribd, Segnalo, SEOigg, Slashdot, Sonico, Sphinn, Startlap, StumbleUpon, Stumpedia, Technorati, Trunk.ly, Tumblr, Twitter, Upnews, Xerpi, VK, Yahoo, YiGG.

La versione attuale del plugin Social Bookmarking 1.7 supporta inoltre la segnalazione tramite Email.

Come si usa

Ecco come utilizzare il plugin Social Bookmarking in CMS Made Simple:

  1. Scarica l’ultima versione del plugin Social Bookmarking (attualmente Social Bookmarking 1.7) dal forge di CMS Made Simple (la trovi nel tab Files): http://dev.cmsmadesimple.org/projects/socialbks
  2. Estrai dall’archivio ZIP le cartelle plugins e images in locale
  3. Con un client FTP, trasferisci le due cartelle estratte con tutto il loro contenuto nella directory di installazione di CMS Made Simple del webserver
  4. Dal pannello di amministrazione di CMS Made Simple inserisci nella pagina o nel template il tag {socialBookmarking} (nota la “s” minuscola) con i parametri che desideri impostare:
{socialBookmarking} --> Stampa tutti i link disponibili con immagini di dimensione 32x32 px

{socialBookmarking submitto="email|facebook|twitter|linkedin"} --> Stampa solo i link specificati con immagini di dimensione 32x32 px

{socialBookmarking img_size="small"} --> Stampa tutti i link disponibili con immagini di dimensione 16x16 px

{socialBookmarking img_size="none"} --> Stampa tutti i link disponibili in formato testuale e senza immagini

Parametri

  • (opzionale) title
    • Permette di specificare un testo che verrà  usato come prefisso nel titolo della pagina
    • Ad esempio {socialBookmarking title="Mio Sito - "}
  • (opzionale) target
    • Popola l’attributo target del link
    • Ad esempio {socialBookmarking target="_blank"}
  • (opzionale) class
    • Popola l’attributo class del link, imposta la classe CSS da usare
    • Ad esempio {socialBookmarking class="MyCssClassName"}
  • (opzionale) id
    • Popola l’attributo id del link, imposta l’id CSS da usare
    • Ad esempio {socialBookmarking id="MyCssIdName"}
  • (opzionale) submitto
    • Specifica su quali Social Bookmark Managers effettuare la segnalazione
    • I valori possibili (in case-insensitive mode) devono essere separati da un pipe (“|“):
      • all
      • email
      • a1webmarks
      • adfty
      • allvoices
      • bebo
      • bibsonomy
      • blinklist
      • blogged
      • blogmarks
      • brainify
      • buddymarks
      • busexchange
      • buzzup
      • chiq
      • citeulike
      • connotea
      • corank
      • corkboard
      • current
      • delicious
      • designfloat
      • digg
      • diigo
      • dotnetkicks
      • dotnetshoutout
      • douban
      • dzone
      • ekudos
      • evernote
      • facebook
      • fark
      • faves
      • favoriten
      • folkd
      • formspring
      • fresqui
      • friendfeed
      • funp
      • furl
      • fwisp
      • gbuzz
      • google
      • googletranslate
      • hyves
      • instapaper
      • jamespot
      • jumptags
      • linkagogo
      • linkarena
      • linkedin
      • linksilo
      • live
      • mailru
      • meneame
      • misterwong
      • mixx
      • myspace
      • n4g
      • netlog
      • netvibes
      • netvouz
      • newsvine
      • nujij
      • odnoklassniki
      • oknotizie
      • oneview
      • orkut
      • pinboard
      • plaxo
      • posterous
      • reddit
      • renren
      • scribd
      • segnalo
      • seoigg
      • slashdot
      • sonico
      • sphinn
      • startlap
      • stumbleupon
      • stumpedia
      • technorati
      • trunkly
      • tumblr
      • twitter
      • upnews
      • vk
      • xerpi
      • yahoo
      • yigg
    • Il valore all stamperà  tutti i link ai Social Bookmark Managers supportati
    • Il valore email stamperà  un link del tipo mailto
    • Importante: se viene usato il valore all, non inserire nessun altro valore
    • Lasciando questo parametro in bianco, o non usandolo, saranno stampati tutti i link ai Social Bookmark Managers supportati
    • Ad esempio {socialBookmarking submitto="email|facebook|twitter|linkedin"}
    • Ad esempio {socialBookmarking submitto="all"}
  • (opzionale) plusone
    • Valorizzalo a 1 per stampare il pulsante Google+1
    • Non usare questo parametro, o valorizzalo a 0 per non stampare il pulsante Google+1
    • Ad esempio {socialBookmarking submitto="email|facebook|twitter|linkedin" plusone="1"}
  • (opzionale) plusone_lang
    • Imposta la lingua utilizzata dal pulsante Google+1
    • Per conoscere quali sono i valori dei codici lingua da usare, visita la lista dei codici lingua supportati da Google+1 all’indirizzo: https://developers.google.com/+/plugins/+1button/#available-languages
    • Non usare questo parametro se desideri stampare il pulsante Google+1 in Inglese (en-US)
    • Ad esempio {socialBookmarking submitto="email|facebook|twitter|linkedin" plusone="1" plusone_lang="it"}
  • (opzionale) img_dir
    • La directory dove hai fatto l’upload delle immagini
    • Lascia questo parametro in bianco, o non usarlo, se hai fatto l’upload nella directory di installazione predefinita /images/socialbookmarking/
    • Importante: se specifichi una directory, includi le barre all’inizio e alla fine del percorso (“/“)
    • Ad esempio {socialBookmarking img_dir="/my/image/directory/"}
  • (opzionale) img_size
    • Non usare questo parametro, o valorizzalo a big per stampare i link con immagini di 32×32 pixel
    • Valorizzalo a small per stampare i link con immagini di 16×16 pixel
    • Valorizzalo a none per stampare i link in formato testuale senza immagini
    • Ad esempio {socialBookmarking img_size="big"}
    • Ad esempio {socialBookmarking img_size="small"}
    • Ad esempio {socialBookmarking img_size="none"}
  • (opzionale) text_separator
    • Specifica il separatore testuale da usare nel caso il parametro img_size sia valoraizzato a none
    • Se questo parametro non viene specificato verrà usato il valore di default costituito da un pipe tra due spazi (“ | “)
    • Ad esempio {socialBookmarking img_size="none" text_separator="<br />"}
    • Ad esempio {socialBookmarking img_size="none" text_separator=", "}
  • (opzionale) real_url
    • Non usare questo parametro, o valorizzalo a 0 per usare l’URL della pagina senza considerare i moduli (utile con l’URL rewrite)
    • Valorizzalo a 1 per usare l’URL reale della pagina

Trovi ulteriori informazioni sul funzionamento del plugin Social Bookmarking e sui parametri da passare scegliendo Estensioni / Tag / socialBookmarking nel pannello di amministrazione di CMS Made Simple.

Utilizzo con il modulo News o con il modulo CGBlog

Il modulo News come il modulo CGBlog di CMS Made Simple hanno un limite intrinseco: selezionando il dettagio di un elemento news o blog, il titolo della news o del blog non diventa il titolo della pagina e questo, oltre ad essere una pratica non apprezzata dai motori di ricerca, può causare un comportamento non corretto del plugin Social Bookmarking.

Per ovviare all’inconveniente, ed utilizzare correttamente il plugin Social Bookmarking in associazione con il modulo News o con il modulo CGBlog, è sufficiente modificare il Detail Template del modulo News o del modulo CGBlog, aggiungendovi all’inizio questa linea:

{assign var="pagetitle" value=$entry->title|escape}

Questa linea ha lo scopo di generare la variabile Smarty $pagetitle contenente il titolo della news o dell’articolo blog.

Adesso modifica il template del sito aggiungendovi all’inizio la linea:

{process_pagedata}

E sostituendo il tag title presente all’interno della sezione head

<title>{title} - {sitename}</title>

con questa struttura condizionale

{if isset($pagetitle) && !empty($pagetitle)}
   <title>{$pagetitle} - {sitename}</title>
{else}
   <title>{title} - {sitename}</title>
{/if}

Questo frammento di codice controllerà  se la variabile $pagetitle è definita e non vuota. Se la variabile esiste il titolo della news o del blog verrà usato come titolo della pagina, altrimenti sarà usato il titolo originale della pagina.

Assicurati inoltre che process_whole_template sia settato a false nel file config.php (settaggio di default). Questo settaggio farà  sì che la sezione <body> del template venga processata prima della sezione <head>.

Con alcune piccole modifiche questa procedura si applica anche ad altri moduli come CGCalendar, Products, ecc…

Codice

Ecco il codice sorgente del plugin Social Bookmarking 1.7

<?php

////////////////////////////////////////////////////////////////////////////////
//
// File:	function.socialBookmarking.php
// Project:	Social Bookmarking plugin for CMS Made Simple
// Version:	1.7
// Licence:	Free software under the GNU General Public License
// Web:		http://dev.cmsmadesimple.org/projects/socialbks
// Created:	20060110, v1.0, Paul Hodgson
// Updated:	20091228, v1.2, Eduardo Martinez (hexdj)
// Updated:	20110605, v1.3, Andrea Weichbrodt (wich)
// Updated:	20110614, v1.4, Andrea Weichbrodt (wich)
// Updated:	20111031, v1.5, Andrea Weichbrodt (wich)
// Updated:	20120215, v1.6, Andrea Weichbrodt (wich)
// Updated:	20120518, v1.7, Andrea Weichbrodt (wich)
//
////////////////////////////////////////////////////////////////////////////////

function smarty_cms_function_SocialBookmarking($params, &$smarty) {

	$url_array = array(

		"email" => array("url" => "mailto:?subject=[title]&amp;body=[thisurl]",
					"alt" => "Email",
					"image" => "email.png",
					"title" => "Send by Email"),

		"a1webmarks" => array("url" => "http://www.a1-webmarks.com/bm_edit.html?t=[title]&amp;u=[thisurl]",
					"alt" => "A1-Webmarks",
					"image" => "a1webmarks.png",
					"title" => "Add webmark"),

		"adfty" => array("url" => "http://www.adfty.com/submit.php?url=[thisurl]",
					"alt" => "Adfty",
					"image" => "adfty.png",
					"title" => "Add to Adfty"),

		"allvoices" => array("url" => "http://www.allvoices.com/post_event?url=[thisurl]&amp;title=[title]",
					"alt" => "ALLVOICES",
					"image" => "allvoices.png",
					"title" => "Submit to ALLVOICES"),

		"bebo" => array("url" => "http://www.bebo.com/c/share?Url=[thisurl]&amp;Title=[title]",
					"alt" => "Bebo",
					"image" => "bebo.png",
					"title" => "Share on Bebo"),

		"bibsonomy" => array("url" => "http://www.bibsonomy.org/ShowBookmarkEntry?c=b&amp;jump=yes&amp;url=[thisurl]&amp;description=[title]",
					"alt" => "BibSonomy",
					"image" => "bibsonomy.png",
					"title" => "Bookmark this page to BibSonomy"),

		"blinklist" => array("url" => "http://blinklist.com/index.php?Action=Blink/addblink.php&amp;url=[thisurl]",
					"alt" => "BlinkList",
					"image" => "blinklist.png",
					"title" => "Submit to BlinkList"),

		"blogged" => array("url" => "http://www.blogged.com/submitarticle.php?url=[thisurl]&amp;title=[title]",
					"alt" => "Blogged",
					"image" => "blogged.png",
					"title" => "Submit Your Blog"),

		"blogmarks" => array("url" => "http://blogmarks.net/my/new.php?mini=1&amp;url=[thisurl]&amp;title=[title]",
					"alt" => "Blogmarks",
					"image" => "blogmarks.png",
					"title" => "Share on Blogmarks"),

		"brainify" => array("url" => "http://www.brainify.com/Bookmark.aspx?url=[thisurl]&amp;title=[title]",
					"alt" => "Brainify",
					"image" => "brainify.png",
					"title" => "Bookmark on Brainify"),

		"buddymarks" => array("url" => "http://buddymarks.com/add_bookmark.php?bookmark_title=[title]&amp;bookmark_url=[thisurl]",
					"alt" => "Buddymarks",
					"image" => "buddymarks.png",
					"title" => "Submit to Buddymarks"),

		"busexchange" => array("url" => "http://bx.businessweek.com/api/add-article-to-bx.tn?url=[thisurl]",
					"alt" => "Business Exchange",
					"image" => "busexchange.png",
					"title" => "Add to Business Exchange"),

		"buzzup" => array("url" => "http://buzz.yahoo.com/submit/?submitUrl=[thisurl]",
					"alt" => "buzzup",
					"image" => "buzzup.png",
					"title" => "Submit to buzzup"),

		"chiq" => array("url" => "http://www.chiq.com/create/affiliate?url=[thisurl]&amp;title=[title]",
					"alt" => "CHIQ",
					"image" => "chiq.png",
					"title" => "Add to CHIQ"),

		"citeulike" => array("url" => "http://www.citeulike.org/posturl?url=[thisurl]&amp;title=[title]",
					"alt" => "CiteUlike",
					"image" => "citeulike.png",
					"title" => "Share on CiteUlike"),

		"connotea" => array("url" => "http://www.connotea.org/addpopup?continue=confirm&amp;uri=[thisurl]&amp;title=[title]",
					"alt" => "Connotea",
					"image" => "connotea.png",
					"title" => "Share on Connotea"),

		"corank" => array("url" => "http://www.corank.com/submit?url=[thisurl]&amp;title=[title]&amp;source=w",
					"alt" => "coRank",
					"image" => "corank.png",
					"title" => "Submit to coRank"),

		"corkboard" => array("url" => "http://www.corkboard.it/posting/create?posting%5Btitle%5D=[title]&amp;posting%5Burl%5D=[thisurl]",
					"alt" => "Corkboard",
					"image" => "corkboard.png",
					"title" => "Corkboard it"),

		"current" => array("url" => "http://current.com/clipper.htm?url=[thisurl]&amp;title=[title]",
					"alt" => "Current",
					"image" => "current.png",
					"title" => "Invia a Current"),

		"delicious" => array("url" => "http://del.icio.us/post?url=[thisurl]&amp;title=[title]",
					"alt" => "del.icio.us",
					"image" => "delicious.png",
					"title" => "Submit to del.icio.us"),

		"designfloat" => array("url" => "http://www.designfloat.com/submit.php?url=[thisurl]",
					"alt" => "DesignFloat",
					"image" => "designfloat.png",
					"title" => "Float This"),

		"digg" => array("url" => "http://digg.com/submit?phase=2&amp;url=[thisurl]&amp;title=[title]",
					"alt" => "digg",
					"image" => "digg.png",
					"title" => "Submit to digg"),

		"diigo" => array("url" => "http://www.diigo.com/post?url=[thisurl]&amp;title=[title]",
					"alt" => "Diigo",
					"image" => "diigo.png",
					"title" => "Post to Diigo"),

		"dotnetkicks" => array("url" => "http://www.dotnetkicks.com/kick/?title=[title]&amp;url=[thisurl]",
					"alt" => "DotNetKicks.com",
					"image" => "dotnetkicks.png",
					"title" => "Kick It on DotNetKicks.com"),

		"dotnetshoutout" => array("url" => "http://dotnetshoutout.com/submit?url=[thisurl]",
					"alt" => ".Net Shoutout",
					"image" => "dotnetshoutout.png",
					"title" => "Shout it"),

		"douban" => array("url" => "http://www.douban.com/recommend/?url=[thisurl]&amp;title=[title]",
					"alt" => "Douban",
					"image" => "douban.png",
					"title" => "Submit to Douban"),

		"dzone" => array("url" => "http://www.dzone.com/links/add.html?url=[thisurl]&amp;title=[title]",
					"alt" => "DZone",
					"image" => "dzone.png",
					"title" => "Share on DZone"),

		"ekudos" => array("url" => "http://www.ekudos.nl/artikel/nieuw?url=[thisurl]&amp;title=[title]&amp;desc=[title]",
					"alt" => "eKudos",
					"image" => "ekudos.png",
					"title" => "Plaats op eKudos"),

		"evernote" => array("url" => "http://www.evernote.com/clip.action?url=[thisurl]&amp;title=[title]",
					"alt" => "Evernote",
					"image" => "evernote.png",
					"title" => "Clip to Evernote"),

		"facebook" => array("url" => "http://www.facebook.com/share.php?u=[thisurl]",
					"alt" => "facebook",
					"image" => "facebook.png",
					"title" => "Post to facebook"),

		"fark" => array("url" => "http://www.fark.com/cgi/farkit.pl?u=[thisurl]&amp;h=[title]",
					"alt" => "Fark",
					"image" => "fark.png",
					"title" => "Fark It"),

		"faves" => array("url" => "http://faves.com/Authoring.aspx?u=[thisurl]&amp;t=[title]",
					"alt" => "Faves",
					"image" => "faves.png",
					"title" => "Fave It"),

		"favoriten" => array("url" => "http://www.favoriten.de/url-hinzufuegen.html?bm_url=[thisurl]&amp;bm_title=[title]",
					"alt" => "Favoriten",
					"image" => "favoriten.png",
					"title" => "Diese Seite zu Favoriten.de hinzuf&uuml;gen"),

		"folkd" => array("url" => "http://www.folkd.com/submit/[thisurl]",
					"alt" => "folkd.com",
					"image" => "folkd.png",
					"title" => "Folk it"),

		"formspring" => array("url" => "http://www.formspring.me/button/index?url=[thisurl]&amp;title=[title]&amp;style=normal",
					"alt" => "Formspring",
					"image" => "formspring.png",
					"title" => "Submit to Formspring"),

		"fresqui" => array("url" => "http://fresqui.com/enviar?url=[thisurl]&amp;titulo=[title]",
					"alt" => "fresqui",
					"image" => "fresqui.png",
					"title" => "Enviar a Fresqui"),

		"friendfeed" => array("url" => "http://friendfeed.com/?url=[thisurl]&amp;title=[title]",
					"alt" => "FriendFeed",
					"image" => "friendfeed.png",
					"title" => "Share on FriendFeed"),

		"funp" => array("url" => "http://funp.com/push/submit/add.php?url=[thisurl]&amp;s=[title]&amp;via=tools",
					"alt" => "funP",
					"image" => "funp.png",
					"title" => "funP"),

		"furl" => array("url" => "http://www.furl.net/storeIt.jsp?u=[thisurl]&amp;t=[title]",
					"alt" => "furl.net",
					"image" => "furl.png",
					"title" => "Submit to furl.net"),

		"fwisp" => array("url" => "http://fwisp.com/submit?url=[thisurl]",
					"alt" => "fwisp",
					"image" => "fwisp.png",
					"title" => "Share on fwisp"),

		"gbuzz" => array("url" => "http://www.google.com/buzz/post?message=[title]&amp;url=[thisurl]",
					"alt" => "gbuzz",
					"image" => "gbuzz.png",
					"title" => "Post to Google Buzz"),

		"google" => array("url" => "http://www.google.com/bookmarks/mark?op=add&amp;bkmk=[thisurl]&amp;title=[title]",
					"alt" => "Google Bookmarks",
					"image" => "google.png",
					"title" => "Submit to Google Bookmarks"),

		"googletranslate" => array("url" => "http://translate.google.com/translate?u=[thisurl]",
					"alt" => "Google Translate",
					"image" => "googletranslate.png",
					"title" => "Translate this page with Google"),

		"hyves" => array("url" => "http://hyves-share.nl/button/tip/?tipcategoryid=12&amp;rating=5&amp;title=[title]&amp;body=[thisurl]",
					"alt" => "Hyves",
					"image" => "hyves.png",
					"title" => "Share on Hyves"),

		"instapaper" => array("url" => "http://www.instapaper.com/hello2?url=[thisurl]&amp;title=[title]",
					"alt" => "Instapaper",
					"image" => "instapaper.png",
					"title" => "Save this for later with Instapaper"),

		"jamespot" => array("url" => "http://www.jamespot.com/?action=spotit&amp;url=[thisurl]&amp;title=[title]",
					"alt" => "Spot It",
					"image" => "jamespot.png",
					"title" => "Add to Jamespot"),

		"jumptags" => array("url" => "http://www.jumptags.com/add/?url=[thisurl]&amp;title=[title]",
					"alt" => "Jumptags",
					"image" => "jumptags.png",
					"title" => "Add Jumptag"),

		"linkagogo" => array("url" => "http://www.linkagogo.com/go/AddNoPopup?title=[title]&amp;url=[thisurl]",
					"alt" => "linkaGoGo",
					"image" => "linkagogo.png",
					"title" => "Add to linkaGoGo"),

		"linkarena" => array("url" => "http://linkarena.com/bookmarks/addlink/?url=[thisurl]&amp;title=[title]",
					"alt" => "LinkARENA",
					"image" => "linkarena.png",
					"title" => "Bei LinkARENA sichern"),

		"linkedin" => array("url" => "http://www.linkedin.com/shareArticle?mini=true&amp;url=[thisurl]",
					"alt" => "LinkedIn",
					"image" => "linkedin.png",
					"title" => "Post to LinkedIn"),

		"linksilo" => array("url" => "http://www.linksilo.de/index.php?area=bookmarks&amp;func=bookmark_new&amp;addurl=[thisurl]&amp;addtitle=[title]",
					"alt" => "Linksilo",
					"image" => "linksilo.png",
					"title" => "Diese Website bei linksilo.de bookmarken"),

		"live" => array("url" => "https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=[thisurl]&amp;title=[title]",
					"alt" => "Live.com",
					"image" => "live.png",
					"title" => "Add to Live.com"),
					
		"mailru" => array("url" => "http://connect.mail.ru/share?share_url=[thisurl]",
					"alt" => "Mail.ru",
					"image" => "mailru.png",
					"title" => "Nravitsya MailRu"),					

		"meneame" => array("url" => "http://meneame.net/submit.php?url=[thisurl]&amp;title=[title]",
					"alt" => "Men&eacute;ame",
					"image" => "meneame.png",
					"title" => "Submit to Men&eacute;ame"),

		"misterwong" => array("url" => "http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=[thisurl]&amp;bm_description=[title]",
					"alt" => "Mister Wong",
					"image" => "misterwong.png",
					"title" => "Add this page to Mister Wong"),

		"mixx" => array("url" => "http://www.mixx.com/submit?page_url=[thisurl]",
					"alt" => "mixx",
					"image" => "mixx.png",
					"title" => "Submit to mixx"),

		"myspace" => array("url" => "http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=[thisurl]",
					"alt" => "Myspace",
					"image" => "myspace.png",
					"title" => "Post to Myspace"),

		"n4g" => array("url" => "http://n4g.com/tips?url=[thisurl]&amp;title=[title]",
					"alt" => "N4G",
					"image" => "n4g.png",
					"title" => "Tips N4G about this story"),

		"netlog" => array("url" => "http://www.netlog.com/go/manage/links/view=save&amp;origin=external&amp;url=[thisurl]&amp;title=[title]&amp;description=[title]",
					"alt" => "Netlog",
					"image" => "netlog.png",
					"title" => "Submit to Netlog"),

		"netvibes" => array("url" => "http://www.netvibes.com/share?title=[title]&amp;url=[thisurl]",
					"alt" => "Netvibes",
					"image" => "netvibes.png",
					"title" => "Share on Netvibes"),

		"netvouz" => array("url" => "http://www.netvouz.com/action/submitBookmark?url=[thisurl]&amp;title=[title]&amp;popup=no",
					"alt" => "Netvouz",
					"image" => "netvouz.png",
					"title" => "Submit to Netvouz"),

		"newsvine" => array("url" => "http://www.newsvine.com/_wine/save?u=[thisurl]&amp;h=[title]",
					"alt" => "newsvine.com",
					"image" => "newsvine.png",
					"title" => "Submit to newsvine.com"),

		"nujij" => array("url" => "http://nujij.nl/jij.lynkx?t=[title]&amp;u=[thisurl]",
					"alt" => "NUjij.nl",
					"image" => "nujij.png",
					"title" => "Submit to NUjij"),
					
		"odnoklassniki" => array("url" => "http://www.odnoklassniki.ru/dk?st.cmd=addShare&amp;st.s=1000&amp;st._surl=[thisurl]",
					"alt" => "Klass!",
					"image" => "klass.png",
					"title" => "Share on odnoklassniki.ru"),			

		"oknotizie" => array("url" => "http://oknotizie.virgilio.it/post.html.php?url=[thisurl]&amp;title=[title]",
					"alt" => "OKNOtizie",
					"image" => "oknotizie.png",
					"title" => "Condividi su OKNOtizie"),

		"oneview" => array("url" => "http://www.oneview.com/add/?url=[thisurl]&amp;title=[title]",
					"alt" => "oneview",
					"image" => "oneview.png",
					"title" => "Add to oneview"),

		"orkut" => array("url" => "http://promote.orkut.com/preview?nt=orkut.com&amp;du=[thisurl]&amp;tt=[title]",
					"alt" => "Orkut",
					"image" => "orkut.png",
					"title" => "Share on Orkut"),

		"pinboard" => array("url" => "https://pinboard.in/add?url=[thisurl]&amp;description=[title]&amp;title=[title]",
					"alt" => "Pinboard",
					"image" => "pinboard.png",
					"title" => "Save to Pinboard"),				

		"plaxo" => array("url" => "http://www.plaxo.com/events?share_link=[thisurl]",
					"alt" => "Plaxo",
					"image" => "plaxo.png",
					"title" => "Share on Plaxo"),

		"posterous" => array("url" => "http://posterous.com/share?linkto=[thisurl]&amp;title=[title]",
					"alt" => "Posterous",
					"image" => "posterous.png",
					"title" => "Share on Posterous"),

		"reddit" => array("url" => "http://reddit.com/submit?url=[thisurl]&amp;title=[title]",
					"alt" => "reddit.com",
					"image" => "reddit.png",
					"title" => "Submit to reddit.com"),

		"renren" => array("url" => "http://share.renren.com/share/buttonshare.do?link=[thisurl]&amp;title=[title]",
					"alt" => "Renren",
					"image" => "renren.png",
					"title" => "Share on Renren"),

		"scribd" => array("url" => "http://www.scribd.com/everywhere/scribble?t=[title]&amp;u=[thisurl]",
					"alt" => "Scribd",
					"image" => "scribd.png",
					"title" => "Post this to Scribd"),

		"segnalo" => array("url" => "http://segnalo.alice.it/post.html.php?url=[thisurl]&amp;title=[title]&amp;descr=[title]",
					"alt" => "Segnalo",
					"image" => "segnalo.png",
					"title" => "Posta su Segnalo"),

		"seoigg" => array("url" => "http://www.seoigg.de/node/add/storylink?edit&#91;url&#93;=[thisurl]&amp;edit&#91;title&#93;=[title]",
					"alt" => "SEOigg",
					"image" => "seoigg.png",
					"title" => "Beitrag bei SEOigg hinzuf&uuml;gen"),

		"slashdot" => array("url" => "http://slashdot.org/slashdot-it.pl?op=basic&amp;url=[thisurl]",
					"alt" => "Slashdot",
					"image" => "slashdot.png",
					"title" => "Send to Slashdot"),

		"sonico" => array("url" => "http://www.sonico.com/share.php?title=[title]&amp;url=[thisurl]",
					"alt" => "Sonico",
					"image" => "sonico.png",
					"title" => "Share in Sonico"),

		"sphinn" => array("url" => "http://sphinn.com/submit.php?url=[thisurl]&amp;title=[title]",
					"alt" => "Sphinn",
					"image" => "sphinn.png",
					"title" => "Share in Sphinn"),

		"startlap" => array("url" => "http://www.startlap.hu/sajat_linkek/addlink.php?url=[thisurl]&amp;title=[title]",
					"alt" => "Startlap",
					"image" => "startlap.png",
					"title" => "Add a Startlaphoz"),

		"stumbleupon" => array("url" => "http://www.stumbleupon.com/submit?url=[thisurl]&amp;title=[title]",
					"alt" => "stumbleupon",
					"image" => "stumbleupon.png",
					"title" => "Submit to StumbleUpon"),

		"stumpedia" => array("url" => "http://www.stumpedia.com/submit?url=[thisurl]",
					"alt" => "Stumpedia",
					"image" => "stumpedia.png",
					"title" => "Submit to Stumpedia"),

		"technorati" => array("url" => "http://technorati.com/faves?add=[thisurl]",
					"alt" => "technorati.com",
					"image" => "technorati.png",
					"title" => "Submit to technorati.com"),

		"trunkly" => array("url" => "http://trunk.ly/submit/?u=[thisurl]&amp;t=[title]&amp;notes=[title]&amp;v=1&amp;jump=yes",
					"alt" => "Trunk.ly",
					"image" => "trunkly.png",
					"title" => "Save into Trunk.ly"),

		"tumblr" => array("url" => "http://www.tumblr.com/share/link?url=[thisurl]&amp;name=[title]&amp;description=[title]",
					"alt" => "Tumblr",
					"image" => "tumblr.png",
					"title" => "Share on Tumblr"),

		"twitter" => array("url" => "http://twitter.com/share?url=[thisurl]&amp;text=[title]",
					"alt" => "twitter",
					"image" => "twitter.png",
					"title" => "Tweet"),

		"upnews" => array("url" => "http://www.upnews.it/submit?url=[thisurl]&amp;title=[title]",
					"alt" => "Upnews.it",
					"image" => "upnews.png",
					"title" => "Proponi su Upnews.it"),

		"vk" => array("url" => "http://vkontakte.ru/share.php?url=[thisurl]",
					"alt" => "VK",
					"image" => "vk.png",
					"title" => "Post to VK"),

		"xerpi" => array("url" => "http://www.xerpi.com/favorite/post?url=[thisurl]&amp;title=[title]",
					"alt" => "Xerpi",
					"image" => "xerpi.png",
					"title" => "Post to Xerpi"),

		"yahoo" => array("url" => "http://myweb2.search.yahoo.com/myresults/bookmarklet?u=[thisurl]&amp;t=[title]",
					"alt" => "yahoo",
					"image" => "yahoo.png",
					"title" => "Submit to Yahoo"),

		"yigg" => array("url" => "http://yigg.de/neu?exturl=[thisurl]&amp;exttitle=[title]",
					"alt" => "YiGG",
					"image" => "yigg.png",
					"title" => "Submit to YiGG.de")

	);

	$gCms = cmsms();

	$title_prefix = isset($params['title']) ? $params['title'] : ""; // page title prefix
	$link_target = isset($params['target']) ? $params['target'] : ""; // _blank etc.
	$class = isset($params['class']) ? ' class="' . trim($params['class']) . '"' : ""; // CSS class
	$id = isset($params['id']) ? ' id="' . trim($params['id']) . '"' : ""; // CSS id
	$submitto = isset($params['submitto']) ? strtolower($params['submitto']) : ""; // array containing list of sites to print links to
	$img_dir = isset($params['img_dir']) ? $params['img_dir'] : ""; // directory images are uploaded to
	$img_size = isset($params['img_size']) ? strtolower($params['img_size']) : ""; // size of images: accepted values are big (32px default), small (16px) or none (only textual links without images)
	$text_separator = isset($params['text_separator']) ? $params['text_separator'] : " | "; // text separator used if img_size is set to none (default value is a pipe)
	$real_url = (isset($params['real_url']) && $params['real_url']);
	$plusone = (isset($params['plusone']) && $params['plusone']); // Google +1
	$plusone_lang = isset($params['plusone_lang']) ? '{lang: \'' . trim($params['plusone_lang']) . '\'}' : ""; // Google+1 language (en-US default)
	$pageinfo =& $gCms->variables['pageinfo'];
	$curtitle = urlencode($title_prefix);
	$curtitle .= urlencode(cms_htmlentities($pageinfo->content_title)); // title with prefix
	
	if($real_url){
		$isHTTPS = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on");
		$port = (isset($_SERVER["SERVER_PORT"]) && ((!$isHTTPS && $_SERVER["SERVER_PORT"] != "80") || ($isHTTPS && $_SERVER["SERVER_PORT"] != "443")));
		$port = ($port) ? ':' . $_SERVER["SERVER_PORT"] : '';
		$url = ($isHTTPS ? 'https://' : 'http://') . $_SERVER["SERVER_NAME"] . $port . $_SERVER["REQUEST_URI"];
	} else {
		$hm =& $gCms->GetHierarchyManager();
		$page_content_id = $gCms->variables['content_id'];
		$curnode =& $hm->getNodeById($page_content_id);
		$curcontent =& $curnode->GetContent();
		$url = $curcontent->GetURL();
	}
	$url = urlencode($url); // url of current page

	if ($link_target != "") {
		$target = ' target="' .$link_target. '"';
	} else {
		$target = "";
	}

	if ($img_dir == "") {
		$img_dir = "images/socialbookmarking/";
	}

	switch ($img_size) {
		case "big":
			$img_size = "32";
			break;
		case "small":
			$img_size = "16";
			break;
		case "none":
			$img_size = "0";
			break;
		default:
			$img_size = "32";
	}

	$result = "";
	$result .= '<!-- Start Social Bookmarking plugin -->' . PHP_EOL;

	if ($submitto == "all" || $submitto == "") {
		foreach ($url_array as $value) {
			$print_url = str_replace("[thisurl]", $url, $value["url"]);
			$print_url = str_replace("[title]", $curtitle, $print_url);
			if ($img_size != "0") {
				$result .= '<a href="' . $print_url . '"';
				$result .= ' title="' . $value["title"] . '"';
				$result .= ' rel="nofollow"';
				$result .= $target;
				$result .= $class;
				$result .= $id;
				$result .= '>';
				$result .= '<img src="' . $img_dir.$value["image"] . '"';
				$result .= ' alt="' . $value["alt"] . '"';
				$result .= ' title="' . $value["title"] . '"';
				$result .= ' width="' . $img_size . '"';
				$result .= ' height="' . $img_size . '" />';
				$result .= '</a>';
				$result .= ' ' . PHP_EOL;
			} else {
				$result .= '<a href="' . $print_url . '"';
				$result .= ' title="' . $value["title"] . '"';
				$result .= ' rel="nofollow"';
				$result .= $target;
				$result .= $class;
				$result .= $id;
				$result .= '>';
				$result .= $value["title"];
				$result .= '</a>';
				$result .= $text_separator . PHP_EOL;
			}
		}
	} else {
		$submit_array = explode("|", $submitto);
		foreach($submit_array as $value) {
			$print_url = str_replace("[thisurl]", $url, $url_array[$value]["url"]);
			$print_url = str_replace("[title]", $curtitle, $print_url);
			if ($img_size != "0") {
				$result .= '<a href="' . $print_url . '"';
				$result .= ' title="' . $url_array[$value]["title"] . '"';
				$result .= ' rel="nofollow"';
				$result .= $target;
				$result .= $class;
				$result .= $id;
				$result .= '>';
				$result .= '<img src="' . $img_dir . $url_array[$value]["image"] . '" ';
				$result .= 'alt="' . $url_array[$value]["alt"] . '"';
				$result .= ' title="' . $url_array[$value]["title"] . '"';
				$result .= ' width="' . $img_size . '"';
				$result .= ' height="' . $img_size . '" />';
				$result .= '</a>';
				$result .= ' ' . PHP_EOL;
			} else {
				$result .= '<a href="' . $print_url . '"';
				$result .= ' title="' . $url_array[$value]["title"] . '"';
				$result .= ' rel="nofollow"';
				$result .= $target;
				$result .= $class;
				$result .= $id;
				$result .= '>';
				$result .= $url_array[$value]["title"];
				$result .= '</a>';
				$result .= $text_separator . PHP_EOL;
			}
		}
	}

	// Google +1
	if($plusone){
		// this line of code can't pass the w3.org validation service
		// $result .= '<g:plusone></g:plusone>' . PHP_EOL;
		$result .= '<script type="text/javascript" src="https://apis.google.com/js/plusone.js">' . $plusone_lang . '</script>' . PHP_EOL;
		$result .= '<div class="g-plusone"></div>' . PHP_EOL;
	}

	$result .= '<!-- End Social Bookmarking plugin -->';

	return $result;

}

function smarty_cms_help_function_SocialBookmarking() {
	?>
	<h3>What does this do?</h3>
	<p>Prints links to submit the page to up to 90 social bookmarks managers like: A1-Webmarks, Adfty, ALLVOICES, Bebo, BibSonomy, BlinkList, Blogged, Blogmarks, Brainify, Buddymarks, Business Exchange, Buzzup, CHIQ, CiteUlike, Connotea, coRank, Corkboard, Current, del.icio.us, DesignFloat, Digg, Diigo, DotNetKicks, .Net Shoutout, Douban, DZone, eKudos, Evernote, Facebook, Fark, Faves, Favoriten, Folkd, Formspring, Fresqui, FriendFeed, funP, Furl, fwisp, Google+1, Google Buzz, Google Bookmarks, Google Translate, Hyves, Instapaper, Jamespot, Jumptags, linkaGoGo, LinkARENA, LinkedIn, Linksilo, Live.com, MailRu, Men&eacute;ame, Mister Wong, Mixx, Myspace, N4G, Netlog, Netvibes, Netvouz, Newsvine, NUjij, Odnoklassniki.ru, OKNOtizie, Oneview, Orkut, Pinboard, Plaxo, Posterous, Reddit, Renren, Scribd, Segnalo, SEOigg, Slashdot, Sonico, Sphinn, Startlap, StumbleUpon, Stumpedia, Technorati, Trunk.ly, Tumblr, Twitter, Upnews, Xerpi, VK, Yahoo, YiGG, or by Email.</p>
	<h3>How do I use it?</h3>
	<p>Insert the tag <code>{socialBookmarking}</code> into your template or page (please notice the lowercase 's' in the tag).</p>
	<p>To ensure that web-designers have maximum control over customization, if you want to style the plugin's output, feel free to use additional external CSS rules in conjunction with the <code>class</code> or <code>id</code> parameter.</p>
	<h3>What parameters does it take?</h3>
	<ul>
		<li><em>(optional)</em> <code>title</code></li>
		<ul>
			<li>Allows text to be prefixed as a constant to the title information</li>
			<li>E.g. <code>{socialBookmarking title="My Website - "}</code></li>
		</ul>
		<li><em>(optional)</em> <code>target</code></li>
		<ul>
			<li>Populates the "<code>target</code>" attribute of the link</li>
			<li>E.g. <code>{socialBookmarking target="_blank"}</code></li>
		</ul>
		<li><em>(optional)</em> <code>class</code></li>
		<ul>
			<li>Populates the "<code>class</code>" attribute of the link, set the CSS class name</li>
			<li>E.g. <code>{socialBookmarking class="MyCssClassName"}</code></li>
		</ul>
		<li><em>(optional)</em> <code>id</code></li>
		<ul>
			<li>Populates the "<code>id</code>" attribute of the link, set the CSS id name</li>
			<li>E.g. <code>{socialBookmarking id="MyCssIdName"}</code></li>
		</ul>
		<li><em>(optional)</em> <code>submitto</code></li>
		<ul>
			<li>Choose which Social Bookmark Managers to submit to</li>
			<li>Possible values (case-insensitive mode) separated by a pipe ("<code>|</code>"):</li>
			<ul>
				<li><code>all</code></li>
				<li><code>email</code></li>
				<li><code>a1webmarks</code></li>
				<li><code>adfty</code></li>
				<li><code>allvoices</code></li>
				<li><code>bebo</code></li>
				<li><code>bibsonomy</code></li>
				<li><code>blinklist</code></li>
				<li><code>blogged</code></li>
				<li><code>blogmarks</code></li>
				<li><code>brainify</code></li>
				<li><code>buddymarks</code></li>
				<li><code>busexchange</code></li>
				<li><code>buzzup</code></li>
				<li><code>chiq</code></li>
				<li><code>citeulike</code></li>
				<li><code>connotea</code></li>
				<li><code>corank</code></li>
				<li><code>corkboard</code></li>
				<li><code>current</code></li>
				<li><code>delicious</code></li>
				<li><code>designfloat</code></li>
				<li><code>digg</code></li>
				<li><code>diigo</code></li>
				<li><code>dotnetkicks</code></li>
				<li><code>dotnetshoutout</code></li>
				<li><code>douban</code></li>
				<li><code>dzone</code></li>
				<li><code>ekudos</code></li>
				<li><code>evernote</code></li>
				<li><code>facebook</code></li>
				<li><code>fark</code></li>
				<li><code>faves</code></li>
				<li><code>favoriten</code></li>
				<li><code>folkd</code></li>
				<li><code>formspring</code></li>
				<li><code>fresqui</code></li>
				<li><code>friendfeed</code></li>
				<li><code>funp</code></li>
				<li><code>furl</code></li>
				<li><code>fwisp</code></li>
				<li><code>gbuzz</code></li>
				<li><code>google</code></li>
				<li><code>googletranslate</code></li>
				<li><code>hyves</code></li>
				<li><code>instapaper</code></li>
				<li><code>jamespot</code></li>
				<li><code>jumptags</code></li>
				<li><code>linkagogo</code></li>
				<li><code>linkarena</code></li>
				<li><code>linkedin</code></li>
				<li><code>linksilo</code></li>
				<li><code>live</code></li>
				<li><code>mailru</code></li>
				<li><code>meneame</code></li>
				<li><code>misterwong</code></li>
				<li><code>mixx</code></li>
				<li><code>myspace</code></li>
				<li><code>n4g</code></li>
				<li><code>netlog</code></li>
				<li><code>netvibes</code></li>
				<li><code>netvouz</code></li>
				<li><code>newsvine</code></li>
				<li><code>nujij</code></li>
				<li><code>odnoklassniki</code></li>
				<li><code>oknotizie</code></li>
				<li><code>oneview</code></li>
				<li><code>orkut</code></li>
				<li><code>pinboard</code></li>
				<li><code>plaxo</code></li>
				<li><code>posterous</code></li>
				<li><code>reddit</code></li>
				<li><code>renren</code></li>
				<li><code>scribd</code></li>
				<li><code>segnalo</code></li>
				<li><code>seoigg</code></li>
				<li><code>slashdot</code></li>
				<li><code>sonico</code></li>
				<li><code>sphinn</code></li>
				<li><code>startlap</code></li>
				<li><code>stumbleupon</code></li>
				<li><code>stumpedia</code></li>
				<li><code>technorati</code></li>
				<li><code>trunkly</code></li>
				<li><code>tumblr</code></li>
				<li><code>twitter</code></li>
				<li><code>upnews</code></li>
				<li><code>vk</code></li>
				<li><code>xerpi</code></li>
				<li><code>yahoo</code></li>
				<li><code>yigg</code></li>
			</ul>
			<li>The value <code>all</code> will print all supported Social Bookmark links</li>
			<li>The value <code>email</code> will print a mailto link</li>
			<li><strong>Important:</strong> if the value <code>all</code> is used, do not enter any other value</li>
			<li>Leaving this parameter blank, or not using this parameter will automatically print all supported Social Bookmark links</li>
			<li>E.g. <code>{socialBookmarking submitto="email|facebook|twitter|linkedin"}</code></li>
			<li>E.g. <code>{socialBookmarking submitto="all"}</code></li>
		</ul>
		<li><em>(optional)</em> <code>plusone</code></li>
		<ul>
			<li>Set to <code>1</code> to print the Google+1 button</li>
			<li>Leave empty or set to <code>0</code> if you don't want to print the Google+1 button</li>
			<li>E.g. <code>{socialBookmarking submitto="email|facebook|twitter|linkedin" plusone="1"}</code></li>
		</ul>
		<li><em>(optional)</em> <code>plusone_lang</code></li>
		<ul>
			<li>Sets the language to use for Google+1 button on the page</li>
			<li>For available language code values, please see the list of supported language codes here: <a href="https://developers.google.com/+/plugins/+1button/#available-languages" target="_blank">https://developers.google.com/+/plugins/+1button/#available-languages</a></li>
			<li>Do NOT define if you want to print the Google+1 button in English (en-US)</li>
			<li>E.g. <code>{socialBookmarking submitto="email|facebook|twitter|linkedin" plusone="1" plusone_lang="it"}</code></li>
		</ul>
		<li><em>(optional)</em> <code>img_dir</code></li>
		<ul>
			<li>The directory you have uploaded the images to</li>
			<li>Do NOT define, or just leave BLANK if you have uploaded to the DEFAULT install directory <code>/images/socialbookmarking/</code></li>
			<li><strong>Important:</strong> if you define a directory, include the leading and trailing slashes ("<code>/</code>")</li>
			<li>E.g. <code>{socialBookmarking img_dir="<strong>/</strong>my/image/directory<strong>/</strong>"}</code></li>
		</ul>
		<li><em>(optional)</em> <code>img_size</code></li>
		<ul>
			<li>Do NOT define, or set to <code>big</code> to print the Social Bookmark links with 32x32 pixel images</li>
			<li>Set to <code>small</code> to print the Social Bookmark links with 16x16 pixel images</li>
			<li>Set to <code>none</code> to print only textual links without images</li>
			<li>E.g. <code>{socialBookmarking img_size="big"}</code></li>
			<li>E.g. <code>{socialBookmarking img_size="small"}</code></li>
			<li>E.g. <code>{socialBookmarking img_size="none"}</code></li>
		</ul>
		<li><em>(optional)</em> <code>text_separator</code></li>
		<ul>
			<li>Text separator used if <code>img_size</code> parameter is set to <code>none</code>
			<li>Default value is a pipe between two spaces ("<code> | </code>")</li>
			<li>E.g. <code>{socialBookmarking img_size="none" text_separator="&lt;br /&gt;"}</code></li>
			<li>E.g. <code>{socialBookmarking img_size="none" text_separator=", "}</code></li>
		</ul>
		<li><em>(optional)</em> <code>real_url</code></li>
		<ul>
			<li>Leave empty or set to <code>0</code> to use the content page url without consideration for modules</li>
			<li>Set to <code>1</code> to use the real url</li>
		</ul>
	</ul>
	<?php
}

function smarty_cms_about_function_SocialBookmarking() {
	?>
	<p>Author: Paul Hodgson</p>
	<p>Updated by: Eduardo Martinez (hexdj)<br />
	Updated/Maintained by: Andrea Weichbrodt (wich)</p>
	<p>Version: 1.7</p>
	<p>Update: Check for updates for this plugin at the <a href="http://dev.cmsmadesimple.org/projects/socialbks" target="_blank">CMS Made Simple Forge page</a></p>
	<p>Feature Requests: If you want to add others social bookmarking services, please let me know by opening a new feature request in the dedicated <strong>Feature Requests tab</strong> of the <a href="http://dev.cmsmadesimple.org/projects/socialbks" target="_blank">CMS Made Simple Forge page</a> for this plugin</p>
	<p>Bugs: If you want to submit a new bug, please let me know by opening a new bug in the dedicated <strong>Bug Tracker tab</strong> of the <a href="http://dev.cmsmadesimple.org/projects/socialbks" target="_blank">CMS Made Simple Forge page</a> for this plugin</p>
	<p>Licence: Free software under the GNU General Public License</p>
	<p>Change History:</p>
	<ul>
		<li>Version 1.7 released on 20120518 by Andrea Weichbrodt (wich)</li>
		<ul>
			<li>Added VK, Odnoklassniki.ru, MailRu</li>
			<li>Added the optional <code>plusone_lang</code> parameter to set the language to use for Google+1 button on the page</li>
			<li>Updated help and about text</li>
		</ul>
		<li>Version 1.6 released on 20120215 by Andrea Weichbrodt (wich)</li>
		<ul>
			<li>Added Google+1</li>
			<li>Updated Tumblr</li>
			<li>Added the optional <code>class</code> parameter to set the CSS class name for the link tag</li>
			<li>Added the optional <code>id</code> parameter to set the CSS id name for the link tag</li>
			<li>Added a <code>PHP_EOL</code> char after each link for clarify the output</li>
			<li>Added XHTML comment lines before and after the plugin for clarify the output</li>
			<li>Updated help and about text</li>
		</ul>
		<li>Version 1.5 released on 20111031 by Andrea Weichbrodt (wich)</li>
		<ul>
			<li>Added A1-Webmarks, Adfty, BibSonomy, Blogged, Brainify, Business Exchange, CHIQ, coRank, Corkboard, Current, DotNetKicks, .Net Shoutout, Evernote, Faves, Favoriten, Folkd, Formspring, Fresqui, funP, fwisp, Google Translate, Instapaper, Jumptags, LinkARENA, Linksilo, Oneview, Pinboard, Scribd, Segnalo, SEOigg, Stumpedia, Trunk.ly, Xerpi, YiGG</li>
			<li>Updated Furl (only the image file)</li>
			<li>Updated Jamespot (only the image file)</li>
			<li>Fix security on <code>$gCms</code> declaration</li>
			<li>Added the option <code>none</code> for the <code>img_size</code> parameter, to print only textual links without images</li>
			<li>Added the <code>text_separator</code> parameter, to print a separator if <code>img_size</code> parameter is set to <code>none</code></li>
			<li>Added the <code>title</code> attribute to the <code>img</code> tag</li>
			<li>Updated help and about text</li>
		</ul>
		<li>Version 1.4 released on 20110614 by Andrea Weichbrodt (wich)</li>
		<ul>
			<li>Added ALLVOICES, Bebo, Blogmarks, Buddymarks, CiteUlike, Connotea, DesignFloat, Diigo, Douban, DZone, eKudos, Fark, Google Buzz, Hyves, Jamespot, linkaGoGo, Live.com, Men&eacute;ame, Mister Wong, N4G, Netlog, Netvibes, Netvouz, NUjij, OKNOtizie, Orkut, Plaxo, Posterous, Renren, Slashdot, Sonico, Sphinn, Startlap, Tumblr, Upnews</li>
			<li>Added a mailto link</li>
			<li>Updated Digg, Technorati</li>
			<li>Removed ma.gnolia.com (web site closed)</li>
			<li>Updated images</li>
			<li>Added the <code>img_size</code> parameter, allowing a selection to be made, on which size (32x32 or 16x16 pixel) the Social Bookmarks link's images are output.</li>
			<li>Updated help and about text</li>
		</ul>
		<li>Version 1.3 released on 20110605 by Andrea Weichbrodt (wich)</li>
		<ul>
			<li>Added Twitter, Friendfeed</li>
			<li>Updated Blinklist, Myspace, LinkedIn</li>
			<li>Now parameters can be passed in case-insensitive mode</li>
			<li>Now no pipe ("<code>|</code>") is printed at the end of each link, only a single space ("<code> </code>") is printed</li>
			<li>Now generated code pass the w3.org validation service</li>
			<li>Updated help and about text</li>
		</ul>
		<li>Version 1.2 released on 20091228 by Eduardo Martinez (hexdj)</li>
		<ul>
			<li>Minor update: clarified help text</li>
		</ul>
		<li>Version 1.1</li>
		<ul>
			<li>Fixed notices that were displayed on some servers and other fixes (thanks to plger)</li>
		</ul>
		<li>Version 1.01</li>
		<ul>
			<li>Added Stumbleupon, Buzzup, Blinklist, Mixx, Myspace, LinkedIn and Facebook</li>
			<li>Fixed issue with default images path</li>
			<li>Updated icons</li>
		</ul>
		<li>Version 1.0 released on 20060110 by Paul Hodgson</li>
		<ul>
			<li>The directory the images are stored in can be changed from the default install dir, and the dir defined within the tag</li>
			<li>Cleaned up some code</li>
			<li>Added more comments</li>
		</ul>
		<li>Version 0.3 Beta 1</li>
		<ul>
			<li>Added the <code>submitto</code> parameter, allowing a selection to be made, on which Social Bookmarks are output</li>
			<li>Added the variable <code>$img_dir</code> to the code, so any directory can be used to store the images</li>
		</ul>
		<li>Version 0.2 Beta 1</li>
		<ul>
			<li>Added two parameters, <code>title</code> and <code>target</code></li>
		</ul>
		<li>Version 0.1 Beta 1</li>
		<ul>
			<li>First release</li>
		</ul>
	</ul>
	<?php
}
?>

Download

Trovi il plugin Social Bookmarking 1.7 nel forge di CMS Made Simple: http://dev.cmsmadesimple.org/projects/socialbks

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *