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.645 commenti su “Tutorial: Integrare Facebook Connect in un sito sviluppato con CMS (Lesson 4)”

  1. you are truly a just right webmaster. The web site
    loading velocity is amazing. It kind of feels that you are doing
    any unique trick. Moreover, The contents are masterwork. you’ve performed a great activity in this topic!

    Rispondi
  2. Excellent goods from you, man. I have take note your stuff prior to and you are just too excellent.
    I really like what you’ve bought here, really like what you
    are saying and the way in which in which you assert it.

    You are making it entertaining and you continue to care for to keep it sensible.

    I can not wait to learn far more from you. That is really a wonderful site.

    Rispondi
  3. Hmm is anyone else experiencing problems with the pictures
    on this blog loading? I’m trying to find out if its a problem on my end or
    if it’s the blog. Any responses would be greatly appreciated.

    Rispondi
  4. Undeniably believe that that you said. Your favorite justification appeared to be at the net the easiest factor to remember of.

    I say to you, I certainly get irked whilst other folks think about concerns that
    they just don’t recognize about. You controlled to hit the nail upon the highest as smartly as defined out
    the entire thing without having side effect , other people could take
    a signal. Will probably be back to get more.
    Thank you

    Rispondi
  5. Please let me know if you’re looking for a article writer for
    your weblog. You have some really good posts and I feel I would be a good asset.
    If you ever want to take some of the load off, I’d absolutely love to write some content for your blog in exchange for a link back to mine.
    Please send me an email if interested. Kudos!

    Rispondi
  6. Hey! Do you know if they make any plugins to assist with Search Engine Optimization? I’m trying to get my blog to rank
    for some targeted keywords but I’m not seeing very good results.
    If you know of any please share. Thank you!

    Rispondi
  7. Excellent post. I was checking constantly this blog and I’m
    impressed! Extremely helpful information particularly the
    last part 🙂 I care for such info much. I was looking for this particular information for a very long
    time. Thank you and best of luck.

    Rispondi
  8. Nice post. I was checking continuously this blog and I am impressed!
    Very helpful info particularly the last part 🙂 I care
    for such info a lot. I was looking for this particular
    info for a very long time. Thank you and good luck.

    Rispondi
  9. Hello there! This post couldn’t be written much better!
    Reading through this post reminds me of my previous roommate!

    He continually kept talking about this. I’ll forward this post to him.
    Pretty sure he’ll have a very good read. I appreciate
    you for sharing!

    Rispondi
  10. An impressive share! I have just forwarded this onto a friend who has been doing a little research on this.

    And he in fact ordered me lunch simply because I stumbled upon it for him…
    lol. So allow me to reword this…. Thank YOU for
    the meal!! But yeah, thanx for spending some time
    to discuss this issue here on your web page.

    Rispondi
  11. Hey there fantastic website! Does running a blog such as this require a
    massive amount work? I’ve very little knowledge of programming however I had been hoping to start my own blog in the near future.
    Anyway, if you have any recommendations or tips
    for new blog owners please share. I understand this is off
    topic nevertheless I just needed to ask. Thanks a lot!

    Rispondi
  12. Greate pieces. Keep writing such kind of information on your blog.
    Im really impressed by it.
    Hello there, You’ve performed a great job. I’ll certainly digg it and personally recommend to my friends.
    I’m confident they’ll be benefited from this web site.

    Rispondi
  13. I think this is among the most important information for me.

    And i’m glad reading your article. But wanna remark on few general things, The website style is perfect, the articles is
    really great : D. Good job, cheers

    Rispondi
  14. What i don’t understood is actually how you’re now not actually much more
    smartly-appreciated than you might be now. You
    are so intelligent. You know thus significantly in terms of this topic,
    made me in my opinion imagine it from a lot of various angles.
    Its like men and women are not interested until it’s one thing to accomplish with
    Woman gaga! Your own stuffs outstanding. Always maintain it up!

    Rispondi
  15. Hello, Neat post. There’s a problem together with your site in internet explorer, may
    check this? IE nonetheless is the market leader and a good portion of other people will miss your wonderful writing due to
    this problem.

    Rispondi
  16. Woah! I’m really enjoying the template/theme of this site.
    It’s simple, yet effective. A lot of times it’s hard to get that “perfect balance” between user friendliness and visual appeal.
    I must say you’ve done a superb job with this. Additionally, the blog loads very fast for
    me on Firefox. Excellent Blog!

    Rispondi
  17. I’ve been surfing online more than three hours today, yet I never
    found any interesting article like yours.
    It’s pretty worth enough for me. In my view, if all site owners and bloggers
    made good content as you did, the internet will be much
    more useful than ever before.

    Rispondi
  18. Its like you read my mind! You appear to know a lot about this,
    like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but other than that, this is wonderful blog.
    A fantastic read. I will certainly be back.

    Rispondi

Lascia un commento