Manda ad un amico anche con WordPress.com
21 Marzo 2008, 12:38 — IsadoraIn barba a tutti i consigli per ottimizzare il posizionamento del proprio blog nei motori di ricerca, il modo migliore per ottenere traffico “di qualità” è e rimane il passaparola. Spesso ci s’imbatte in siti e blog che offrono ai propri lettori un link attraverso il quale inviare a terzi una pagina o un post per posta elettronica semplicemente attraverso un semplice formulario, cosa che i blog WordPress.com non possono fare.
Tra gli utenti WordPress.com c’è chi ha scoperto un’ottima alternativa, fornendomi l’ispirazione per questo post. La soluzione che vi propongo utilizza un cosiddetto FeedFlare di FeedBurner, quindi, per seguire le istruzioni di questo post bisognerà innanzitutto “bruciare” il feed del proprio blog con FeedBurner.
Una volta registrato il proprio feed su Feedburner, occorre attivare la funzionalità: su “Optimize” > “FeedFlare” si deve spuntare l’opzione “Email this” per “site” (attivandola per il feed, si inserirà il link anche nel feed del proprio blog offerto da FeedBurner, non è obbligatorio, ma non guasta), come da immagine.

Fatto questo, non rimarrà che inserire il link apposito nei post per i quali si desidera offrire questa opzione. Il link dovrà essere del formato:
<a href=”http://www.feedburner.com/fb/a/emailFlare?itemTitle=titolo del post&uri=permalink del post“>Manda ad un amico »</a>
dove:
- titolo del post va sostituito con il titolo del post in questione e
- permalink del post va sostituito con il link al suddetto post
per facilitarmi e facilitarvi il compito, ecco qui una bookmarklet per inserire il link “automaticamente”. La bookmarklet richiede l’inserimento dello slug del post e del titolo e, se utilizzata in modalità “codice”, inserisce il link in fondo al post, esattamente come la bookmarklet per il social bookmarking.
javascript:(function(){var oggi=new Date();var anno=oggi.getFullYear();var mese=oggi.getMonth()+1;if (mese < 10){mese='0'+mese};var giorno=oggi.getDate();if (giorno < 10){giorno='0'+giorno};var tkns=location.href.split('/');var bhome='';for(var i=0;i<3;i++){bhome+=(tkns[i]+'/');}var slug=prompt('Slug del post:','');var perml=encodeURI(bhome+anno+'/'+mese+'/'+giorno+'/'+slug+'/');var titolo=encodeURI(prompt('Titolo del post',''));var manda='<a href="http://www.feedburner.com/fb/a/emailFlare?itemTitle='+titolo+'&uri='+perml+'" title="Manda ad un amico">Manda ad un amico »</a>';document.getElementById('content').value+=(manda);}())
Ed ecco il risultato:




















21 Marzo 2008, 20:22 at 20:22
hey there,

although i don’t understand the language, i could figure out that you have figured out a bookmarklet that will automatically create “email this” url’s, right? that’s what i wanted to have, only i am not smart enough for that!
thanks for the bookmarklet!
21 Marzo 2008, 20:38 at 20:38
Well, you gave me the idea, so I’m glad I can “give back” something
if you need any help with the bookmarklet, just ask (it works only on wordpress.com blogs and only in code mode on the edit post page)!
21 Marzo 2008, 20:48 at 20:48
but um, how do i use the bookmarklet? can you explain in english, please? {begging on knees}
also, why not build a firefox extension that will make “email this” from feedburner a snap for wordpress.com bloggers? that would be a cool ff extension, don’t you think?
21 Marzo 2008, 20:52 at 20:52
oopsie, you were replying while i was writing again! ok, yes, please do help! i was trying to get your page translated at google and needed the permalink and found your response!
21 Marzo 2008, 20:55 at 20:55
I’m thinking about writing greasemonkey scripts, but I don’t like that much to depend from one special browser…
As for using the bookmarklet:
1. copy the code using the “copy to clipboard” link
2. create a new bookmark in your browser and paste the code in the address (url) field
3. Write a post
4. Switch to code (if you use the visual editor, otherwise skip this step)
5. launch the bookmarklet
6. Insert the post slug (the bookmarklet builds the permalink by itself)
7. Insert the post title
That’s it: the boomarklet will add the link at the end of your post.
(Maybe you should replace “Manda ad un amico” with “email this” or whatever you like, before you save the bookmarklet).
21 Marzo 2008, 21:11 at 21:11
ff extensions are workable in flock, too! that makes two browsers. now will you make one?
i have been to the greasemonkey site today. but felt quite lost. you see i’m not a geek, although i have geeky desires!
which reminds me, point no 5 is lost on me!
although i don’t understand the whole process i do understand that this is not as automatic as a ff extension could be!
please don’t get me wrong. i am not insisting on you building an ff extension, it’s just that ff extensions are easy enough even for me! so i am drooling at the thought of it!
21 Marzo 2008, 21:19 at 21:19
I have no idea on how to make ff extensions, but I can have a look
Point no. 5: in order to launch the bookmarklet just click on the bookmark you created in point no 2. You will be prompted to enter the slug and then the title.
Here you’ll find an explanation in much better english (sorry…): http://lorelle.wordpress.com/2005/10/14/a-tagging-bookmarklet-for-wordpress-and-wordpresscom-users/
21 Marzo 2008, 21:45 at 21:45
ur english is quite ok, i don’t exactly expect you to be shakespeare!
ok, i will visit lorelle.
by the way, i just remember a point about post slugs - learned back when i was mad about social bookmarking workarounds for wordpress.com blogs.
thing with post slug is, it can’t handle future posts! future posts are very important for me and my future art blog! that’s where i need blog promotion most! i want more and more people to enjoy my artworks!
21 Marzo 2008, 22:10 at 22:10
http://developer.mozilla.org/en/docs/Custom_Toolbar_Button
if i were smarter i would have made a bookmarklet with help from this page! although i am creative, i don’t have the technical expertise!
i badly want to learn javascript! maybe it’s me who is gonna write the feedburner “email this” code for firefox!
22 Marzo 2008, 1:42 at 1:42
Questo si che lo voglio provare!
Mi sembra un ottimo modo per far conosce il proprio blog!
Provo subito!
Grazie ancora Isadora, i tuoi consigli sono sempre ottimi!
22 Marzo 2008, 2:42 at 2:42
[...] dove poter inviare ad un amico il post appena letto. Per maggiori informazioni vi rimando al suo post, così potrete prendere [...]
22 Marzo 2008, 8:02 at 8:02
Netty Gritty, for the slug, well, you can create one manually and insert it in the post slug field, then save. I guess that for future posts you still have some manual work, because the permalink contains the date of publishing (and not of writing). I’ll have a look at the firefox extensions, it doesn’t look difficult at a first glance.
Ciao Alberto, spero che almeno questa funzioni. Purtroppo non funzionerà con alcune versioni di IE, perché ha qualcosa come 647 caratteri, quindi c’è il solito problema. Ma magari ne faccio una extensio per Firefox, come si discuteva qui sopra…
22 Marzo 2008, 15:15 at 15:15
i think i am getting the hang of it! it might take me a few days to do the post. hang on, i can do it!! {overjoyed at my own geekiness}
22 Marzo 2008, 18:41 at 18:41
hello again!
i have been trying to create another bookmarklet that doesn’t require post slugs (keeping future posts in mind) - modeled after the socializer bookmarklet. i modified the code and everything turned out just fine. except one thing - i can’t get to show the post title in the form! it just says this article.
see an example
any idea why this is happening?
22 Marzo 2008, 18:45 at 18:45
hey forget the comment above. i solved the problem. i had an extra space (i didn’t notice the %20 in the address bar before!)
yay!
that means i have just created a feedburner bookmarklet that is suitable even for future posts!
i feel like a pro geek!
thanks to you. your bookmarklet was an inspiration!
22 Marzo 2008, 19:09 at 19:09
Great! I’m very proud of you! And I succeeded in making an alpha version of a ff extension, thanks to you
btw, now you can also have a look at the other bookmarklets (see the category): I’m thinking about releasing a ff extension with all of the bookmarklet functions, localized for italian, german and english, but I’m afraid it will take a while…
22 Marzo 2008, 20:42 at 20:42
i have a very stupid question now. which language did you use for sourcecode to display your code? i used jscript, but it’s messing my code. i tried doing it in code mode, but that stripped out all my js elements. i tried xml, but it stripped my code again. so, what am i doing wrong?
by converting the txt file to html file first.
my code also uses <a href> attributes. cos i want my readers to install the bookmarklet (a hyperlinked “email this post”
i am feeling totally lost.
22 Marzo 2008, 20:44 at 20:44
i have no idea how the hyperlink to your own post happened. i wrote a href within angle brackets , before the words “attributes” - i guess i shouldn’t have done that!
22 Marzo 2008, 21:24 at 21:24
I use jscript. Maybe it’s some theme issue? What do you mean by “text file”? Can I have a look somewhere? Maybe you can mail me the post content?
Don’t worry about the hyperlink, I’ll edit it, ok?
24 Marzo 2008, 5:44 at 5:44
hey! i have my own bookmarklet post at last! only one thing, it’s a two click process. i have been trying so hard to figure out a one click process, and messed up. but guess what, right after i painstakingly made the post, i checked my one-click bookmarklet whimsically and saw that it actually works! that means another blog post is awaiting me!
thanks for your initial bookmarklet. it was a biiiiiiiiiiiiiiiiiiiig inspiration!
24 Marzo 2008, 7:47 at 7:47
lalala!
i have posted the one-click bookmarklet already!
i had no idea there was such a big geek in me!
it’s all your fault, i felt so jealous of your bookmarklet and had to create something all on my own!
24 Marzo 2008, 16:44 at 16:44
Isadora, grazie per la segnalazione, ho cominciato ad inserirlo nei post.
24 Marzo 2008, 19:52 at 19:52
Ciao illuminato, qui mi sa che dobbiamo ringraziare Netty Gritty
24 Marzo 2008, 20:09 at 20:09
Riuscita anche qui - ho sostituito il testo con “Spedisci via mail” perché.. boh, non lo so neanche io
Grazie mille, preziosi consigli 
25 Marzo 2008, 7:45 at 7:45
Bene! Be’, infatti in inglese si chiama “email this”…
25 Marzo 2008, 11:45 at 11:45
Ecco, inconsapevolmente (o forse soltanto inconsciamente) anglofila nel profondo… Ora provo a fare una bookmarklet congiunta per entrambe le funzioni (la “social” e la “a-social” per un unico amico) - certo che di lunedì mattina ho un senso dell’umorismo ben strano
25 Marzo 2008, 19:01 at 19:01
anche perché è martedì…
Sì, l’idea di combinare le due bookmarklet è ottima, fammi sapere se ti serve una mano!
27 Marzo 2008, 17:20 at 17:20
Brava,continua così,sempre interessante