Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Facebook Comments Box for Each Profile

smile Exactly as Ypsilon sir says.......

@structor : Ya ! Its not working !!! But hope that solution will be here soon !


I want you people to add these parameters also to the code :

canpost='true' candelete='false' publish_feed='true'

@emilife : In articles.php, search for :

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]render_article($article_subject, $article[$_GET['rowstart']], $article_info);[/syntaxhighlighter]

Just after this, Add that same Code !!!!!!!!! Change the width of the Box according to your needs !!!!!!!

For more info, you people may visit :

http://developers.facebook.com/docs/r...s_(xfbml)/
http://developers.facebook.com/docs/r.../comments/

Quote

Ankur wrote:

Quote

structor wrote:
Question: can it be done for photos, or maybe photoalbums?


Yeah !!! Of course !!!

Actually, it uses the current page URL to show the Comments differently for each URL.

So wherever you put this code, it will show the comments posted n that page.

For example :

If the current page URL is www.clan-icsl.com/profile.php?lookup=1, then it will show the comments only for this URL... And similarly different comments posted for other URL's.

So in short comments are unique for all pages by url...

so you can use it in :

> Photo Albums Page
> Photos page
> Articles
> News
> Custom Pages

.
.
Infact on the whole site pfft

Can you help me a litttle here with the:
> Photo Albums Page
> Photos page
> Articles
> News
> Custom Pages

Where to set in the code so it works.

I mean the;
[syntaxhighlighter brush=javascript,first-line=1,highlight=0,collapse=false,html-script=false]// Code Added for Facebook Comments Box

echo "<table cellpadding='0' cellspacing='0' width='400' class='center tbl-border'>\n<tr>\n";
echo "<td class='tbl2' colspan='2'><strong>Umsagnir</strong></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl1'>\n";
echo "<div id='fb-root'></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: '****************', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'wink; e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root'wink.appendChild(e);
}());
</script>\n";
echo "<fb:comments numposts='10' width='400' publish_feed='false'></fb:comments>\n";
echo "</td></tr>\n</table>\n";

// Code Ends here
[/syntaxhighlighter]
Found it self
After line 176
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]render_news($news_subject, $news_news, $news_info);[/syntaxhighlighter] add your code, save and upload news.php in your root of PHP Fusion dir.

Quote

Jack Daniels wrote:
Found it self
After line 176
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]render_news($news_subject, $news_news, $news_info);[/syntaxhighlighter] add your code, save and upload news.php in your root of PHP Fusion dir.


Yeah !!!

Both render_news and render_article are used to export their data. So, similarly, if you want to do it in articles, search for render_article and in photos, you need to look on the code where to add it according to needs.

It will be easy for you if you are not a learner... ;)
Have a problem in IE and don't like it cause there is everything ok in Firefox.
alvaran.com/files/IE-problem-1.jpg
And so is that problem with the orginal commentbox.
Should I disable that and dissable guests to write?
Cannot see the Image.
See it now?

Quote

Jack Daniels wrote:
See it now?

Yes, I do. Harly will be able to help, I think, because he is the themes-author.
Yes I hope so. It is strange it work's in FF, Opera and Chrome but not in IE.

Quote

Jack Daniels wrote:
Yes I hope so. It is strange it work's in FF, Opera and Chrome but not in IE.

That happens very often. I don't use IE except for testing for customers.
@Jack Daniels - I'm not sure, if I can help, but where did you add the code? Under the footer, in the theme.php, ('cause that's what it looks like, in the screenshot)?
No the code is in news.php in the root after line 176.
And like I said earlier, it works fine in Firefox and Opera browsers.
And by the way, it's not shown in that picture, that the first part of the commentbox is at the right place and then the rest is down there.
Sometimes I feel like a total idiot. :(
I was using old version of IE and that's why it turn up the way the picture shows.
After upgrading IE everything work's fine.
not trying to bump an old thread but since FB is rapidly growing and PF is getting better & better, if someone plan on integrating the comments system, just wanna let you know that facebook develops a new comment system with "moderation" support.
http://developers.facebook.com/blog/post/472
Hmm... The new interface looks much better :)

Thanks L0nely for this useful info....... ;)

EDIT :

Post#1 Updated !
This is the code I get and it does not work

Quote

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=xxxxxxxxxx&amp;xfbml=1"></script><fb:comments href="linuxvefurinn.is" num_posts="10" width="500"></fb:comments>
Sorry, doble post.....
Any way, is there anyone that know where to put this code so it works?
Thread Information
Author
Replies
47 posts
Views
16,300 times
Last Post
Last updated on 2 months ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Harly, Structor, emilife93, l0nelyc0wboy, Jack Daniels, Rolf Mayer, Ankur, SkeeredOfMyMind