ZenphotoCMS Forum
Disqus Comments Integration - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Disqus Comments Integration (/thread-3747.html)



Disqus Comments Integration - bangkokrecorder - 2008-09-12

How would I be able to replace the comment system with disqus (www.disqus.com). Which file should I add code to to achieve that?

Maybe somebody of you did that already? It should be definitely possible.

Thanks for any advice.




Disqus Comments Integration - code - 2008-09-12

I really dont know but im assuming the easiest way to do this would be to delete/comment out the current code for displaying comments on your theme, then using the appropriate disqus code to add into the theme... I really dont know how disqus works so...I dunno..

Im sure a zenphoto staff member will be along to help you




Disqus Comments Integration - bangkokrecorder - 2008-09-12

that sounds like what i was planning to do.

disqus provides plugins for wordpress and others but has a generic javascript code that you can enter into any website.

Do you know in which file the commenting code is located? Then ill give it a try.




Disqus Comments Integration - code - 2008-09-12

zenphoto/themes/default/image.php
Actually you can probably disable comments in the admin panel... This should not display them anymore...
However you may want to modify this line...
Maybe to...
You need to keep that first } I believe...
Anyways that is the area where you should try to implement your comment system...

DISCLAIMER: For the record, I am a newb with zenphoto and little PHP skills. I am no expert. I am not part of the zenphoto staff and I am just a user trying to help someone out the best I can. I am not responsible for anything that goes wrong with your site. Please backup your files you play around with! Especially if I give advice! lol




Disqus Comments Integration - bangkokrecorder - 2008-09-12

no worries
ill test everything first. if sth goes wrong no problem.
once i manage to integrate the two ill post again for others to see how its done. thanks for the help.




Disqus Comments Integration - acrylian - 2008-09-12

I never heard of disqus, but code is right, the comment code is on image.php. Take also a look at our theming tutorial to get familar with Zenphoto's themes.




Disqus Comments Integration - bangkokrecorder - 2008-09-12

already got it working.

in image.php all you got to do is deleting the following part of the comments:

                            (