Tutorial: Integrare Facebook Connect in un sito sviluppato con CMS (Lesson 4)

Spread the love

Siamo giunti oramai all’ultima lezione di questo tutorial e sarete diventati sicuramente degli abili “integratori” di Facebook nel Vostro sito.

Vediamo dunque quest’oggi qualche ultimo particolare per affinare ancor più le nostre personalizzazioni al contenuto di Facebook sul nostro sito web.

Un difetto spesso riscontrato di un nostro utente loggato in Facebook riguarda la dimensione delle foto dell’avatar. E’ necessario per un’essenziale questione estetica far si che tutti gli avatar abbiano la stessa dimensione…cioè come quella di Facebook (48 x 48 Pixel).
Il plug-in di Facebook Connect installato sul nostro CMS però imposta una larghezza standard di 48 Pixel lasciando invariata invece l’altezza (cioè di qualsiasi dimensione), e questo sicuramente creerà un disordine grafico all’interno di un layout magari curato ad hoc. Per permettere il ridimensionamento degli avatar in automatico a quelli delle dimensioni di Facebook (48 x 48 Pixel), procediamo nel seguente modo:

Aprite con Notepad++ (per chi necessitasse di un rinfresco vedi lezione 3) e con questo, editate il file fbConnectLogic.php come abbiamo sempre fatto.

Per effettuare l’editing basta portarsi alla riga 365 (sempre al lato destro del vostro schermo” e cambiare il valore di
size=”thumb” con il parametro di size=”square”.

Il gioco è fatto.

Altra modifica che possiamo ottenere è quella di eliminare il link del profilo Facebook nei commenti qualora egli non sia logato ed inserire un link autonomo.
Per fare ciò, necessiterà all’interno del file comments.php (sempre modificandolo con un editor html), inserire il seguente codice:

<?php
    if(is_user_fbconnect($comment->user_id)){
        comment_author();
    }else{
        comment_author_link();
    }
?>

Così, l’autore del commento non loggato in Facebook avrà libertà di inserire il proprio link.

Finisce qui la mini-guida dell’integrazione tra Facebook ed il nostro sito realizzato con WordPress, molteplici ancora sono le modifiche che possono essere effettuate al plug-in qualora non si scegliesse di utilizzare le Widget standard.

Torneremo sull’argomento qualora ci saranno nuovi sviluppi, per ora l’unico augurio è quello di una “buona Face-integrazione”.

2.646 commenti su “Tutorial: Integrare Facebook Connect in un sito sviluppato con CMS (Lesson 4)”

  1. Wonderful beat ! I would like to apprentice while you amend your web site, how can i
    subscribe for a blog website? The account helped me a acceptable deal.
    I had been a little bit acquainted of this your broadcast offered bright clear concept

    Rispondi
  2. I’m not sure exactly why but this web site is loading very
    slow for me. Is anyone else having this problem or is it
    a problem on my end? I’ll check back later on and see if the
    problem still exists.

    Rispondi
  3. legitimate canadian pharmacies [url=http://canadapharm.shop/#]pet meds without vet prescription canada[/url] canadian drugstore online

    Rispondi
  4. Unquestionably imagine that that you said. Your favourite
    justification appeared to be on the web the easiest factor to
    understand of. I say to you, I definitely get irked whilst people think about
    worries that they just do not realize about. You managed to hit the nail
    upon the top and also outlined out the whole thing with no need
    side effect , folks can take a signal. Will probably be
    again to get more. Thanks

    Rispondi
  5. Hi there, just became alert to your blog through
    Google, and found that it is really informative. I’m gonna watch out for brussels.
    I’ll be grateful if you continue this in future. Lots of people will be benefited
    from your writing. Cheers!

    Rispondi
  6. My partner and I stumbled over here from a different web page and thought I might check
    things out. I like what I see so i am just following you.
    Look forward to finding out about your web page again.

    Rispondi
  7. Its like you read my mind! You appear to understand a lot about this,
    like you wrote the e book in it or something. I believe that you can do with
    some % to drive the message home a bit, but instead of that, this is excellent
    blog. A great read. I’ll certainly be back.

    Rispondi
  8. Hi I am so glad I found your webpage, I really found you by accident, while I was browsing on Askjeeve for
    something else, Nonetheless I am here now and would just like to say thank you for a marvelous
    post and a all round exciting blog (I also love the theme/design), I don’t have time to look over it all at the minute but I have bookmarked it and also included your RSS
    feeds, so when I have time I will be back to read much more, Please
    do keep up the great b.

    Rispondi
  9. Thanks on your marvelous posting! I definitely enjoyed reading it, you may be a great author.I will be sure to
    bookmark your blog and will come back at some point.

    I want to encourage you to ultimately continue your great posts, have a nice afternoon!

    Rispondi
  10. Hola! I’ve been following your weblog for a long time
    now and finally got the bravery to go ahead and give you a shout out from Huffman Tx!
    Just wanted to tell you keep up the fantastic work!

    Rispondi
  11. Good day! Would you mind if I share your blog with my facebook group?
    There’s a lot of people that I think would really appreciate your content.
    Please let me know. Thank you

    Rispondi
  12. Hello! This post couldn’t be written any better!
    Reading this post reminds me of my good old room
    mate! He always kept talking about this. I will forward this article to
    him. Fairly certain he will have a good read. Many thanks for
    sharing!

    Rispondi
  13. Hi there, I found your web site by the use of Google while searching for
    a similar matter, your site came up, it appears great.
    I have bookmarked it in my google bookmarks.
    Hello there, simply was aware of your weblog via Google, and located that it
    is truly informative. I am gonna be careful for brussels.
    I will be grateful for those who proceed this in future.
    Numerous other folks will be benefited out of your
    writing. Cheers!

    Rispondi
  14. I’m really impressed with your writing skills as well as with
    the layout on your blog. Is this a paid theme or did
    you modify it yourself? Either way keep up the excellent quality
    writing, it’s rare to see a great blog like this one nowadays.

    Rispondi

Lascia un commento