Add comment system under each image

jeremerej

Core license
License owner
Joined
Mar 7, 2019
Messages
2
Points
53
Hi guys,
I found a sleek open source comment system that I would like to add under each image of my website.
It should be quite easy, but I have difficulties to find the right place to add the html & JS code to call the comment script.
  1. Can you confirm that the right file to modify is app/routes/route.image.php?
  2. If so, where exactly should I add my code lines in this file to have the comment system appearing at the end of each image page?
Many thanks!
 
Reactions: bilderupload

JakeSully

Network license
Beta tester
Joined
Feb 23, 2014
Messages
268
Points
78
Hi guys,
I found a sleek open source comment system that I would like to add under each image of my website.
It should be quite easy, but I have difficulties to find the right place to add the html & JS code to call the comment script.
  1. Can you confirm that the right file to modify is app/routes/route.image.php?
  2. If so, where exactly should I add my code lines in this file to have the comment system appearing at the end of each image page?
Many thanks!
Hi, could you share that comment system that you found so we can see it ourselves?
 

guzzisti

Core license
License owner
Joined
Dec 29, 2018
Messages
9
Points
53
  1. Thats the wrong file i suppose. If the comment system (like hashover) can be included by JavaScript, you should use the settings provided in Dashboard -> Settings -> External Services -> Comments API.
  2. If you really need to modify the pages itself, you should use overrides: https://chevereto.com/docs/theme
You need a override for views/image.php. Be aware that you need to manually check/upgrade this file everytime you apply a Chevereto update.

@JakeSully
I tried to implemented commentics (commentics.org) but ended up using hashover: https://github.com/jacobwb/hashover
Created a fork of this which improves a few of the flaws the latest version had: https://gitlab.com/guzzisti1/hashover-legacy