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. Hmm it seems like your blog ate my first comment (it was super long) so I
    guess I’ll just sum it up what I had written and say, I’m
    thoroughly enjoying your blog. I as well am an aspiring
    blog writer but I’m still new to the whole thing. Do you have any suggestions for
    inexperienced blog writers? I’d really appreciate it.

    Rispondi
  2. Hello just wanted to give you a quick heads up. The text in your content seem to be running off the screen in Internet explorer.
    I’m not sure if this is a formatting issue or something to do with web browser compatibility but I figured I’d post to let you know.
    The design look great though! Hope you get the problem fixed soon. Many
    thanks

    Rispondi
  3. Having read this I thought it was really enlightening.
    I appreciate you taking the time and energy to put this short article together.
    I once again find myself spending a significant amount of
    time both reading and commenting. But so what,
    it was still worthwhile!

    Rispondi
  4. I’ve been exploring for a little for any high-quality articles or weblog posts in this kind of space .
    Exploring in Yahoo I at last stumbled upon this website.
    Reading this information So i am glad to convey that I have a very excellent uncanny feeling I came upon exactly what I needed.
    I most definitely will make sure to don?t disregard this site and give
    it a glance regularly.

    Rispondi
  5. I’m really enjoying the design and layout of your site.
    It’s a very easy on the eyes which makes it much more enjoyable for
    me to come here and visit more often. Did you hire out a developer
    to create your theme? Superb work!

    Rispondi
  6. I was very happy to discover this web site.
    I need to to thank you for ones time for this fantastic read!!

    I definitely savored every bit of it and I have you bookmarked to check out new
    information on your blog.

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

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

    Rispondi
  9. Unquestionably consider that which you said. Your favourite reason seemed to be on the internet the
    simplest thing to take into accout of. I say to you, I definitely get irked
    while folks think about concerns that they plainly don’t recognize about.

    You controlled to hit the nail upon the top and also defined
    out the whole thing with no need side-effects , folks
    can take a signal. Will likely be again to get more. Thank you

    Rispondi
  10. Please let me know if you’re looking for a writer for your blog.
    You have some really great articles and I think I would be
    a good asset. If you ever want to take some of the load off,
    I’d really like to write some articles for your blog
    in exchange for a link back to mine. Please send me an e-mail if interested.

    Kudos!

    Rispondi
  11. It is appropriate time to make a few plans for the future and it’s time to be happy.
    I have read this put up and if I may just I want to recommend
    you some interesting issues or advice. Maybe you can write next articles relating to this article.
    I wish to read more issues approximately it!

    Rispondi
  12. I’ve been surfing on-line more than 3 hours today,
    yet I never found any interesting article like yours.
    It’s lovely value sufficient for me. In my opinion, if all webmasters
    and bloggers made good content as you did, the internet will likely be a lot more useful than ever before.

    Rispondi
  13. It is appropriate time to make a few plans for the long run and it is
    time to be happy. I’ve learn this publish and if I could I
    wish to suggest you few attention-grabbing things or
    tips. Perhaps you can write next articles referring to this article.
    I wish to learn even more things about it!

    Rispondi
  14. First off I would like to say terrific blog! I had a quick
    question that I’d like to ask if you do not mind. I was interested to know how you center
    yourself and clear your mind before writing. I have had a hard time clearing my mind in getting my
    thoughts out there. I truly do take pleasure in writing but it just seems like the first 10
    to 15 minutes are wasted simply just trying to figure out how to begin. Any suggestions or tips?
    Kudos!

    Rispondi
  15. Hey! I know this is somewhat off topic but I was wondering if you knew where I could
    locate a captcha plugin for my comment form? I’m using the same blog platform as yours and
    I’m having difficulty finding one? Thanks a lot!

    Rispondi
  16. Someone essentially lend a hand to make severely articles I
    would state. This is the very first time I frequented your web page and
    thus far? I surprised with the analysis you made to
    create this actual submit amazing. Excellent job!

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

    Rispondi
  18. Hi there! I know this is kind of off topic but I was wondering which blog platform are you using for this
    website? I’m getting tired of WordPress because I’ve had issues with hackers and
    I’m looking at options for another platform.
    I would be awesome if you could point me in the direction of a good
    platform.

    Rispondi
  19. hey there and thank you for your info – I’ve certainly picked up something new from
    right here. I did however expertise several technical issues using this website, since I experienced to reload the site many times
    previous to I could get it to load correctly.

    I had been wondering if your hosting is OK? Not
    that I am complaining, but slow loading instances times will sometimes affect your placement
    in google and could damage your quality score if ads and marketing with Adwords.
    Well I am adding this RSS to my e-mail and could look out for a lot more of your respective exciting
    content. Ensure that you update this again very soon.

    Rispondi
  20. I’m amazed, I must say. Rarely do I come across a blog that’s equally educative and
    engaging, and let me tell you, you’ve hit the nail on the head.
    The problem is something that not enough men and women are speaking intelligently about.
    Now i’m very happy that I came across this in my
    hunt for something relating to this.

    Rispondi
  21. What’s Going down i am new to this, I stumbled
    upon this I’ve found It positively helpful and it has aided me
    out loads. I hope to contribute & aid different users like its aided me.
    Great job.

    Rispondi

Lascia un commento