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.
Forgot Password?
Navigation

Facebook Comments Box for Each Profile

Last updated on 5 years ago
S
StructorMember
Posted 15 years ago
Question: can it be done for photos, or maybe photoalbums?
A
AnkurVeteran Member
Posted 15 years ago

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 :P
Hi! Its me, Ankur Thakur! smile
S
StructorMember
Posted 15 years ago
So, I almost get it, but this part I didn't understood:

Quote

2. Download the Cross Domain Receiver file from here and Upload it to the Root of your Website.


There is an empty page on that link...
Edited by Structor on 19-01-2011 12:13, 15 years ago
A
AnkurVeteran Member
Posted 15 years ago

Quote

structor wrote:
So, I almost get it, but this part I didn't understood:

Quote

2. Download the Cross Domain Receiver file from here and Upload it to the Root of your Website.


There is an empty page on that link...


Ya its an empty page !!! But you have to Download it by Right Clicking on it and Save Link as or Save target as

It is somewhere written in the Policy of using Facebook Applications, so thats why you have to use it...
Hi! Its me, Ankur Thakur! smile
S
StructorMember
Posted 15 years ago
I am not familiar with facebook apps, so I must ask you: is it neccessary to make my own application?
Can't we use the application that you've made? (I have no idea what I have to do in the application form :) )
A
AnkurVeteran Member
Posted 15 years ago
Yeah !!! Its necessary to make your own application as all applications are specific.

You cannot use my application because I have done settings to be used it on y URL.

Not much things you have to do !!! Just add the Website URL in Facebook for Websites in Application form :)
Hi! Its me, Ankur Thakur! smile
S
StructorMember
Posted 15 years ago
Thank you Ankur, it seems to work as it should ;)
A
AnkurVeteran Member
Posted 15 years ago
;) Welcome !!!

Have you tried it somewhere ? Please post the Link if you don't mind B)
Hi! Its me, Ankur Thakur! smile
S
StructorMember
Posted 15 years ago
A
AnkurVeteran Member
Posted 15 years ago
There's an error !!! You haven't made the Application correctly !!!

Have you entered the URL in ur application ???

Edit your Application by going to http://www.facebook.com/apps/applicat...4688468130 and clicking Edit App

Then Edit its App settings. In that, there will be an option saying Website. Enter your URL there !!!

------------------------
Edited :


Add the Domain URL to it, i.e http://www.modstruct.ro/

Not the link to photo !!!

And you have added in the code css='http://www.modstruct.ro/fbcomment.css', but the file doesn't exist !!!

Either remove it, or Upload the CSS file. Please read all the instructions carefully first which are given on the top post !!!
Hi! Its me, Ankur Thakur! smile
Edited by Ankur on 19-01-2011 13:13, 15 years ago
S
StructorMember
Posted 15 years ago
There are to lines:

Site URL: ....
Site Domain:....

On the second line I entered modstruct.ro
On the first what do I have to enter? Is this correct?

http://www.modstruct.ro/modele_case.php?photo_id=

Edit:
the file fbcomments.css is in place, it was on the beginning

Edit 2: oh sorry I wasn't payed attention, it is fbcomment, not comments :)
Edited by Structor on 19-01-2011 13:16, 15 years ago
A
AnkurVeteran Member
Posted 15 years ago
On the First line, i.e Site URl add http://www.modstruct.ro/ and Left the Second, i.e Domain blank as it is !!!

The Domain is for enabling if you want to use it on Subdomains of your website !!!!!

And either Upload the http://www.modstruct.ro/fbcomment.css css file or remove it from the code added in PHP file !!!!!!!

*************************************
EDITED :


Yeah !!! Good ! Its working now !!!!!!!
Hi! Its me, Ankur Thakur! smile
Edited by Ankur on 19-01-2011 13:23, 15 years ago
S
StructorMember
Posted 15 years ago
All done, works great :)
A
AnkurVeteran Member
Posted 15 years ago

Quote

structor wrote:
All done, works great :)


Hmm ! ;)

You can use the same code on other things like articles etc...

also for customizing comments text, read about customizing css above in 1st post :)
Hi! Its me, Ankur Thakur! smile
S
StructorMember
Posted 15 years ago
just played a little in comments administration and it seems that the anonymous posting doesn't work.

I get the message: "unable to post on this wall", or something like that
Edited by Structor on 19-01-2011 13:51, 15 years ago
E
emilife93Member
Posted 15 years ago

Quote

Ankur wrote:
[quote]structor wrote:

so you can use it in :

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

.

Infact on the whole site :P


i want to add facebook comment box for each articles....but i dont know where line to add the http://pastebin.com/BpnkShf4 in articles.php
Edited by emilife93 on 19-01-2011 15:05, 15 years ago
R
Rolf MayerSenior Member
Posted 15 years ago
It's all postet by Ankur. And it is not usefull to qoute the complete posting.
Ex
Edited by Rolf Mayer on 19-01-2011 14:31, 15 years ago
A
AnkurVeteran Member
Posted 15 years ago
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/
Hi! Its me, Ankur Thakur! smile
Edited by Ankur on 19-01-2011 18:27, 15 years ago
Posted 15 years ago

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]
Posted 15 years ago

Quote

Ankur wrote:

Quote

Jack Daniels wrote:
Push up.


Sorry for my bad english !!!

But didn't get, what it means ? :(

Here's the Demo which is Live Now : http://www.clan-icsl.com/profile.php?...p?lookup=1

Put the thread to the top of the page. :P
You can view all discussion threads in this forum.
You cannot 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.
You cannot set up a bounty in this discussion thread.
Moderator: Support Team
Users who participated in discussion: Falk, Harly, Structor, emilife93, l0nelyc0wboy, Jack Daniels, Rolf Mayer, Ankur, SkeeredOfMyMind