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’ll right away snatch your rss feed as I can not to find your email subscription hyperlink
    or newsletter service. Do you’ve any? Kindly allow me know in order that I could subscribe.
    Thanks.

    Rispondi
  2. sildenafil 100mg free shipping [url=http://sildenafildelivery.pro/#]sildenafil without a doctor prescription Canada[/url] best sildenafil coupon

    Rispondi
  3. Hello there I am so happy I found your website, I
    really found you by error, while I was researching on Digg for
    something else, Nonetheless I am here now and would just like to say many
    thanks for a marvelous post and a all round entertaining blog (I also love the theme/design),
    I don’t have time to go through it all at the moment but
    I have book-marked it and also added your RSS feeds, so
    when I have time I will be back to read much more, Please
    do keep up the fantastic b.

    Rispondi
  4. Hello,

    I’m Abi, an English SEO copywriter and content writer. I excel in crafting blogs, articles, e-commerce product descriptions, SEO content, website content, business service descriptions, newsletter content, brochures, proofreading, social media captions, LinkedIn content, and SOPs.

    My rate is USD 20 for every 1000 words of content. If you don’t have time to plan out your content, we can help you with that.

    Feel free to email me at [email protected] with any current requirements.

    Thanks,

    Abi

    Rispondi
  5. An intriguing discussion is definitely worth comment.
    I think that you should write more on this issue, it
    may not be a taboo subject but generally folks don’t speak about
    such topics. To the next! All the best!!

    Rispondi
  6. Hello there! I know this is kinda off topic nevertheless I’d figured I’d
    ask. Would you be interested in trading links or maybe guest writing a blog post or vice-versa?
    My site addresses a lot of the same topics as yours and I feel we could greatly benefit from each other.
    If you happen to be interested feel free to send me an e-mail.

    I look forward to hearing from you! Great blog
    by the way!

    Rispondi
  7. Good day I am so thrilled I found your site, I really found
    you by accident, while I was searching on Aol for something else,
    Anyways I am here now and would just like to say kudos for a marvelous post and
    a all round entertaining blog (I also love the theme/design), I don’t have time to look over
    it all at the moment but I have bookmarked it and also included your RSS feeds, so when I have time I
    will be back to read a lot more, Please do keep up the superb work.

    Rispondi
  8. Does your site have a contact page? I’m having trouble locating it but, I’d like to
    shoot you an email. I’ve got some suggestions for your blog you might be interested in hearing.
    Either way, great blog and I look forward to seeing it grow over time.

    Rispondi
  9. Definitely believe that which you said. Your favorite reason appeared to be
    on the internet the simplest thing to be aware of.
    I say to you, I definitely get annoyed while people consider worries that they
    just don’t know about. You managed to hit the nail upon the top and defined out the whole thing without having side-effects
    , people could take a signal. Will probably be back to get more.

    Thanks

    Rispondi
  10. You really make it seem so easy with your presentation but I find this
    topic to be really something that I think I would never understand.
    It seems too complex and very broad for me. I’m looking forward
    for your next post, I will try to get the hang of it!

    Rispondi

Lascia un commento