Member
Member
bangkokrecorder   2008-09-12, 06:32
#1

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.

Member
Member
code   2008-09-12, 06:39
#2

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

Member
Member
bangkokrecorder   2008-09-12, 06:42
#3

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.

Member
Member
code   2008-09-12, 07:23
#4

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

Member
Member
bangkokrecorder   2008-09-12, 08:09
#5

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.

Administrator
Administrator
acrylian   2008-09-12, 08:47
#6

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.

Member
Member
bangkokrecorder   2008-09-12, 15:04
#7

already got it working.

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

                            (
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.