Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Facebook or disqus Comments instead of CPG Comments  (Read 3434 times)

0 Members and 1 Guest are viewing this topic.

newx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Facebook or disqus Comments instead of CPG Comments
« on: January 26, 2011, 03:22:45 pm »

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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Facebook or disqus Comments instead of CPG Comments
« Reply #1 on: January 26, 2011, 03:34:28 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:
Code: [Select]
function theme_html_comments($pid)
{
    return $facebook_code_here;
}
Logged

newx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Facebook or disqus Comments instead of CPG Comments
« Reply #2 on: January 26, 2011, 04:31:53 pm »

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>
}
Logged

newx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Facebook or disqus Comments instead of CPG Comments
« Reply #3 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Facebook or disqus Comments instead of CPG Comments
« Reply #4 on: January 26, 2011, 04:55:51 pm »

You implemented your code incorrectly. It should look like
Code: [Select]
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?


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.
Logged

newx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Facebook or disqus Comments instead of CPG Comments
« Reply #5 on: January 27, 2011, 10:37:16 am »

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

Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.