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. You really make it seem so easy with your presentation but I find this matter to be really something that I think I would never understand.
    It seems too complicated and very broad for me.
    I’m looking forward for your next post, I will try to get the hang of it!

    Rispondi
  2. Just desire to say your article is as surprising. The clarity in your publish
    is simply cool and that i could think you’re an expert on this subject.
    Fine with your permission allow me to grasp your feed to stay updated
    with forthcoming post. Thank you one million and please keep up the rewarding work.

    Rispondi
  3. A person essentially help to make critically posts I’d state.
    That is the first time I frequented your website page and to this point?
    I surprised with the research you made to make this actual put up incredible.
    Magnificent task!

    Rispondi
  4. Excellent beat ! I wish to apprentice whilst you amend your site, how could i subscribe
    for a weblog web site? The account helped me a acceptable deal.
    I have been a little bit familiar of this your broadcast provided bright transparent concept

    Rispondi
  5. Hello There. I discovered your weblog the use of msn. That is
    a really neatly written article. I will be sure to bookmark it and
    come back to read more of your useful info. Thanks for the post.
    I will definitely comeback.

    Rispondi
  6. Наша группа опытных мастеров готова предоставить вам современные технологии, которые не только подарят надежную защиту от холода, но и подарят вашему зданию оригинальный вид.
    Мы работаем с самыми современными компонентами, ассигнуруя продолжительный термин эксплуатации и превосходные выходы. Изолирование наружных поверхностей – это не только экономия на тепле, но и ухаживание о окружающей природе. Сберегательные технологические решения, которые мы претворяем в жизнь, способствуют не только жилищу, но и поддержанию экосистемы.
    Самое центральное: [url=https://ppu-prof.ru/]Стоимость утепления дома снаружи цена[/url] у нас начинается всего от 1250 рублей за квадратный метр! Это доступное решение, которое переделает ваш домашний уголок в реальный тепловой уголок с минимальными затратами.
    Наши работы – это не лишь теплоизоляция, это составление территории, в где все элемент выражает ваш индивидуальный образ действия. Мы примем во внимание все твои пожелания, чтобы сделать ваш дом еще больше дружелюбным и привлекательным.
    Подробнее на [url=https://ppu-prof.ru/]www.ppu-prof.ru[/url]
    Не откладывайте труды о своем ларце на потом! Обращайтесь к исполнителям, и мы сделаем ваш дом не только уютнее, но и более элегантным. Заинтересовались? Подробнее о наших предложениях вы можете узнать на официальном сайте. Добро пожаловать в мир уюта и высоких стандартов.

    Rispondi
  7. mexico drug stores pharmacies [url=https://mexicanpharm.store/#]mexican border pharmacies shipping to usa[/url] mexican border pharmacies shipping to usa

    Rispondi
  8. Hello There. I found your blog using msn. This is a very well written article.
    I’ll be sure to bookmark it and come back to read more
    of your useful information. Thanks for the post.
    I will definitely comeback.

    Rispondi
  9. I do not know if it’s just me or if perhaps everybody
    else experiencing problems with your website.
    It appears as though some of the text within your content are running off the screen. Can someone else please comment and let me know if this is happening to them as
    well? This may be a issue with my web browser because I’ve had this happen before.
    Cheers

    Rispondi
  10. buying prescription drugs in mexico online [url=http://mexicanpharm.store/#]mexican border pharmacies shipping to usa[/url] mexican rx online

    Rispondi
  11. Hmm it looks like your blog ate my first comment (it was super long) so I guess I’ll just sum it up what
    I submitted and say, I’m thoroughly enjoying your blog.

    I too am an aspiring blog blogger but I’m still new to everything.
    Do you have any suggestions for first-time blog writers?
    I’d genuinely appreciate it.

    Rispondi

Lascia un commento