thibaud-rohmer / PhotoShow

A free web gallery in PHP with drag-n-drop support
http://www.photoshow-gallery.com
502 stars 151 forks source link

feature request: move comments to under pictures #343

Open imthenachoman opened 6 years ago

imthenachoman commented 6 years ago

I think it would be nicer if comments were under the picture so viewers/users can see the comments right there and add more if they want. Having to go into the right navigation window to see comments isn't very intuitive.

imthenachoman commented 6 years ago

I think I might try to do this myself. The code looks pretty straightforward. Fingers crossed.

imthenachoman commented 6 years ago

So I've been able to figure out how you're rendering comments and I am working on moving them in the code. What I can't figure out is how to save timestamp with the comments and render those too. Any pointers/direction? Just not sure what file to look at.

imthenachoman commented 6 years ago

On am unrelated note, I am going to call all my judgement type classes Judge. Love your comment for that. :)

imthenachoman commented 6 years ago

scratch that; I saw that you already include timestamp. my bad. having tricky figuring out how you update the comments display after the user presses submit. I see the form but I don't see where you refresh the page or make any HTML update...

imthenachoman commented 6 years ago

So far I've been able to figure out how to make the following changes:

I figured out how to move the comments from Infos.php to Board.php but so far it only works for the main view. I am trying to get it to work when you're in a picture or video. I didn't realize this earlier but clicking on an image or video doesn't reload the page, it uses JS to show the image. Either way, I figured out how to hide the Board.php comments when an item is clicked but I can't figure out how to enable vertical scrolling so I can add the comments to the bottom below the linear panel...