Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: How To Insert Facebook Comment Plugin into AMS Article?
by iDeologi on 2010/11/7 6:45:57

problem solved

just add this code to theme.html

le="color: #000000"><?php <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({appId: '173169099366425', status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement('script'); e.type = 'text/javascript'; e.src = document.location.protocol + '//connect.facebook.net/ms_MY/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); </script>


And
<fb:comments width="500" title={$story.title} notify="true" reverse="0" publish_feed="1"></fb:comments>

in template article.
Re: How To Insert Facebook Comment Plugin into AMS Article?
by iDeologi on 2010/11/6 17:28:01

thanks for replies..

i've changed the code in ams article template file, to be like this:

le="color: #000000"><?php <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=173169099366425&amp;xfbml=1"></script><fb:comments width="500"></fb:comments> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({appId: '173169099366425', status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement('script'); e.type = 'text/javascript'; e.src = document.location.protocol + '//connect.facebook.net/ms_MY/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); </script>


same code in:

http://ideologi.my/v3/modules/AMS/test2.html

but not working in:

http://ideologi.my/v3/modules/AMS/article.php?storyid=6



Re: How To Insert Facebook Comment Plugin into AMS Article?
by mariane on 2010/11/6 14:56:05

try this code from fb developpers
http://developers.facebook.com/docs/reference/plugins/comments
Re: How To Insert Facebook Comment Plugin into AMS Article?
by underdog on 2010/11/6 7:46:01

On this page:
http://ideologi.my/v3/modules/AMS/article.php?storyid=6

I don't see this script included.
le="color: #000000"><?php <script src="http://connect.facebook.net/en_US/all.js#appId=173169099366425&amp;xfbml=1"></script>


Maybe that's the problem.
How To Insert Facebook Comment Plugin into AMS Article?
by iDeologi on 2010/11/6 2:02:28

I'm trying to put Facebook Comments Plugin into my AMS Article Template file, but it's not working.

Comment Plugin not appear in the bottom of articles.

The Code like this:

le="color: #000000"><?php <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=173169099366425&amp;xfbml=1"></script><fb:comments width="425"></fb:comments> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({appId: '173169099366425', status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement('script'); e.type = 'text/javascript'; e.src = document.location.protocol + '//connect.facebook.net/ms_MY/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); </script>


This code working properly when used in single file like this link:
http://ideologi.my/v3/modules/AMS/test2.html

But not working in Article Pages in AMS module. For reference, see this link, no comment plugin appear at the bottom of page:
http://ideologi.my/v3/modules/AMS/article.php?storyid=6

Thanks in advanced.

Who's Online

619 user(s) are online (545 user(s) are browsing Support Forums)


Members: 1


Guests: 618


Mamba

more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits