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. First of all I would like to say awesome blog!

    I had a quick question that I’d like to ask if you
    do not mind. I was curious to know how you center yourself
    and clear your head prior to writing. I have had a hard time clearing my mind in getting my ideas out.
    I truly do take pleasure in writing but it just seems like the first 10 to 15
    minutes are lost just trying to figure out how to begin. Any suggestions or tips?
    Thanks!

    Rispondi
  2. Wonderful goods from you, man. I’ve understand your
    stuff previous to and you’re just extremely excellent.
    I really like what you’ve acquired here, certainly like what you’re stating and the way in which you say it.
    You make it entertaining and you still take care of to keep it smart.
    I can not wait to read far more from you. This is really a wonderful website.

    Rispondi
  3. Magnificent goods from you, man. I’ve understand your stuff previous to and
    you’re just extremely magnificent. I actually like what you’ve acquired here, really like what you’re stating and the way in which you say it.
    You make it entertaining and you still care for to keep it sensible.
    I can’t wait to read far more from you. This is really a wonderful site.

    Rispondi
  4. I’m curious to find out what blog platform you are utilizing?
    I’m experiencing some small security issues with my latest blog and I’d like to find something more
    safe. Do you have any recommendations?

    Rispondi
  5. Hello, i read your blog from time to time and i own a
    similar one and i was just wondering if you get
    a lot of spam comments? If so how do you reduce it, any plugin or anything you can recommend?
    I get so much lately it’s driving me insane so any help is
    very much appreciated.

    Rispondi
  6. Good day! I know this is kinda off topic however , I’d figured I’d ask.

    Would you be interested in exchanging links or maybe guest writing
    a blog post or vice-versa? My website goes over a lot of the
    same subjects as yours and I believe we could greatly benefit from each other.
    If you’re interested feel free to send me an e-mail.

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

    Rispondi
  7. Today, while I was at work, my cousin stole my 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 broken and she has
    83 views. I know this is totally off topic but I had to share it with
    someone!

    Rispondi
  8. Hi there, I discovered your website by the use
    of Google whilst searching for a comparable topic,
    your site got here up, it appears to be like great.
    I’ve bookmarked it in my google bookmarks.
    Hello there, just changed into aware of your weblog through Google, and found
    that it’s truly informative. I am gonna watch out for brussels.
    I will be grateful for those who continue this in future.
    Numerous other folks will likely be benefited from your writing.
    Cheers!

    Rispondi
  9. I know this if off topic but I’m looking into starting my own weblog and was curious what all is needed to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web smart so I’m not 100% certain. Any suggestions or advice would be greatly appreciated.
    Many thanks

    Rispondi
  10. Excellent post. I was checking constantly this blog and I’m inspired!
    Extremely helpful info particularly the ultimate section 🙂 I handle such
    information a lot. I was looking for this certain info for a long time.
    Thanks and best of luck.

    Rispondi
  11. Hi there I am so thrilled I found your web site, I really found you by accident,
    while I was searching on Digg for something else,
    Nonetheless I am here now and would just like to say many thanks for a tremendous 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 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 awesome jo.

    Rispondi
  12. indian pharmacies safe [url=https://indiapharm.llc/#]Medicines from India to USA online[/url] buy prescription drugs from india indiapharm.llc

    Rispondi
  13. After looking over a handful of the articles on your web page,
    I seriously like your way of writing a blog.
    I bookmarked it to my bookmark site list and
    will be checking back in the near future. Please visit my website as well and let me know how you feel.

    Rispondi

Lascia un commento