Facebook or disqus Comments instead of CPG Comments Facebook or disqus Comments instead of CPG Comments
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Facebook or disqus Comments instead of CPG Comments

Started by newx, January 26, 2011, 03:22:45 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

newx

Hi

as you all know, facebook gives you the possibillity to use their comments plugin.
Now my question: If i want to use Facebook Comments (or maybe DISQUS Comments) - how to to that?
More accurate: Wich template and wich part needs to be edited?

In both cases there must be place some code instead of the original Comments Code. In case of Facebook there must be also be a connection over the FB opengraph. (http://developers.facebook.com/docs/reference/plugins/comments)

Would be very cool, if someone would help me to try/figure out, how to do ...

Greetz NewX

Αndré

Quote from: newx on January 26, 2011, 03:22:45 PM
as you all know, facebook gives you the possibillity to use their comments plugin.
No ;)

But what you try to accomplish may be possible by adding the following function to your theme's theme.php file:
function theme_html_comments($pid)
{
    return $facebook_code_here;
}

newx

Dont work. The code appears on top of the gallery (the php code)
But the whole facebook code doesnt do anything.

the whole code (incl. codefrom facebook) looks like this:


   function theme_html_comments($pid)
{
    return $<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=141756352551411&amp;amp;xfbml=1"></script><fb:comments xid="urlencodehttp%3A%2F%2Fwww.friseur-fragen.de%2Ffrisurengalerie%2Fdisplayimage.php%3Falbum%3D99%26pid%3D3098%23top_display_media" numposts="10" width="425" publish_feed="true"></fb:comments>
}

newx

Und erinner mich daran, das wenn ich das nächste mal in berlin bin, ich dir ein großes Bier schulde :D

Αndré

You implemented your code incorrectly. It should look like
function theme_html_comments($pid)
{
    return '<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=141756352551411&amp;amp;xfbml=1"></script><fb:comments xid="urlencodehttp%3A%2F%2Fwww.friseur-fragen.de%2Ffrisurengalerie%2Fdisplayimage.php%3Falbum%3D99%26pid%3D3098%23top_display_media" numposts="10" width="425" publish_feed="true"></fb:comments>';
}

but I can confirm that it does nothing when I include it on my testbed. As I don't know how it is supposed to work, I don't know if it just works on your particular website. So I suggest to test again with the above code. Are you sure that the xid="urlencodehttp%3A%2F%2F stuff is correct?


Quote from: newx on January 26, 2011, 04:35:47 PM
Und erinner mich daran, das wenn ich das nächste mal in berlin bin, ich dir ein großes Bier schulde :D
Seems like a few people want to owe me a beer (just search for it) ;D Despite it wasn't related to your issue, please always speak English outside the language specific board, as some people may want to know what you've written, but aren't able to translate it.

newx

Dont work :(
Same Error Code

i think he got it working: http://teknosounds.com/tspics/displayimage.php?album=237&pid=26231#top_display_media
Maybe with the plugin from this thread:
http://forum.coppermine-gallery.net/index.php/topic,70221.0.html

as i said, this board confuses me a little bit-its very hard to follow some threads.
But i am going to ask Tekno how he got the facebook comments working

thx & reetz NewX