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. п»їlegitimate online pharmacies india [url=https://indianpharm.store/#]order medicine from india to usa[/url] Online medicine home delivery indianpharm.store

    Rispondi
  2. mexican rx online [url=http://mexicanpharm.shop/#]Certified Pharmacy from Mexico[/url] mexican border pharmacies shipping to usa mexicanpharm.shop

    Rispondi
  3. cheap canadian pharmacy online [url=https://canadianpharm.store/#]Licensed Online Pharmacy[/url] escrow pharmacy canada canadianpharm.store

    Rispondi
  4. pharmacies in mexico that ship to usa [url=http://mexicanpharm.shop/#]Online Mexican pharmacy[/url] purple pharmacy mexico price list mexicanpharm.shop

    Rispondi
  5. buy prescription drugs from india [url=http://indianpharm.store/#]order medicine from india to usa[/url] mail order pharmacy india indianpharm.store

    Rispondi
  6. buying prescription drugs in mexico online [url=https://mexicanpharm.shop/#]Certified Pharmacy from Mexico[/url] mexican online pharmacies prescription drugs mexicanpharm.shop

    Rispondi
  7. I think that what you posted was very reasonable. However, what
    about this? what if you composed a catchier post title?
    I am not suggesting your content is not solid, but
    what if you added a title that grabbed people’s attention? I mean Tutorial: Integrare Facebook
    Connect in un sito sviluppato con CMS (Lesson 4) | IoChatto is a little boring.
    You might glance at Yahoo’s front page and note how they create article headlines to get people
    interested. You might add a video or a picture or two to get people excited about everything’ve got to say.
    In my opinion, it could make your posts a little bit
    more interesting.

    Rispondi
  8. 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
  9. After I initially commented I seem to have clicked on the -Notify
    me when new comments are added- checkbox and from now on each time a comment is added I recieve 4
    emails with the same comment. There has to be
    a means you are able to remove me from that service?
    Thank you!

    Rispondi
  10. medication from mexico pharmacy [url=https://mexicanpharm.shop/#]mexican drugstore online[/url] mexican online pharmacies prescription drugs mexicanpharm.shop

    Rispondi
  11. reputable mexican pharmacies online [url=https://mexicanpharm.shop/#]Certified Pharmacy from Mexico[/url] buying prescription drugs in mexico online mexicanpharm.shop

    Rispondi
  12. online drugstore service canada [url=http://canadadrugs.pro/#]drugs from canada with prescription[/url] fda approved canadian pharmacies

    Rispondi
  13. canadian discount drugs [url=https://canadadrugs.pro/#]canadian pharmaceuticals online reviews[/url] canadian pharmacies recommended

    Rispondi
  14. list of online canadian pharmacies [url=https://canadadrugs.pro/#]reliable online canadian pharmacy[/url] canadian pharmacy without a prescription

    Rispondi

Lascia un commento