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.349 commenti su “Tutorial: Integrare Facebook Connect in un sito sviluppato con CMS (Lesson 4)”

  1. ciprofloxacin generic price [url=http://ciprofloxacin.tech/#]ciprofloxacin 500 mg tablet price[/url] buy cipro online without prescription

    Rispondi
  2. The 888 Poker app Android is another amazing poker Android app to consider. The functionality of the mobile poker app provides everything a recreational or professional poker player needs to enjoy most of the amazing games at 888poker. Game talk is probably the most fun part of games with friends. CoF has the smoothest in-app chat you will find across all Poker Apps. So go ahead and engage in full on banter. Provoke or tease your friends with emojis 😎 , or express your joy 🤑 (or disgust 😵 ) on winning or losing hands! With Poker Face, you can play online poker with friends and enjoy the lively chats and comradery at the live poker table from the comfort of your own home! This is a great way to play poker for fun. You won’t see this poker app’s face-time twist anywhere else, and it will certainly spice up poker night.
    http://definiteanswers.com/q/How-do-I-change-game-window-modes-4c0d5c2aaf707
    Available for Android The owner of 888 Poker online poker room (three eighths or just eights) is 888 Holdings plc, that runs its operations in online poker, sports betting and other forms of gambling from 1997. 888 Holdings shares are listed on the London Stack Exchange. Як на рахунок розіграти роздачу в блекджек чи зробити кілька обертань (спінів) на наших ігрових автоматах, щоб підняти рівень задоволення ще на вищий рівень? Це все можливо зробити просто з головного ігрового лобі у програмному забезпеченні від 888poker. A crucial consideration when you bet on any sports is finding a properly regulated site – like 888sport.

    Rispondi

Lascia un commento