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. I am not sure where you’re getting your info, but great topic.
    I needs to spend some time learning more or understanding more.
    Thanks for excellent info I was looking for this info for my mission.

    Rispondi
  2. Heya i’m for the first time here. I found this board and I find It really useful & it helped me out much.

    I hope to give something back and aid others like you aided me.

    Rispondi
  3. Aw, this was an exceptionally nice post.

    Finding the time and actual effort to produce a top notch article… but what can I say… I put things
    off a whole lot and don’t manage to get nearly anything done.

    Rispondi
  4. What’s Going down i’m new to this, I stumbled upon this I have discovered It positively helpful and it has aided me
    out loads. I hope to give a contribution & help different users like its aided me.
    Good job.

    Rispondi
  5. Simply wish to say your article is as amazing. The clarity in your post is simply spectacular and i could assume you are an expert
    on this subject. Fine with your permission let me to grab your RSS feed to keep updated with forthcoming post.
    Thanks a million and please keep up the rewarding
    work.

    Rispondi
  6. My brother suggested I might like this blog.
    He was entirely right. This post actually made my day.
    You can not imagine simply how much time I had spent for this information! Thanks!

    Rispondi
  7. I’m impressed, I have to admit. Seldom do I
    encounter a blog that’s equally educative and amusing,
    and let me tell you, you have hit the nail on the
    head. The issue is something which too few folks are
    speaking intelligently about. I’m very happy that I stumbled across this in my hunt for something regarding
    this.

    Rispondi
  8. Have you ever thought about including a little bit more than just your articles?
    I mean, what you say is fundamental and all. But just imagine if you added some great pictures or videos to give your posts more, “pop”!
    Your content is excellent but with images and video clips, this website could undeniably be one of the best
    in its field. Excellent blog!

    Rispondi
  9. I do not even know how I finished up here, however
    I believed this put up was good. I don’t know who you might be but
    certainly you’re going to a famous blogger for those who are
    not already. Cheers!

    Rispondi
  10. It’s the best time to make some plans for the future and it is time to be happy.
    I’ve read this post and if I could I want to suggest you some interesting things or suggestions.
    Perhaps you can write next articles referring to this article.
    I desire to read even more things about it!

    Rispondi
  11. The other day, while I was at work, my sister stole my apple
    ipad and tested to see if it can survive a 40 foot drop, just so
    she can be a youtube sensation. My iPad is now destroyed and she has 83 views.
    I know this is entirely off topic but I had to share it with someone!

    Rispondi
  12. It is appropriate time to make a few plans
    for the long run and it is time to be happy. I’ve read this publish
    and if I may just I desire to recommend you some interesting things or advice.

    Maybe you could write subsequent articles regarding this article.

    I wish to learn more things approximately it!

    Rispondi
  13. With havin so much written content do you ever run into
    any problems of plagorism or copyright infringement?
    My website has a lot of exclusive content I’ve either written myself or outsourced but it looks like a lot of it is
    popping it up all over the web without my authorization.
    Do you know any techniques to help stop content from
    being stolen? I’d really appreciate it.

    Rispondi
  14. This design is steller! You most certainly know how to keep a reader amused.

    Between your wit and your videos, I was almost moved to start my own blog
    (well, almost…HaHa!) Fantastic job. I really loved what you had to say, and more
    than that, how you presented it. Too cool!

    Rispondi
  15. Have you ever considered writing an ebook or guest authoring on other sites?
    I have a blog based on the same ideas you discuss and would really like to have you share some stories/information. I know
    my visitors would enjoy your work. If you are even remotely interested, feel free to send me
    an e-mail.

    Rispondi
  16. Hiya! Quick question that’s completely off topic.
    Do you know how to make your site mobile friendly? My site looks weird when viewing from my apple iphone.
    I’m trying to find a template or plugin that might be able to resolve this issue.

    If you have any recommendations, please share. Thanks!

    Rispondi
  17. My brother recommended I might like this blog. He was totally right.
    This post truly made my day. You can not imagine simply how much time
    I had spent for this information! Thanks!

    Rispondi
  18. Simply desire to say your article is as astonishing.
    The clarity in your post is just excellent and i can assume you are an expert
    on this subject. Well with your permission let me to grab your feed to keep updated with forthcoming
    post. Thanks a million and please carry on the
    gratifying work.

    Rispondi

Lascia un commento