SocialAcademy • Forum

Social Academy Community Support Forum & Free Tutorial's & Skins



[Archived] code facebook


    Go to page : 1, 2  Next

  • Please log in to Reply

View previous topic View next topic Go down  Message [Page 1 of 2]

#1

Offlinepedros

pedros
 
Member
Member

Posted Mon Sep 22, 2014 8:08 pm

 
Details:This code creates a box to comment on facebook only on the first topic
Code:
$(function() {
    $('.post-entry:first').after('<div id="myContainer"><div class="fb-comments" data-href="http://www.u2market.com/" data-numposts="5" data-colorscheme="light"></div>');
});

Code:
<div id="fb-root">
</div><script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/it_IT/sdk.js#xfbml=1&appId=146634105351012&version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

only that the comment can be seen on all pages ..as I can put the ID of the page.
example
where we talk about Mele message also appears in the other threads where we talk about Pere

Screenshot:
Forum Address:http://www.u2market.com/
Forum Version:phpBB .Thank you very much!

#2

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Tue Sep 23, 2014 2:14 am

 
can you explain more .. i don't understand ..sorry

https://socialacademy.forumotion.com
#3

Offlinerosjoshuarecto

rosjoshuarecto
 
Advance Member
Advance Member

Posted Tue Sep 23, 2014 10:13 am

 
is this a tutorial ? i think its a tutorial Red :P

http://graphicsalliance.forumtl.com/
#4

OfflineOrobok

Orobok
 
Member
Member

Posted Tue Sep 23, 2014 11:15 am

 
Don't get the question..

#5

Offlinepedros

pedros
 
Member
Member

Posted Tue Sep 23, 2014 7:12 pm

 
sorry all..question:as I enter this code on the first message (only on the first )

Code:
<div class="fb-comments" data-href="http://www.u2market.com/" data-numposts="5" data-colorscheme="light"></div>

https://developers.facebook.com/docs/plugins/comments

#6

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Thu Sep 25, 2014 1:24 am

 
pedros wrote:[link="/t635-code-facebook#5520"]sorry all..question:as I enter this code on the first message (only on the first )

Code:
<div class="fb-comments" data-href="http://www.u2market.com/" data-numposts="5" data-colorscheme="light"></div>

https://developers.facebook.com/docs/plugins/comments
you mean .. your quetion is is it possible to add that only in the first post in topic ?

https://socialacademy.forumotion.com
#7

Offlinepedros

pedros
 
Member
Member

Posted Thu Sep 25, 2014 7:23 pm

 
yes..thanks

#8

Offlinepedros

pedros
 
Member
Member

Posted Sun Sep 28, 2014 4:17 pm

 
up

#9

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Mon Sep 29, 2014 2:48 am

 
you can try this
Code:
$(function(){$('.post:first').after('Facebook code here')});
Placement: In the topics

https://socialacademy.forumotion.com
#10

Offlinepedros

pedros
 
Member
Member

Posted Mon Sep 29, 2014 5:59 pm

 
only the guests can see it...I wish that only the members can see it.Thank you very much very kind

#11

OfflineSponsored content


 

Posted

 

Message (Page 1 of 2)


    Go to page : 1, 2  Next


Share Topics Url

Url
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum

 
  • Create a forum | ©phpBB | Free forum support | Report an abuse | Forumotion.com


Social Academy Forum
© Social Academy 2013-2022