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. top online pharmacy india [url=http://indianpharmacy.shop/#]Cheapest online pharmacy[/url] online shopping pharmacy india indianpharmacy.shop

    Rispondi
  2. That is very attention-grabbing, You are an excessively professional blogger.
    I have joined your feed and sit up for seeking extra of your wonderful post.
    Also, I have shared your site in my social networks

    Rispondi
  3. indian pharmacy [url=https://indianpharmacy.shop/#]india pharmacy mail order[/url] cheapest online pharmacy india indianpharmacy.shop

    Rispondi
  4. pharmacie ouverte [url=http://levitrasansordonnance.pro/#]levitra generique prix en pharmacie[/url] Pharmacie en ligne livraison rapide

    Rispondi
  5. Hey I know this is off topic but I was wondering if you
    knew of any widgets I could add to my blog that automatically tweet
    my newest twitter updates. I’ve been looking for a plug-in like this
    for quite some time and was hoping maybe you
    would have some experience with something like this. Please
    let me know if you run into anything. I truly enjoy reading your
    blog and I look forward to your new updates.

    Rispondi
  6. hello there and thank you for your info – I’ve
    definitely picked up anything new from right here. I did however expertise a few technical issues using this web
    site, since I experienced to reload the website many times
    previous to I could get it to load correctly. I had been wondering if your web host is OK?
    Not that I’m complaining, but slow loading instances times will sometimes affect your placement in google
    and could damage your quality score if advertising and marketing with Adwords.
    Well I’m adding this RSS to my email and can look out for a lot more of your respective intriguing content.
    Make sure you update this again very soon.

    Rispondi
  7. Good day I am so delighted I found your webpage, I really found you by mistake, while I was looking
    on Aol for something else, Regardless I am here now and would just like to say thank you for a fantastic post
    and a all round thrilling blog (I also love
    the theme/design), I don’t have time to read
    it all at the minute but I have book-marked 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 fantastic b.

    Rispondi
  8. I’m impressed, I must say. Seldom do I encounter a blog that’s both educative and
    amusing, and without a doubt, you’ve hit the nail on the head.
    The issue is something too few people are speaking intelligently about.

    I’m very happy I found this during my search for something concerning this.

    Rispondi
  9. Pharmacie en ligne livraison 24h [url=https://pharmadoc.pro/#]Pharmacies en ligne certifiees[/url] acheter mГ©dicaments Г  l’Г©tranger

    Rispondi
  10. Pretty nice post. I just stumbled upon your weblog and wished to say
    that I’ve truly enjoyed browsing your blog posts.
    After all I’ll be subscribing to your rss feed and I hope
    you write again soon!

    Rispondi
  11. SildГ©nafil 100mg pharmacie en ligne [url=https://viagrasansordonnance.pro/#]Meilleur Viagra sans ordonnance 24h[/url] Viagra sans ordonnance 24h suisse

    Rispondi
  12. When I originally left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and now each time a comment is added
    I recieve four emails with the exact same comment. Is there a means you can remove me from
    that service? Cheers!

    Rispondi
  13. I like the helpful info you supply in your articles.
    I’ll bookmark your weblog and take a look at once more here regularly.
    I am somewhat sure I will be informed lots of new stuff proper right here!
    Good luck for the next!

    Rispondi
  14. When I initially left a comment I appear to have
    clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I
    receive 4 emails with the exact same comment. There has to be a means you are
    able to remove me from that service? Thanks!

    Rispondi
  15. I got this web page from my buddy who shared with me on the topic of this website
    and at the moment this time I am visiting this web page and
    reading very informative articles here.

    Rispondi
  16. I do not even know how I stopped up here, but I believed this submit was once great.

    I do not understand who you might be however definitely you’re
    going to a well-known blogger when you are not already. Cheers!

    Rispondi
  17. Pharmacie en ligne livraison 24h [url=http://cialissansordonnance.shop/#]cialis generique[/url] acheter mГ©dicaments Г  l’Г©tranger

    Rispondi
  18. whoah this weblog is magnificent i like reading your posts.

    Stay up the good work! You understand, many persons are searching round for this information, you can help them greatly.

    Rispondi
  19. I’m extremely impressed along with your writing talents as neatly as with the layout to your weblog.
    Is this a paid theme or did you modify it yourself? Anyway stay up the excellent quality writing,
    it’s rare to peer a great weblog like this one today..

    Rispondi

Lascia un commento